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

; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.phoenix::actor.4" = type { %"struct.phoenix::if_then_composite" }
%"struct.phoenix::if_then_composite" = type { %"struct.phoenix::actor.5", %"struct.phoenix::actor.9", %"struct.phoenix::else_gen" }
%"struct.phoenix::actor.5" = type { %"struct.phoenix::composite" }
%"struct.phoenix::composite" = type { [4 x i8], %"struct.phoenix::actor.6", %"struct.phoenix::actor.8" }
%"struct.phoenix::actor.6" = type { %"struct.phoenix::composite.7" }
%"struct.phoenix::composite.7" = type { [4 x i8], %"struct.phoenix::actor.8" }
%"struct.phoenix::actor.8" = type { %"struct.phoenix::value" }
%"struct.phoenix::value" = type { i32 }
%"struct.phoenix::actor.9" = type { %"struct.phoenix::composite.base.16", [7 x i8] }
%"struct.phoenix::composite.base.16" = type { [8 x i8], %"struct.phoenix::actor.11", %"struct.phoenix::actor.14" }
%"struct.phoenix::actor.11" = type { %"struct.phoenix::composite.base", [7 x i8] }
%"struct.phoenix::composite.base" = type <{ [8 x i8], %"struct.phoenix::actor.13", i8 }>
%"struct.phoenix::actor.13" = type { %"struct.phoenix::variable" }
%"struct.phoenix::variable" = type { ptr }
%"struct.phoenix::actor.14" = type { %"struct.phoenix::value.15" }
%"struct.phoenix::value.15" = type { i8 }
%"struct.phoenix::else_gen" = type { %"struct.phoenix::actor.5", %"struct.phoenix::actor.9" }
%"struct.phoenix::if_gen" = type { %"struct.phoenix::actor.5" }

@_ZN7phoenixL4arg1E = external hidden global %"struct.phoenix::actor", align 1
@__const.main.init = external hidden unnamed_addr constant [10 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [10 x i32], align 16
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"struct.phoenix::actor.4", align 8
  %10 = alloca %"struct.phoenix::if_gen", align 4
  %11 = alloca %"struct.phoenix::actor.5", align 4
  %12 = alloca %"struct.phoenix::actor.6", align 4
  %13 = alloca %"struct.phoenix::actor.9", align 8
  %14 = alloca %"struct.phoenix::actor.11", align 8
  %15 = alloca %"struct.phoenix::actor.4", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.init, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  %16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
  %17 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
  %18 = getelementptr inbounds i32, ptr %17, i64 10
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2IPivEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %16, ptr noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %19 unwind label %42

19:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  %20 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  %22 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %24 = invoke i64 @_ZN7phoenixrmINS_8argumentILi0EEEiEENS_4impl12make_binary1INS_6mod_opET_T0_E4typeERKNS_5actorIS6_EES7_(ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E, i32 noundef 2)
          to label %25 unwind label %46

25:                                               ; preds = %19
  %26 = getelementptr inbounds %"struct.phoenix::actor.6", ptr %12, i32 0, i32 0
  store i64 %24, ptr %26, align 4
  %27 = invoke i64 @_ZN7phoenixeqINS_9compositeINS_6mod_opENS_5actorINS_8argumentILi0EEEEENS3_INS_5valueIiEEEENS_5nil_tESA_EEiEENS_4impl12make_binary1INS_5eq_opET_T0_E4typeERKNS3_ISF_EESG_(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef 1)
          to label %28 unwind label %46

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 %27, ptr %29, align 4
  %30 = invoke i64 @_ZN7phoenix3if_INS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEENS_6if_genIT_EERKSH_(ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %31 unwind label %46

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %30, ptr %32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  invoke void @_ZN7phoenixlsINS_8argumentILi0EEEEENS_4impl12make_binary3INS_10shift_l_opENS_8variableISoEET_E4typeERSoRKNS_5actorIS8_EE(ptr dead_on_unwind writable sret(%"struct.phoenix::actor.11") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
          to label %33 unwind label %50

33:                                               ; preds = %31
  invoke void @_ZN7phoenixlsINS_9compositeINS_10shift_l_opENS_5actorINS_8variableISoEEEENS3_INS_8argumentILi0EEEEENS_5nil_tESA_EEcEENS_4impl12make_binary1IS2_T_T0_E4typeERKNS3_ISE_EESF_(ptr dead_on_unwind writable sret(%"struct.phoenix::actor.9") align 8 %13, ptr noundef nonnull align 8 dereferenceable(17) %14, i8 noundef signext 32)
          to label %34 unwind label %50

34:                                               ; preds = %33
  invoke void @_ZNK7phoenix6if_genINS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEixINS1_INS2_INS_10shift_l_opENS1_INS2_ISI_NS1_INS_8variableISoEEEES7_SB_SB_EEEENS1_INS8_IcEEEESB_SB_EEEEEENS1_INS_17if_then_compositeISF_NS_8as_actorIT_E4typeEEEEERKSU_(ptr dead_on_unwind writable sret(%"struct.phoenix::actor.4") align 8 %9, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(33) %13)
          to label %35 unwind label %50

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 112, ptr %15) #6
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  invoke void @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEN7phoenix5actorINS7_17if_then_compositeINS8_INS7_9compositeINS7_5eq_opENS8_INSA_INS7_6mod_opENS8_INS7_8argumentILi0EEEEENS8_INS7_5valueIiEEEENS7_5nil_tESJ_EEEESI_SJ_SJ_EEEENS8_INSA_INS7_10shift_l_opENS8_INSA_ISO_NS8_INS7_8variableISoEEEESF_SJ_SJ_EEEENS8_INSG_IcEEEESJ_SJ_EEEEEEEEET0_T_S11_S10_(ptr dead_on_unwind writable sret(%"struct.phoenix::actor.4") align 8 %15, ptr %37, ptr %39, ptr noundef byval(%"struct.phoenix::actor.4") align 8 %9)
          to label %40 unwind label %54

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 112, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  store i32 0, ptr %1, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #6
  %41 = load i32, ptr %1, align 4
  ret i32 %41

42:                                               ; preds = %0
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %60

46:                                               ; preds = %28, %25, %19
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  br label %59

50:                                               ; preds = %34, %33, %31
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %5, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %6, align 4
  br label %58

54:                                               ; preds = %35
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 112, ptr %15) #6
  br label %58

58:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  br label %59

59:                                               ; preds = %58, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %60

60:                                               ; preds = %59, %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #6
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %5, align 8
  %63 = load i32, ptr %6, align 4
  %64 = insertvalue { ptr, i32 } poison, ptr %62, 0
  %65 = insertvalue { ptr, i32 } %64, i32 %63, 1
  resume { ptr, i32 } %65
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2IPivEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEN7phoenix5actorINS7_17if_then_compositeINS8_INS7_9compositeINS7_5eq_opENS8_INSA_INS7_6mod_opENS8_INS7_8argumentILi0EEEEENS8_INS7_5valueIiEEEENS7_5nil_tESJ_EEEESI_SJ_SJ_EEEENS8_INSA_INS7_10shift_l_opENS8_INSA_ISO_NS8_INS7_8variableISoEEEESF_SJ_SJ_EEEENS8_INSG_IcEEEESJ_SJ_EEEEEEEEET0_T_S11_S10_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.4") align 8, ptr, ptr, ptr noundef byval(%"struct.phoenix::actor.4") align 8) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7phoenix3if_INS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEENS_6if_genIT_EERKSH_(ptr noundef nonnull align 4 dereferenceable(16)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7phoenix6if_genINS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEixINS1_INS2_INS_10shift_l_opENS1_INS2_ISI_NS1_INS_8variableISoEEEES7_SB_SB_EEEENS1_INS8_IcEEEESB_SB_EEEEEENS1_INS_17if_then_compositeISF_NS_8as_actorIT_E4typeEEEEERKSU_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.4") align 8, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(33)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7phoenixlsINS_9compositeINS_10shift_l_opENS_5actorINS_8variableISoEEEENS3_INS_8argumentILi0EEEEENS_5nil_tESA_EEcEENS_4impl12make_binary1IS2_T_T0_E4typeERKNS3_ISE_EESF_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.9") align 8, ptr noundef nonnull align 8 dereferenceable(17), i8 noundef signext) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7phoenixlsINS_8argumentILi0EEEEENS_4impl12make_binary3INS_10shift_l_opENS_8variableISoEET_E4typeERSoRKNS_5actorIS8_EE(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.11") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind 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 #4 = { 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 #5 = { 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 #6 = { 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)"}


; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.phoenix::actor.4" = type { %"struct.phoenix::if_then_composite" }
%"struct.phoenix::if_then_composite" = type { %"struct.phoenix::actor.5", %"struct.phoenix::actor.9", %"struct.phoenix::else_gen" }
%"struct.phoenix::actor.5" = type { %"struct.phoenix::composite" }
%"struct.phoenix::composite" = type { [4 x i8], %"struct.phoenix::actor.6", %"struct.phoenix::actor.8" }
%"struct.phoenix::actor.6" = type { %"struct.phoenix::composite.7" }
%"struct.phoenix::composite.7" = type { [4 x i8], %"struct.phoenix::actor.8" }
%"struct.phoenix::actor.8" = type { %"struct.phoenix::value" }
%"struct.phoenix::value" = type { i32 }
%"struct.phoenix::actor.9" = type { %"struct.phoenix::composite.base.16", [7 x i8] }
%"struct.phoenix::composite.base.16" = type { [8 x i8], %"struct.phoenix::actor.11", %"struct.phoenix::actor.14" }
%"struct.phoenix::actor.11" = type { %"struct.phoenix::composite.base", [7 x i8] }
%"struct.phoenix::composite.base" = type <{ [8 x i8], %"struct.phoenix::actor.13", i8 }>
%"struct.phoenix::actor.13" = type { %"struct.phoenix::variable" }
%"struct.phoenix::variable" = type { ptr }
%"struct.phoenix::actor.14" = type { %"struct.phoenix::value.15" }
%"struct.phoenix::value.15" = type { i8 }
%"struct.phoenix::else_gen" = type { %"struct.phoenix::actor.5", %"struct.phoenix::actor.9" }
%"struct.phoenix::if_gen" = type { %"struct.phoenix::actor.5" }

@_ZN7phoenixL4arg1E = external hidden global %"struct.phoenix::actor", align 1
@__const.main.init = external hidden unnamed_addr constant [10 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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 personality ptr @__gxx_personality_v0 {
  %1 = alloca [10 x i32], align 16
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"struct.phoenix::actor.4", align 8
  %5 = alloca %"struct.phoenix::if_gen", align 4
  %6 = alloca %"struct.phoenix::actor.5", align 4
  %7 = alloca %"struct.phoenix::actor.6", align 8
  %8 = alloca %"struct.phoenix::actor.9", align 8
  %9 = alloca %"struct.phoenix::actor.11", align 8
  %10 = alloca %"struct.phoenix::actor.4", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %1, ptr noundef nonnull align 16 dereferenceable(40) @__const.main.init, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %11 = getelementptr inbounds i8, ptr %1, i64 40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2IPivEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %12 unwind label %27

12:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %13 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %14 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %15 = invoke i64 @_ZN7phoenixrmINS_8argumentILi0EEEiEENS_4impl12make_binary1INS_6mod_opET_T0_E4typeERKNS_5actorIS6_EES7_(ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E, i32 noundef 2)
          to label %16 unwind label %29

16:                                               ; preds = %12
  store i64 %15, ptr %7, align 8
  %17 = invoke i64 @_ZN7phoenixeqINS_9compositeINS_6mod_opENS_5actorINS_8argumentILi0EEEEENS3_INS_5valueIiEEEENS_5nil_tESA_EEiEENS_4impl12make_binary1INS_5eq_opET_T0_E4typeERKNS3_ISF_EESG_(ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef 1)
          to label %18 unwind label %29

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %17, ptr %19, align 4
  %20 = invoke i64 @_ZN7phoenix3if_INS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEENS_6if_genIT_EERKSH_(ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %21 unwind label %29

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 %20, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN7phoenixlsINS_8argumentILi0EEEEENS_4impl12make_binary3INS_10shift_l_opENS_8variableISoEET_E4typeERSoRKNS_5actorIS8_EE(ptr dead_on_unwind nonnull writable sret(%"struct.phoenix::actor.11") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 1 dereferenceable(1) @_ZN7phoenixL4arg1E)
          to label %23 unwind label %31

23:                                               ; preds = %21
  invoke void @_ZN7phoenixlsINS_9compositeINS_10shift_l_opENS_5actorINS_8variableISoEEEENS3_INS_8argumentILi0EEEEENS_5nil_tESA_EEcEENS_4impl12make_binary1IS2_T_T0_E4typeERKNS3_ISE_EESF_(ptr dead_on_unwind nonnull writable sret(%"struct.phoenix::actor.9") align 8 %8, ptr noundef nonnull align 8 dereferenceable(17) %9, i8 noundef signext 32)
          to label %24 unwind label %31

24:                                               ; preds = %23
  invoke void @_ZNK7phoenix6if_genINS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEixINS1_INS2_INS_10shift_l_opENS1_INS2_ISI_NS1_INS_8variableISoEEEES7_SB_SB_EEEENS1_INS8_IcEEEESB_SB_EEEEEENS1_INS_17if_then_compositeISF_NS_8as_actorIT_E4typeEEEEERKSU_(ptr dead_on_unwind nonnull writable sret(%"struct.phoenix::actor.4") align 8 %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(33) %8)
          to label %25 unwind label %31

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %10) #6
  invoke void @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEN7phoenix5actorINS7_17if_then_compositeINS8_INS7_9compositeINS7_5eq_opENS8_INSA_INS7_6mod_opENS8_INS7_8argumentILi0EEEEENS8_INS7_5valueIiEEEENS7_5nil_tESJ_EEEESI_SJ_SJ_EEEENS8_INSA_INS7_10shift_l_opENS8_INSA_ISO_NS8_INS7_8variableISoEEEESF_SJ_SJ_EEEENS8_INSG_IcEEEESJ_SJ_EEEEEEEEET0_T_S11_S10_(ptr dead_on_unwind nonnull writable sret(%"struct.phoenix::actor.4") align 8 %10, ptr %13, ptr %14, ptr noundef nonnull byval(%"struct.phoenix::actor.4") align 8 %4)
          to label %26 unwind label %33

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #6
  ret i32 0

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %37

29:                                               ; preds = %18, %16, %12
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %36

31:                                               ; preds = %24, %23, %21
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %25
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %10) #6
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  br label %36

36:                                               ; preds = %35, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %35 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %37

37:                                               ; preds = %36, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %36 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2IPivEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEN7phoenix5actorINS7_17if_then_compositeINS8_INS7_9compositeINS7_5eq_opENS8_INSA_INS7_6mod_opENS8_INS7_8argumentILi0EEEEENS8_INS7_5valueIiEEEENS7_5nil_tESJ_EEEESI_SJ_SJ_EEEENS8_INSA_INS7_10shift_l_opENS8_INSA_ISO_NS8_INS7_8variableISoEEEESF_SJ_SJ_EEEENS8_INSG_IcEEEESJ_SJ_EEEEEEEEET0_T_S11_S10_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.4") align 8, ptr, ptr, ptr noundef byval(%"struct.phoenix::actor.4") align 8) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i64 @_ZN7phoenix3if_INS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEENS_6if_genIT_EERKSH_(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7phoenix6if_genINS_5actorINS_9compositeINS_5eq_opENS1_INS2_INS_6mod_opENS1_INS_8argumentILi0EEEEENS1_INS_5valueIiEEEENS_5nil_tESB_EEEESA_SB_SB_EEEEEixINS1_INS2_INS_10shift_l_opENS1_INS2_ISI_NS1_INS_8variableISoEEEES7_SB_SB_EEEENS1_INS8_IcEEEESB_SB_EEEEEENS1_INS_17if_then_compositeISF_NS_8as_actorIT_E4typeEEEEERKSU_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.4") align 8, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7phoenixlsINS_9compositeINS_10shift_l_opENS_5actorINS_8variableISoEEEENS3_INS_8argumentILi0EEEEENS_5nil_tESA_EEcEENS_4impl12make_binary1IS2_T_T0_E4typeERKNS3_ISE_EESF_(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.9") align 8, ptr noundef nonnull align 8 dereferenceable(17), i8 noundef signext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7phoenixlsINS_8argumentILi0EEEEENS_4impl12make_binary3INS_10shift_l_opENS_8variableISoEET_E4typeERSoRKNS_5actorIS8_EE(ptr dead_on_unwind noalias writable sret(%"struct.phoenix::actor.11") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind 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 #4 = { 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 #5 = { 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 #6 = { 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)"}


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