; LLVM IR from nickgildea/z3_codegen :: codegen.ll (Z13SelectOperandR14CodeGenContextRN2z314ast_vector_tplINS1_4exprEEERKS3_i)

; 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"

%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }
%class.CodeGenContext = type { ptr, %"class.z3::solver", i32, i32, i32, %"class.z3::ast_vector_tpl", %"class.z3::ast_vector_tpl", %"class.z3::ast_vector_tpl", %"class.z3::ast_vector_tpl", %"class.std::vector", %class.ISASubset }
%"class.z3::solver" = type { %"class.z3::object", ptr }
%"class.z3::ast_vector_tpl" = type { %"class.z3::object", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<z3::ast_vector_tpl<z3::expr>, std::allocator<z3::ast_vector_tpl<z3::expr>>>::_Vector_impl" }
%"struct.std::_Vector_base<z3::ast_vector_tpl<z3::expr>, std::allocator<z3::ast_vector_tpl<z3::expr>>>::_Vector_impl" = type { %"struct.std::_Vector_base<z3::ast_vector_tpl<z3::expr>, std::allocator<z3::ast_vector_tpl<z3::expr>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<z3::ast_vector_tpl<z3::expr>, std::allocator<z3::ast_vector_tpl<z3::expr>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.ISASubset = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2z314ast_vector_tplINS_4exprEEixEi(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37to_exprERNS_7contextEP7_Z3_ast(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3eqERKNS_4exprEi(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2z33astcvP7_Z3_astEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13SelectOperandR14CodeGenContextRN2z314ast_vector_tplINS1_4exprEEERKS3_i(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %4) #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  %12 = alloca i32, align 4
  %13 = alloca %"class.z3::expr", align 8
  %14 = alloca %"class.z3::expr", align 8
  %15 = alloca %"class.z3::expr", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.z3::expr", align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  store i1 false, ptr %11, align 1
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.CodeGenContext, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  call void @_ZN2z37context6bv_valEij(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 0, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = sub nsw i32 %22, 1
  store i32 %23, ptr %12, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %43, %5
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %65

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.CodeGenContext, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_ZN2z3eqERKNS_4exprEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %32, i32 noundef %33)
          to label %34 unwind label %46

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_ZNK2z314ast_vector_tplINS_4exprEEixEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %35, i32 noundef %36)
          to label %37 unwind label %50

37:                                               ; preds = %34
  invoke void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %38 unwind label %54

38:                                               ; preds = %37
  %39 = invoke noundef ptr @_ZNK2z33astcvP7_Z3_astEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %40 unwind label %58

40:                                               ; preds = %38
  invoke void @_ZN2z37to_exprERNS_7contextEP7_Z3_ast(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %39)
          to label %41 unwind label %58

41:                                               ; preds = %40
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN2z34expraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %43

43:                                               ; preds = %41
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %12, align 4, !tbaa !9
  br label %24, !llvm.loop !25

46:                                               ; preds = %28
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %16, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %17, align 4
  br label %64

50:                                               ; preds = %34
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %16, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %17, align 4
  br label %63

54:                                               ; preds = %37
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %16, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %17, align 4
  br label %62

58:                                               ; preds = %40, %38
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %16, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %17, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %63

63:                                               ; preds = %62, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %64

64:                                               ; preds = %63, %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %69

65:                                               ; preds = %27
  store i1 true, ptr %11, align 1
  %66 = load i1, ptr %11, align 1
  br i1 %66, label %68, label %67

67:                                               ; preds = %65
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %68

68:                                               ; preds = %67, %65
  ret void

69:                                               ; preds = %64
  %70 = load ptr, ptr %16, align 8
  %71 = load i32, ptr %17, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37context6bv_valEij(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { inlinehint 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 #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS14CodeGenContext", !6, i64 0, !13, i64 8, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !15, i64 56, !15, i64 72, !15, i64 88, !16, i64 104, !20, i64 128}
!13 = !{!"_ZTSN2z36solverE", !14, i64 0, !6, i64 8}
!14 = !{!"_ZTSN2z36objectE", !6, i64 0}
!15 = !{!"_ZTSN2z314ast_vector_tplINS_4exprEEE", !14, i64 0, !6, i64 8}
!16 = !{!"_ZTSSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTS9ISASubset", !21, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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"

%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
declare dso_local void @_ZNK2z314ast_vector_tplINS_4exprEEixEi(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37to_exprERNS_7contextEP7_Z3_ast(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3eqERKNS_4exprEi(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2z33astcvP7_Z3_astEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13SelectOperandR14CodeGenContextRN2z314ast_vector_tplINS1_4exprEEERKS3_i(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(152) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %4) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.z3::expr", align 8
  %7 = alloca %"class.z3::expr", align 8
  %8 = alloca %"class.z3::expr", align 8
  %9 = alloca %"class.z3::expr", align 8
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @_ZN2z37context6bv_valEij(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0, i32 noundef 32)
  %11 = icmp sgt i32 %4, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5, %17
  %.01419.in = phi i32 [ %.01419, %17 ], [ %4, %5 ]
  %.01419 = add nsw i32 %.01419.in, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZN2z3eqERKNS_4exprEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %.01419)
          to label %13 unwind label %20

13:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  invoke void @_ZNK2z314ast_vector_tplINS_4exprEEixEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.01419)
          to label %14 unwind label %22

14:                                               ; preds = %13
  invoke void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %15 unwind label %24

15:                                               ; preds = %14
  %16 = call noundef ptr @_ZNK2z33astcvP7_Z3_astEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  invoke void @_ZN2z37to_exprERNS_7contextEP7_Z3_ast(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %16)
          to label %17 unwind label %26

17:                                               ; preds = %15
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN2z34expraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %19 = icmp ugt i32 %.01419.in, 1
  br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !23

20:                                               ; preds = %.lr.ph
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %30

22:                                               ; preds = %13
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %29

24:                                               ; preds = %14
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %28

26:                                               ; preds = %15
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %29

29:                                               ; preds = %28, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %28 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %30

30:                                               ; preds = %29, %20
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %29 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  resume { ptr, i32 } %.pn.pn.pn

._crit_edge:                                      ; preds = %17, %5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37context6bv_valEij(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { inlinehint 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 #5 = { 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, !7, i64 0}
!6 = !{!"_ZTS14CodeGenContext", !7, i64 0, !10, i64 8, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 40, !13, i64 56, !13, i64 72, !13, i64 88, !14, i64 104, !18, i64 128}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2z36solverE", !11, i64 0, !7, i64 8}
!11 = !{!"_ZTSN2z36objectE", !7, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN2z314ast_vector_tplINS_4exprEEE", !11, i64 0, !7, i64 8}
!14 = !{!"_ZTSSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTS9ISASubset", !19, i64 0}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass