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

; 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::context" = type { i8, i32, 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::object" = type { 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 }

@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14AddConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22AddPerChainConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10PrintModelR14CodeGenContexti(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #0

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5SolveR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12FindSolutioniRK9ISASubset(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.z3::context", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %class.CodeGenContext, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @_ZN2z37contextC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 10, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 152, ptr %9) #5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN14CodeGenContextC2ERN2z37contextEiiiRK9ISASubset(ptr noundef nonnull align 8 dereferenceable(152) %9, ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 1, i32 noundef 10, i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %19 unwind label %30

19:                                               ; preds = %2
  invoke void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %9)
          to label %20 unwind label %34

20:                                               ; preds = %19
  invoke void @_Z14AddConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %9)
          to label %21 unwind label %34

21:                                               ; preds = %20
  invoke void @_Z22AddPerChainConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %9)
          to label %22 unwind label %34

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %23 = invoke noundef i32 @_Z5SolveR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %9)
          to label %24 unwind label %38

24:                                               ; preds = %22
  store i32 %23, ptr %12, align 4, !tbaa !11
  %25 = load i32, ptr %12, align 4, !tbaa !11
  %26 = icmp ne i32 %25, 1
  br i1 %26, label %27, label %42

27:                                               ; preds = %24
  %28 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.12)
          to label %29 unwind label %38

29:                                               ; preds = %27
  store i1 false, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %76

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %10, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %11, align 4
  br label %80

34:                                               ; preds = %21, %20, %19
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  br label %79

38:                                               ; preds = %44, %42, %27, %22
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  br label %78

42:                                               ; preds = %24
  %43 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.13)
          to label %44 unwind label %38

44:                                               ; preds = %42
  invoke void @_Z10PrintModelR14CodeGenContexti(ptr noundef nonnull align 8 dereferenceable(152) %9, i32 noundef 1)
          to label %45 unwind label %38

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 10000, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  %46 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.14)
          to label %47 unwind label %52

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %67, %47
  %49 = load i32, ptr %16, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 10000
  br i1 %50, label %56, label %51

51:                                               ; preds = %48
  store i32 2, ptr %13, align 4
  br label %70

52:                                               ; preds = %71, %45
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  br label %75

56:                                               ; preds = %48
  %57 = invoke noundef zeroext i1 @_ZL13EvaluateModelR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %9)
          to label %58 unwind label %60

58:                                               ; preds = %56
  br i1 %57, label %64, label %59

59:                                               ; preds = %58
  store i32 2, ptr %13, align 4
  br label %70

60:                                               ; preds = %56
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %75

64:                                               ; preds = %58
  %65 = load i32, ptr %15, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %15, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %16, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %16, align 4, !tbaa !5
  br label %48, !llvm.loop !13

70:                                               ; preds = %59, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %15, align 4, !tbaa !5
  %73 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %72, i32 noundef 10000)
          to label %74 unwind label %52

74:                                               ; preds = %71
  store i1 true, ptr %3, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %76

75:                                               ; preds = %60, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %78

76:                                               ; preds = %74, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @_ZN14CodeGenContextD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %9) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  %77 = load i1, ptr %3, align 1
  ret i1 %77

78:                                               ; preds = %75, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %79

79:                                               ; preds = %78, %34
  call void @_ZN14CodeGenContextD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %9) #5
  br label %80

80:                                               ; preds = %79, %30
  call void @llvm.lifetime.end.p0(i64 152, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %10, align 8
  %83 = load i32, ptr %11, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14CodeGenContextC2ERN2z37contextEiiiRK9ISASubset(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL13EvaluateModelR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) #0

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN2z312check_resultE", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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::context" = type { i8, i32, 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::object" = type { 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 }

@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14AddConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z22AddPerChainConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10PrintModelR14CodeGenContexti(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5SolveR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12FindSolutioniRK9ISASubset(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.z3::context", align 8
  %4 = alloca %class.CodeGenContext, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN2z37contextC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %4) #5
  invoke void @_ZN14CodeGenContextC2ERN2z37contextEiiiRK9ISASubset(ptr noundef nonnull align 8 dereferenceable(152) %4, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 1, i32 noundef 10, i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %5 unwind label %13

5:                                                ; preds = %2
  invoke void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %6 unwind label %15

6:                                                ; preds = %5
  invoke void @_Z14AddConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %7 unwind label %15

7:                                                ; preds = %6
  invoke void @_Z22AddPerChainConstraintsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %8 unwind label %15

8:                                                ; preds = %7
  %9 = invoke noundef i32 @_Z5SolveR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %10 unwind label %17

10:                                               ; preds = %8
  %.not = icmp eq i32 %9, 1
  br i1 %.not, label %19, label %11

11:                                               ; preds = %10
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %32

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %34

15:                                               ; preds = %7, %6, %5
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %33

17:                                               ; preds = %19, %8
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %33

19:                                               ; preds = %10
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  invoke void @_Z10PrintModelR14CodeGenContexti(ptr noundef nonnull align 8 dereferenceable(152) %4, i32 noundef 1)
          to label %21 unwind label %17

21:                                               ; preds = %19
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %23

23:                                               ; preds = %21, %28
  %.020 = phi i32 [ 0, %21 ], [ %29, %28 ]
  %24 = invoke noundef zeroext i1 @_ZL13EvaluateModelR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %4)
          to label %25 unwind label %26

25:                                               ; preds = %23
  br i1 %24, label %28, label %30

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %33

28:                                               ; preds = %25
  %29 = add nuw nsw i32 %.020, 1
  %exitcond.not = icmp eq i32 %29, 10000
  br i1 %exitcond.not, label %30, label %23, !llvm.loop !5

30:                                               ; preds = %25, %28
  %.09.lcssa = phi i32 [ %.020, %25 ], [ 10000, %28 ]
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %.09.lcssa, i32 noundef 10000)
  br label %32

32:                                               ; preds = %30, %11
  call void @_ZN14CodeGenContextD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %4) #5
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret i1 %.not

33:                                               ; preds = %17, %26, %15
  %.pn.pn = phi { ptr, i32 } [ %16, %15 ], [ %27, %26 ], [ %18, %17 ]
  call void @_ZN14CodeGenContextD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #5
  br label %34

34:                                               ; preds = %33, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %33 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %4) #5
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14CodeGenContextC2ERN2z37contextEiiiRK9ISASubset(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL13EvaluateModelR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree 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 #3 = { 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 #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,SROAPass,SimplifyCFGPass