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

; 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::ast_vector_tpl" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }
%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", 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.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 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.z3::ast_vector_tpl", align 8
  %6 = alloca i32, align 4
  %7 = alloca [16 x i8], align 16
  %8 = alloca %"class.z3::expr", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [16 x i8], align 16
  %13 = alloca %"class.z3::expr", align 8
  %14 = alloca %"class.z3::expr", align 8
  %15 = alloca %"class.z3::expr", align 8
  %16 = alloca %"class.z3::expr", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %62, %1
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.CodeGenContext, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %70

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.CodeGenContext, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  call void @_ZN2z314ast_vector_tplINS_4exprEEC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %46, %24
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.CodeGenContext, ptr %30, i32 0, i32 4
  %32 = load i32, ptr %31, align 8, !tbaa !26
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %58

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %36 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %36, ptr noundef @.str, i32 noundef %37, i32 noundef %38) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.CodeGenContext, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  %43 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  invoke void @_ZN2z37context8bv_constEPKcj(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef %43, i32 noundef 32)
          to label %44 unwind label %49

44:                                               ; preds = %35
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %45 unwind label %53

45:                                               ; preds = %44
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %6, align 4, !tbaa !9
  br label %28, !llvm.loop !27

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %9, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %10, align 4
  br label %57

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %57

57:                                               ; preds = %53, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %69

58:                                               ; preds = %34
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.CodeGenContext, ptr %59, i32 0, i32 9
  invoke void @_ZNSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %61 unwind label %65

61:                                               ; preds = %58
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !9
  br label %17, !llvm.loop !29

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %69

69:                                               ; preds = %65, %57
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %140

70:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %119, %70
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.CodeGenContext, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !26
  %76 = icmp slt i32 %72, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %71
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %139

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %79 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %79, ptr noundef @.str.3, i32 noundef %80) #5
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %class.CodeGenContext, ptr %82, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.CodeGenContext, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  %87 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef %87)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %88 unwind label %122

88:                                               ; preds = %78
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %89 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %89, ptr noundef @.str.4, i32 noundef %90) #5
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.CodeGenContext, ptr %92, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.CodeGenContext, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !25
  %97 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef %97)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %98 unwind label %126

98:                                               ; preds = %88
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  %99 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %99, ptr noundef @.str.5, i32 noundef %100) #5
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.CodeGenContext, ptr %102, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.CodeGenContext, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !25
  %107 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef %107)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %108 unwind label %130

108:                                              ; preds = %98
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  %109 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %109, ptr noundef @.str.6, i32 noundef %110) #5
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.CodeGenContext, ptr %112, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %class.CodeGenContext, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  %117 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  call void @_ZN2z37context8bv_constEPKcj(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef %117, i32 noundef 32)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %113, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %118 unwind label %134

118:                                              ; preds = %108
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %11, align 4, !tbaa !9
  br label %71, !llvm.loop !30

122:                                              ; preds = %78
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %138

126:                                              ; preds = %88
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %9, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %10, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %138

130:                                              ; preds = %98
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %9, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %10, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %138

134:                                              ; preds = %108
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %9, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %10, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %138

138:                                              ; preds = %134, %130, %126, %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %140

139:                                              ; preds = %77
  ret void

140:                                              ; preds = %138, %69
  %141 = load ptr, ptr %9, align 8
  %142 = load i32, ptr %10, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 @_ZNSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind noalias writable sret(%"class.z3::expr") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3 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 = { 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 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 = !{!"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, !10, i64 28}
!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 = !{!12, !6, i64 0}
!26 = !{!12, !10, i64 32}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


; 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::ast_vector_tpl" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }
%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15CreateConstantsR14CodeGenContext(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.z3::ast_vector_tpl", align 8
  %3 = alloca [16 x i8], align 16
  %4 = alloca %"class.z3::expr", align 8
  %5 = alloca [16 x i8], align 16
  %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 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph42, label %.preheader

.lr.ph42:                                         ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  br label %22

.preheader:                                       ; preds = %38, %1
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load i32, ptr %15, align 8, !tbaa !23
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph44, label %._crit_edge45

.lr.ph44:                                         ; preds = %.preheader
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  br label %45

22:                                               ; preds = %.lr.ph42, %38
  %.03340 = phi i32 [ 0, %.lr.ph42 ], [ %39, %38 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %23 = load ptr, ptr %0, align 8, !tbaa !24
  call void @_ZN2z314ast_vector_tplINS_4exprEEC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %24 = load i32, ptr %13, align 8, !tbaa !23
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %29, %22
  invoke void @_ZNSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %38 unwind label %42

.lr.ph:                                           ; preds = %22, %29
  %.03239 = phi i32 [ %30, %29 ], [ 0, %22 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %26 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.03239, i32 noundef %.03340) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %27 = load ptr, ptr %0, align 8, !tbaa !24
  invoke void @_ZN2z37context8bv_constEPKcj(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull %3, i32 noundef 32)
          to label %28 unwind label %33

28:                                               ; preds = %.lr.ph
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %29 unwind label %35

29:                                               ; preds = %28
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %30 = add nuw nsw i32 %.03239, 1
  %31 = load i32, ptr %13, align 8, !tbaa !23
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !25

33:                                               ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %37

37:                                               ; preds = %35, %33
  %.pn35 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %44

38:                                               ; preds = %._crit_edge
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %39 = add nuw nsw i32 %.03340, 1
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %22, label %.preheader, !llvm.loop !27

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %44

44:                                               ; preds = %42, %37
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %37 ], [ %43, %42 ]
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %70

._crit_edge45:                                    ; preds = %57, %.preheader
  ret void

45:                                               ; preds = %.lr.ph44, %57
  %.043 = phi i32 [ 0, %.lr.ph44 ], [ %58, %57 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %46 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.043) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %47 = load ptr, ptr %0, align 8, !tbaa !24
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull %5)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %48 unwind label %61

48:                                               ; preds = %45
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %49 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.043) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %50 = load ptr, ptr %0, align 8, !tbaa !24
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull %5)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %51 unwind label %63

51:                                               ; preds = %48
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %52 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.043) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %53 = load ptr, ptr %0, align 8, !tbaa !24
  call void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull %5)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %54 unwind label %65

54:                                               ; preds = %51
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %55 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.043) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %56 = load ptr, ptr %0, align 8, !tbaa !24
  call void @_ZN2z37context8bv_constEPKcj(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull %5, i32 noundef 32)
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %57 unwind label %67

57:                                               ; preds = %54
  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 @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  %58 = add nuw nsw i32 %.043, 1
  %59 = load i32, ptr %15, align 8, !tbaa !23
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %45, label %._crit_edge45, !llvm.loop !28

61:                                               ; preds = %45
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %69

63:                                               ; preds = %48
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %69

65:                                               ; preds = %51
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %69

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %69

69:                                               ; preds = %67, %65, %63, %61
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ], [ %64, %63 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %70

70:                                               ; preds = %69, %44
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %44 ], [ %.pn, %69 ]
  resume { ptr, i32 } %.pn35.pn.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 @_ZNSt6vectorIN2z314ast_vector_tplINS0_4exprEEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z37context9int_constEPKc(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 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 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, !12, i64 28}
!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 = !{!6, !12, i64 32}
!24 = !{!6, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass