; LLVM IR from stan-dev/math :: lib/boost_1.84.0/libs/spirit/classic/phoenix/test (functors_tests)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.phoenix::actor" = type { i8 }
%"struct.phoenix::actor.0" = type { i8 }
%"struct.phoenix::function" = type { i8 }
%"struct.phoenix::function.28" = type { i8 }
%"struct.phoenix::function.29" = type { i8 }
%"struct.phoenix::function.30" = type { i8 }
%"struct.phoenix::actor.31" = type { i8 }
%"struct.phoenix::actor.32" = type { [2 x i8] }
%"struct.phoenix::actor.34" = type { %"struct.phoenix::composite.35" }
%"struct.phoenix::composite.35" = type { [4 x i8], %"struct.phoenix::actor.36" }
%"struct.phoenix::actor.36" = type { %"struct.phoenix::value" }
%"struct.phoenix::value" = type { i32 }
%"struct.phoenix::actor.37" = type { [2 x i8] }
%"struct.phoenix::actor.39" = type { [3 x i8] }
%"struct.phoenix::actor.41" = type { %"struct.phoenix::composite.42" }
%"struct.phoenix::composite.42" = type { [4 x i8], %"struct.phoenix::actor.36" }

@_ZN7phoenixL4arg1E = external hidden global %"struct.phoenix::actor", align 1
@_ZN7phoenixL4arg2E = external hidden global %"struct.phoenix::actor.0", align 1
@test = external dso_local global %"struct.phoenix::function", align 1
@sqr = external dso_local global %"struct.phoenix::function.28", align 1
@fact = external dso_local global %"struct.phoenix::function.29", align 1
@power = external dso_local global %"struct.phoenix::function.30", align 1
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.phoenix::actor.31", align 1
  %6 = alloca %"struct.phoenix::actor.31", align 1
  %7 = alloca %"struct.phoenix::actor.32", align 1
  %8 = alloca %"struct.phoenix::actor.32", align 1
  %9 = alloca %"struct.phoenix::actor.34", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.phoenix::actor.37", align 1
  %12 = alloca %"struct.phoenix::actor.37", align 1
  %13 = alloca %"struct.phoenix::actor.39", align 1
  %14 = alloca %"struct.phoenix::actor.39", align 1
  %15 = alloca %"struct.phoenix::actor.41", align 4
  %16 = alloca %"struct.phoenix::actor.32", align 1
  %17 = alloca %"struct.phoenix::actor.32", align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store double 5.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store double 3.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  call void @_ZNK7phoenix8functionI5test_EclEv(ptr noundef nonnull align 1 dereferenceable(1) @test)
  call void @_ZNK7phoenix5actorINS_9compositeI5test_NS_5nil_tES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_EEEclEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #4
  call void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @sqr, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %18 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2) %7, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = mul nsw i32 %19, %20
  %22 = icmp eq i32 %18, %21
  %23 = zext i1 %22 to i64
  %24 = select i1 %22, i1 true, i1 false
  %25 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef @.str, ptr noundef @.str.20, i32 noundef 83, ptr noundef @__PRETTY_FUNCTION__.main, i1 noundef zeroext %24)
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 4, ptr %10, align 4, !tbaa !5
  %26 = call i64 @_ZNK7phoenix8functionI5fact_EclIiEENS_4impl14make_compositeIS1_T_NS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_E4typeERKS6_(ptr noundef nonnull align 1 dereferenceable(1) @fact, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %27 = getelementptr inbounds %"struct.phoenix::actor.34", ptr %9, i32 0, i32 0
  store i64 %26, ptr %27, align 4
  %28 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_5valueIiEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %29 = icmp eq i32 %28, 24
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, i1 true, i1 false
  %32 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef @.str.21, ptr noundef @.str.20, i32 noundef 84, ptr noundef @__PRETTY_FUNCTION__.main, i1 noundef zeroext %31)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #4
  call void @_ZNK7phoenix8functionI5fact_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @fact, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %33 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %34 = icmp eq i32 %33, 120
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, i1 true, i1 false
  %37 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef @.str.22, ptr noundef @.str.20, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__.main, i1 noundef zeroext %36)
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr %13) #4
  call void @_ZNK7phoenix8functionI4pow_EclINS_5actorINS_8argumentILi0EEEEENS4_INS5_ILi1EEEEEEENS_4impl14make_compositeIS1_T_T0_NS_5nil_tESE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_E4typeERKSC_RKSD_(ptr noundef nonnull align 1 dereferenceable(1) @power, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg2E)
  %38 = call noundef double @_ZNK7phoenix5actorINS_9compositeI4pow_NS0_INS_8argumentILi0EEEEENS0_INS3_ILi1EEEEENS_5nil_tES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEEclIddEENS_12actor_resultIS9_NS_5tupleIRT_RT0_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeESF_SH_(ptr noundef nonnull align 1 dereferenceable(3) %13, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %39 = fptosi double %38 to i32
  %40 = load double, ptr %3, align 8, !tbaa !9
  %41 = load double, ptr %4, align 8, !tbaa !9
  %42 = call double @pow(double noundef %40, double noundef %41) #4
  %43 = fptosi double %42 to i32
  %44 = icmp eq i32 %39, %43
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i1 true, i1 false
  %47 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef @.str.23, ptr noundef @.str.20, i32 noundef 86, ptr noundef @__PRETTY_FUNCTION__.main, i1 noundef zeroext %46)
  call void @llvm.lifetime.end.p0(i64 3, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #4
  call void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @sqr, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %48 = call i64 @_ZN7phoenixplINS_9compositeI4sqr_NS_5actorINS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEiEENS_4impl12make_binary1INS_7plus_opET_T0_E4typeERKNS3_ISC_EESD_(ptr noundef nonnull align 1 dereferenceable(2) %16, i32 noundef 5)
  %49 = getelementptr inbounds %"struct.phoenix::actor.41", ptr %15, i32 0, i32 0
  store i64 %48, ptr %49, align 4
  %50 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeINS_7plus_opENS0_INS1_I4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEENS0_INS_5valueIiEEEES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEclIiEENS_12actor_resultISD_NS_5tupleIRT_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEE4typeESJ_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = mul nsw i32 %51, %52
  %54 = add nsw i32 %53, 5
  %55 = icmp eq i32 %50, %54
  %56 = zext i1 %55 to i64
  %57 = select i1 %55, i1 true, i1 false
  %58 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef @.str.24, ptr noundef @.str.20, i32 noundef 87, ptr noundef @__PRETTY_FUNCTION__.main, i1 noundef zeroext %57)
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %59 = call noundef i32 @_ZN5boost13report_errorsEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 %59
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI5test_EclEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix5actorINS_9compositeI5test_NS_5nil_tES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_EEEclEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZNK7phoenix8functionI5fact_EclIiEENS_4impl14make_compositeIS1_T_NS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_E4typeERKS6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_5valueIiEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclEv(ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI5fact_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI4pow_EclINS_5actorINS_8argumentILi0EEEEENS4_INS5_ILi1EEEEEEENS_4impl14make_compositeIS1_T_T0_NS_5nil_tESE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_E4typeERKSC_RKSD_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7phoenix5actorINS_9compositeI4pow_NS0_INS_8argumentILi0EEEEENS0_INS3_ILi1EEEEENS_5nil_tES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEEclIddEENS_12actor_resultIS9_NS_5tupleIRT_RT0_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeESF_SH_(ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7phoenixplINS_9compositeI4sqr_NS_5actorINS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEiEENS_4impl12make_binary1INS_7plus_opET_T0_E4typeERKNS3_ISC_EESD_(ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeINS_7plus_opENS0_INS1_I4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEENS0_INS_5valueIiEEEES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEclIiEENS_12actor_resultISD_NS_5tupleIRT_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEE4typeESJ_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5boost13report_errorsEv() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.phoenix::actor" = type { i8 }
%"struct.phoenix::actor.0" = type { i8 }
%"struct.phoenix::function" = type { i8 }
%"struct.phoenix::function.28" = type { i8 }
%"struct.phoenix::function.29" = type { i8 }
%"struct.phoenix::function.30" = type { i8 }
%"struct.phoenix::actor.31" = type { i8 }
%"struct.phoenix::actor.32" = type { [2 x i8] }
%"struct.phoenix::actor.34" = type { %"struct.phoenix::composite.35" }
%"struct.phoenix::composite.35" = type { [4 x i8], %"struct.phoenix::actor.36" }
%"struct.phoenix::actor.36" = type { %"struct.phoenix::value" }
%"struct.phoenix::value" = type { i32 }
%"struct.phoenix::actor.37" = type { [2 x i8] }
%"struct.phoenix::actor.39" = type { [3 x i8] }
%"struct.phoenix::actor.41" = type { %"struct.phoenix::composite.42" }
%"struct.phoenix::composite.42" = type { [4 x i8], %"struct.phoenix::actor.36" }

@_ZN7phoenixL4arg1E = external hidden global %"struct.phoenix::actor", align 1
@_ZN7phoenixL4arg2E = external hidden global %"struct.phoenix::actor.0", align 1
@test = external dso_local global %"struct.phoenix::function", align 1
@sqr = external dso_local global %"struct.phoenix::function.28", align 1
@fact = external dso_local global %"struct.phoenix::function.29", align 1
@power = external dso_local global %"struct.phoenix::function.30", align 1
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca %"struct.phoenix::actor.31", align 1
  %5 = alloca %"struct.phoenix::actor.32", align 1
  %6 = alloca %"struct.phoenix::actor.34", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.phoenix::actor.37", align 1
  %9 = alloca %"struct.phoenix::actor.39", align 1
  %10 = alloca %"struct.phoenix::actor.41", align 8
  %11 = alloca %"struct.phoenix::actor.32", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 5, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store double 5.000000e+00, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store double 3.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  tail call void @_ZNK7phoenix8functionI5test_EclEv(ptr noundef nonnull align 1 dereferenceable(1) @test)
  call void @_ZNK7phoenix5actorINS_9compositeI5test_NS_5nil_tES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_EEEclEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #4
  call void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @sqr, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %12 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = mul nsw i32 %13, %13
  %15 = icmp eq i32 %12, %14
  %16 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef nonnull @.str, ptr noundef nonnull @.str.20, i32 noundef 83, ptr noundef nonnull @__PRETTY_FUNCTION__.main, i1 noundef zeroext %15)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store i32 4, ptr %7, align 4, !tbaa !5
  %17 = call i64 @_ZNK7phoenix8functionI5fact_EclIiEENS_4impl14make_compositeIS1_T_NS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_E4typeERKS6_(ptr noundef nonnull align 1 dereferenceable(1) @fact, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i64 %17, ptr %6, align 8
  %18 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_5valueIiEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %19 = icmp eq i32 %18, 24
  %20 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20, i32 noundef 84, ptr noundef nonnull @__PRETTY_FUNCTION__.main, i1 noundef zeroext %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #4
  call void @_ZNK7phoenix8functionI5fact_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @fact, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %21 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2) %8, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %22 = icmp eq i32 %21, 120
  %23 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.20, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__.main, i1 noundef zeroext %22)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %9) #4
  call void @_ZNK7phoenix8functionI4pow_EclINS_5actorINS_8argumentILi0EEEEENS4_INS5_ILi1EEEEEEENS_4impl14make_compositeIS1_T_T0_NS_5nil_tESE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_E4typeERKSC_RKSD_(ptr noundef nonnull align 1 dereferenceable(1) @power, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg2E)
  %24 = call noundef double @_ZNK7phoenix5actorINS_9compositeI4pow_NS0_INS_8argumentILi0EEEEENS0_INS3_ILi1EEEEENS_5nil_tES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEEclIddEENS_12actor_resultIS9_NS_5tupleIRT_RT0_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeESF_SH_(ptr noundef nonnull align 1 dereferenceable(3) %9, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %25 = fptosi double %24 to i32
  %26 = load double, ptr %2, align 8, !tbaa !9
  %27 = load double, ptr %3, align 8, !tbaa !9
  %28 = call double @pow(double noundef %26, double noundef %27) #4
  %29 = fptosi double %28 to i32
  %30 = icmp eq i32 %25, %29
  %31 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.20, i32 noundef 86, ptr noundef nonnull @__PRETTY_FUNCTION__.main, i1 noundef zeroext %30)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #4
  call void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1) @sqr, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
  %32 = call i64 @_ZN7phoenixplINS_9compositeI4sqr_NS_5actorINS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEiEENS_4impl12make_binary1INS_7plus_opET_T0_E4typeERKNS3_ISC_EESD_(ptr noundef nonnull align 1 dereferenceable(2) %11, i32 noundef 5)
  store i64 %32, ptr %10, align 8
  %33 = call noundef i32 @_ZNK7phoenix5actorINS_9compositeINS_7plus_opENS0_INS1_I4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEENS0_INS_5valueIiEEEES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEclIiEENS_12actor_resultISD_NS_5tupleIRT_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEE4typeESJ_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = mul nsw i32 %34, %34
  %36 = add nuw nsw i32 %35, 5
  %37 = icmp eq i32 %33, %36
  %38 = call noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.20, i32 noundef 87, ptr noundef nonnull @__PRETTY_FUNCTION__.main, i1 noundef zeroext %37)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  %39 = call noundef i32 @_ZN5boost13report_errorsEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 %39
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI5test_EclEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix5actorINS_9compositeI5test_NS_5nil_tES3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_S3_EEEclEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost6detail9test_implEPKcS2_iS2_b(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI4sqr_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZNK7phoenix8functionI5fact_EclIiEENS_4impl14make_compositeIS1_T_NS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_E4typeERKS6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_5valueIiEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI5fact_EclINS_5actorINS_8argumentILi0EEEEEEENS_4impl14make_compositeIS1_T_NS_5nil_tESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_E4typeERKSA_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeI5fact_NS0_INS_8argumentILi0EEEEENS_5nil_tES6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEEclIiEENS_12actor_resultIS7_NS_5tupleIRT_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_S6_EEE4typeESD_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7phoenix8functionI4pow_EclINS_5actorINS_8argumentILi0EEEEENS4_INS5_ILi1EEEEEEENS_4impl14make_compositeIS1_T_T0_NS_5nil_tESE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_SE_E4typeERKSC_RKSD_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7phoenix5actorINS_9compositeI4pow_NS0_INS_8argumentILi0EEEEENS0_INS3_ILi1EEEEENS_5nil_tES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEEclIddEENS_12actor_resultIS9_NS_5tupleIRT_RT0_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEE4typeESF_SH_(ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7phoenixplINS_9compositeI4sqr_NS_5actorINS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEiEENS_4impl12make_binary1INS_7plus_opET_T0_E4typeERKNS3_ISC_EESD_(ptr noundef nonnull align 1 dereferenceable(2), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7phoenix5actorINS_9compositeINS_7plus_opENS0_INS1_I4sqr_NS0_INS_8argumentILi0EEEEENS_5nil_tES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEENS0_INS_5valueIiEEEES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEEclIiEENS_12actor_resultISD_NS_5tupleIRT_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_EEE4typeESJ_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5boost13report_errorsEv() local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass