; LLVM IR from abeaumont/competitive-programming :: advent-of-code/2018/day23 (part2)

; 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.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<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.4" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }
%"struct.std::_Head_base.4" = type { i32 }
%"struct.std::_Head_base.5" = type { i32 }
%"class.z3::context" = type { i8, i32, ptr }
%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }
%"class.z3::optimize" = type { %"class.z3::object", ptr }
%"class.z3::ast_vector_tpl" = type { %"class.z3::object", ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::tuple.6" = type { %"struct.std::_Tuple_impl.7" }
%"struct.std::_Tuple_impl.7" = type { %"struct.std::_Tuple_impl.8", %"struct.std::_Head_base.14" }
%"struct.std::_Tuple_impl.8" = type { %"struct.std::_Tuple_impl.9", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Tuple_impl.10", %"struct.std::_Head_base.12" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base.11" }
%"struct.std::_Head_base.11" = type { ptr }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_Head_base.13" = type { ptr }
%"struct.std::_Head_base.14" = type { ptr }
%"class.z3::optimize::handle" = type { i32 }
%"class.z3::model" = type { %"class.z3::object", ptr }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::tuple", align 4
  %10 = alloca %"class.z3::context", align 8
  %11 = alloca %"class.z3::expr", align 8
  %12 = alloca %"class.z3::expr", align 8
  %13 = alloca %"class.z3::expr", align 8
  %14 = alloca %"class.z3::optimize", align 8
  %15 = alloca %"class.z3::ast_vector_tpl", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::tuple.6", align 8
  %21 = alloca %"class.z3::expr", align 8
  %22 = alloca %"class.z3::expr", align 8
  %23 = alloca %"class.z3::expr", align 8
  %24 = alloca %"class.z3::expr", align 8
  %25 = alloca %"class.z3::expr", align 8
  %26 = alloca %"class.z3::expr", align 8
  %27 = alloca %"class.z3::expr", align 8
  %28 = alloca %"class.z3::expr", align 8
  %29 = alloca %"class.z3::expr", align 8
  %30 = alloca %"class.z3::expr", align 8
  %31 = alloca %"class.z3::expr", align 8
  %32 = alloca %"class.z3::expr", align 8
  %33 = alloca %"class.z3::expr", align 8
  %34 = alloca %"class.z3::optimize::handle", align 4
  %35 = alloca %"class.z3::model", align 8
  %36 = alloca %"class.z3::expr", align 8
  %37 = alloca %"class.z3::expr", align 8
  %38 = alloca %"class.z3::expr", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  br label %39

39:                                               ; preds = %44, %0
  %40 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
          to label %41 unwind label %45

41:                                               ; preds = %39
  %42 = icmp ne i32 %40, -1
  br i1 %42, label %43, label %53

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @_ZNSt5tupleIJiiiiEEC2IJRiS2_S2_S2_ELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #7
  invoke void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %44 unwind label %49

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %39, !llvm.loop !5

45:                                               ; preds = %39
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  br label %240

49:                                               ; preds = %43
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %240

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  invoke void @_ZN2z37contextC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %54 unwind label %69

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.1)
          to label %55 unwind label %73

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.2)
          to label %56 unwind label %77

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.3)
          to label %57 unwind label %81

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  invoke void @_ZN2z38optimizeC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %58 unwind label %85

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  invoke void @_ZN2z314ast_vector_tplINS_4exprEEC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %59 unwind label %89

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr %2, ptr %16, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %60 = load ptr, ptr %16, align 8, !tbaa !7
  %61 = call ptr @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %63 = load ptr, ptr %16, align 8, !tbaa !7
  %64 = call ptr @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  br label %66

66:                                               ; preds = %114, %59
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %67, label %93, label %68

68:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %180

69:                                               ; preds = %53
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %239

73:                                               ; preds = %54
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %238

77:                                               ; preds = %55
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %237

81:                                               ; preds = %56
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %236

85:                                               ; preds = %57
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  br label %235

89:                                               ; preds = %58
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %234

93:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %94 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %94, ptr %19, align 8, !tbaa !7
  %95 = load ptr, ptr %19, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @_ZSt3tieIJiiiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple.6") align 8 %20, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #7
  %96 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5tupleIJRiS0_S0_S0_EEaSIJiiiiEEENSt9enable_ifIXcl12__assignableIDpRKT_EEERS1_E4typeERKS_IJDpS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 4 dereferenceable(16) %95) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %97 = load i32, ptr %3, align 4, !tbaa !11
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %97)
          to label %98 unwind label %116

98:                                               ; preds = %93
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %99 unwind label %120

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %100 = load i32, ptr %4, align 4, !tbaa !11
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef %100)
          to label %101 unwind label %124

101:                                              ; preds = %99
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %102 unwind label %128

102:                                              ; preds = %101
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %103 unwind label %132

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %104 = load i32, ptr %5, align 4, !tbaa !11
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %104)
          to label %105 unwind label %136

105:                                              ; preds = %103
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %106 unwind label %140

106:                                              ; preds = %105
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %107 unwind label %144

107:                                              ; preds = %106
  %108 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_ZN2z3leERKNS_4exprEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef %108)
          to label %109 unwind label %148

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  invoke void @_ZN2z37context7int_valEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 1)
          to label %110 unwind label %152

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  invoke void @_ZN2z37context7int_valEi(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0)
          to label %111 unwind label %156

111:                                              ; preds = %110
  invoke void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %112 unwind label %160

112:                                              ; preds = %111
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %113 unwind label %164

113:                                              ; preds = %112
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %114

114:                                              ; preds = %113
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %66

116:                                              ; preds = %93
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %7, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %8, align 4
  br label %179

120:                                              ; preds = %98
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  br label %178

124:                                              ; preds = %99
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %7, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %8, align 4
  br label %177

128:                                              ; preds = %101
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  br label %176

132:                                              ; preds = %102
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %7, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %8, align 4
  br label %175

136:                                              ; preds = %103
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %7, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %8, align 4
  br label %174

140:                                              ; preds = %105
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %7, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %8, align 4
  br label %173

144:                                              ; preds = %106
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %7, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %8, align 4
  br label %172

148:                                              ; preds = %107
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %7, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %8, align 4
  br label %171

152:                                              ; preds = %109
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  br label %170

156:                                              ; preds = %110
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  br label %169

160:                                              ; preds = %111
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  br label %168

164:                                              ; preds = %112
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %7, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %8, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  br label %168

168:                                              ; preds = %164, %160
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  br label %169

169:                                              ; preds = %168, %156
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  br label %170

170:                                              ; preds = %169, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %171

171:                                              ; preds = %170, %148
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  br label %172

172:                                              ; preds = %171, %144
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %173

173:                                              ; preds = %172, %140
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  br label %174

174:                                              ; preds = %173, %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %175

175:                                              ; preds = %174, %132
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  br label %176

176:                                              ; preds = %175, %128
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  br label %177

177:                                              ; preds = %176, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %178

178:                                              ; preds = %177, %120
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %179

179:                                              ; preds = %178, %116
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %233

180:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  invoke void @_ZN2z33sumERKNS_14ast_vector_tplINS_4exprEEE(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %181 unwind label %196

181:                                              ; preds = %180
  %182 = invoke i32 @_ZN2z38optimize8maximizeERKNS_4exprE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %183 unwind label %200

183:                                              ; preds = %181
  %184 = getelementptr inbounds %"class.z3::optimize::handle", ptr %34, i32 0, i32 0
  store i32 %182, ptr %184, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  %185 = invoke noundef i32 @_ZN2z38optimize5checkEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %186 unwind label %205

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  invoke void @_ZNK2z38optimize9get_modelEv(ptr dead_on_unwind writable sret(%"class.z3::model") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %187 unwind label %209

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %38, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %188 unwind label %213

188:                                              ; preds = %187
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %37, ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %189 unwind label %217

189:                                              ; preds = %188
  invoke void @_ZNK2z35model4evalERKNS_4exprEb(ptr dead_on_unwind writable sret(%"class.z3::expr") align 8 %36, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %37, i1 noundef zeroext false)
          to label %190 unwind label %221

190:                                              ; preds = %189
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2z3lsERSoRKNS_3astE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %192 unwind label %225

192:                                              ; preds = %190
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %194 unwind label %225

194:                                              ; preds = %192
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @_ZN2z35modelD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZN2z38optimizeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  %195 = load i32, ptr %1, align 4
  ret i32 %195

196:                                              ; preds = %180
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %7, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %8, align 4
  br label %204

200:                                              ; preds = %181
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %7, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %8, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  br label %204

204:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %233

205:                                              ; preds = %183
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  br label %233

209:                                              ; preds = %186
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %7, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %8, align 4
  br label %232

213:                                              ; preds = %187
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %7, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %8, align 4
  br label %231

217:                                              ; preds = %188
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %7, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %8, align 4
  br label %230

221:                                              ; preds = %189
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %7, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %8, align 4
  br label %229

225:                                              ; preds = %192, %190
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %7, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %8, align 4
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  br label %229

229:                                              ; preds = %225, %221
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #7
  br label %230

230:                                              ; preds = %229, %217
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #7
  br label %231

231:                                              ; preds = %230, %213
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @_ZN2z35modelD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  br label %232

232:                                              ; preds = %231, %209
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %233

233:                                              ; preds = %232, %205, %204, %179
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %234

234:                                              ; preds = %233, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZN2z38optimizeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %235

235:                                              ; preds = %234, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %236

236:                                              ; preds = %235, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %237

237:                                              ; preds = %236, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %238

238:                                              ; preds = %237, %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %239

239:                                              ; preds = %238, %69
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %240

240:                                              ; preds = %239, %49, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %241

241:                                              ; preds = %240
  %242 = load ptr, ptr %7, align 8
  %243 = load i32, ptr %8, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245
}

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

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiiEEC2IJRiS2_S2_S2_ELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 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 @_ZN2z37contextC2Ev(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) #5 align 2

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

; 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 #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJiiiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.6") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5tupleIJRiS0_S0_S0_EEaSIJiiiiEEENSt9enable_ifIXcl12__assignableIDpRKT_EEERS1_E4typeERKS_IJDpS4_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 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)) #4 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)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3plERKNS_4exprES2_(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)) #5

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2z3lsERSoRKNS_3astE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2z35model4evalERKNS_4exprEb(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), i1 noundef zeroext) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

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


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

%"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<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int, int>, std::allocator<std::tuple<int, int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.5" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.4" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }
%"struct.std::_Head_base.4" = type { i32 }
%"struct.std::_Head_base.5" = type { i32 }
%"class.z3::context" = type { i8, i32, ptr }
%"class.z3::expr" = type { %"class.z3::ast" }
%"class.z3::ast" = type { %"class.z3::object", ptr }
%"class.z3::object" = type { ptr }
%"class.z3::optimize" = type { %"class.z3::object", ptr }
%"class.z3::ast_vector_tpl" = type { %"class.z3::object", ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::tuple.6" = type { %"struct.std::_Tuple_impl.7" }
%"struct.std::_Tuple_impl.7" = type { %"struct.std::_Tuple_impl.8", %"struct.std::_Head_base.14" }
%"struct.std::_Tuple_impl.8" = type { %"struct.std::_Tuple_impl.9", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Tuple_impl.10", %"struct.std::_Head_base.12" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base.11" }
%"struct.std::_Head_base.11" = type { ptr }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.std::_Head_base.13" = type { ptr }
%"struct.std::_Head_base.14" = type { ptr }
%"class.z3::model" = type { %"class.z3::object", ptr }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::tuple", align 4
  %7 = alloca %"class.z3::context", align 8
  %8 = alloca %"class.z3::expr", align 8
  %9 = alloca %"class.z3::expr", align 8
  %10 = alloca %"class.z3::expr", align 8
  %11 = alloca %"class.z3::optimize", align 8
  %12 = alloca %"class.z3::ast_vector_tpl", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.std::tuple.6", align 8
  %16 = alloca %"class.z3::expr", align 8
  %17 = alloca %"class.z3::expr", align 8
  %18 = alloca %"class.z3::expr", align 8
  %19 = alloca %"class.z3::expr", align 8
  %20 = alloca %"class.z3::expr", align 8
  %21 = alloca %"class.z3::expr", align 8
  %22 = alloca %"class.z3::expr", align 8
  %23 = alloca %"class.z3::expr", align 8
  %24 = alloca %"class.z3::expr", align 8
  %25 = alloca %"class.z3::expr", align 8
  %26 = alloca %"class.z3::expr", align 8
  %27 = alloca %"class.z3::expr", align 8
  %28 = alloca %"class.z3::expr", align 8
  %29 = alloca %"class.z3::model", align 8
  %30 = alloca %"class.z3::expr", align 8
  %31 = alloca %"class.z3::expr", align 8
  %32 = alloca %"class.z3::expr", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not62 = icmp eq i32 %33, -1
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZNSt5tupleIJiiiiEEC2IJRiS2_S2_S2_ELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #7
  invoke void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %34 unwind label %36

34:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not = icmp eq i32 %35, -1
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

36:                                               ; preds = %.lr.ph
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %159

._crit_edge:                                      ; preds = %34, %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  invoke void @_ZN2z37contextC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %38 unwind label %47

38:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.1)
          to label %39 unwind label %49

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.2)
          to label %40 unwind label %51

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  invoke void @_ZN2z37context9int_constEPKc(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.3)
          to label %41 unwind label %53

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  invoke void @_ZN2z38optimizeC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %42 unwind label %55

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  invoke void @_ZN2z314ast_vector_tplINS_4exprEEC2ERNS_7contextE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %43 unwind label %57

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %44 = call ptr @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %44, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %45 = call ptr @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %45, ptr %14, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %46, label %.lr.ph64, label %._crit_edge65

._crit_edge65:                                    ; preds = %77, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #7
  invoke void @_ZN2z33sumERKNS_14ast_vector_tplINS_4exprEEE(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %118 unwind label %131

47:                                               ; preds = %._crit_edge
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %158

49:                                               ; preds = %38
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %157

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %156

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %155

55:                                               ; preds = %41
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %154

57:                                               ; preds = %42
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %153

.lr.ph64:                                         ; preds = %43, %77
  %59 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @_ZSt3tieIJiiiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.6") align 8 %15, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #7
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5tupleIJRiS0_S0_S0_EEaSIJiiiiEEENSt9enable_ifIXcl12__assignableIDpRKT_EEERS1_E4typeERKS_IJDpS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 4 dereferenceable(16) %59) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %61 = load i32, ptr %2, align 4, !tbaa !7
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %61)
          to label %62 unwind label %80

62:                                               ; preds = %.lr.ph64
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %63 unwind label %82

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %64 = load i32, ptr %3, align 4, !tbaa !7
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %64)
          to label %65 unwind label %84

65:                                               ; preds = %63
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %66 unwind label %86

66:                                               ; preds = %65
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %67 unwind label %88

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %68 = load i32, ptr %4, align 4, !tbaa !7
  invoke void @_ZN2z3miERKNS_4exprEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %68)
          to label %69 unwind label %90

69:                                               ; preds = %67
  invoke void @_ZN2z33absERKNS_4exprE(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %70 unwind label %92

70:                                               ; preds = %69
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %71 unwind label %94

71:                                               ; preds = %70
  %72 = load i32, ptr %5, align 4, !tbaa !7
  invoke void @_ZN2z3leERKNS_4exprEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, i32 noundef %72)
          to label %73 unwind label %96

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #7
  invoke void @_ZN2z37context7int_valEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef 1)
          to label %74 unwind label %98

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  invoke void @_ZN2z37context7int_valEi(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef 0)
          to label %75 unwind label %100

75:                                               ; preds = %74
  invoke void @_ZN2z33iteERKNS_4exprES2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %76 unwind label %102

76:                                               ; preds = %75
  invoke void @_ZN2z314ast_vector_tplINS_4exprEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %77 unwind label %104

77:                                               ; preds = %76
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %79, label %.lr.ph64, label %._crit_edge65

80:                                               ; preds = %.lr.ph64
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %117

82:                                               ; preds = %62
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %116

84:                                               ; preds = %63
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %115

86:                                               ; preds = %65
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %114

88:                                               ; preds = %66
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %113

90:                                               ; preds = %67
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %112

92:                                               ; preds = %69
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %111

94:                                               ; preds = %70
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %110

96:                                               ; preds = %71
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %109

98:                                               ; preds = %73
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %108

100:                                              ; preds = %74
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %107

102:                                              ; preds = %75
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %106

104:                                              ; preds = %76
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %106

106:                                              ; preds = %104, %102
  %.pn40 = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  br label %107

107:                                              ; preds = %106, %100
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %106 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %108

108:                                              ; preds = %107, %98
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %107 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %109

109:                                              ; preds = %108, %96
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %108 ], [ %97, %96 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %110

110:                                              ; preds = %109, %94
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn, %109 ], [ %95, %94 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %111

111:                                              ; preds = %110, %92
  %.pn40.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn, %110 ], [ %93, %92 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %112

112:                                              ; preds = %111, %90
  %.pn40.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn, %111 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  br label %113

113:                                              ; preds = %112, %88
  %.pn40.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn, %112 ], [ %89, %88 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %114

114:                                              ; preds = %113, %86
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn, %113 ], [ %87, %86 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  br label %115

115:                                              ; preds = %114, %84
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn, %114 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %116

116:                                              ; preds = %115, %82
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn, %115 ], [ %83, %82 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  br label %117

117:                                              ; preds = %116, %80
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %116 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %152

118:                                              ; preds = %._crit_edge65
  %119 = invoke i32 @_ZN2z38optimize8maximizeERKNS_4exprE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %120 unwind label %133

120:                                              ; preds = %118
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  %121 = invoke noundef i32 @_ZN2z38optimize5checkEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %122 unwind label %136

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #7
  invoke void @_ZNK2z38optimize9get_modelEv(ptr dead_on_unwind nonnull writable sret(%"class.z3::model") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %123 unwind label %138

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #7
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %124 unwind label %140

124:                                              ; preds = %123
  invoke void @_ZN2z3plERKNS_4exprES2_(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %125 unwind label %142

125:                                              ; preds = %124
  invoke void @_ZNK2z35model4evalERKNS_4exprEb(ptr dead_on_unwind nonnull writable sret(%"class.z3::expr") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %31, i1 noundef zeroext false)
          to label %126 unwind label %144

126:                                              ; preds = %125
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2z3lsERSoRKNS_3astE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %128 unwind label %146

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %130 unwind label %146

130:                                              ; preds = %128
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @_ZN2z35modelD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #7
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN2z38optimizeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  ret i32 0

131:                                              ; preds = %._crit_edge65
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %135

133:                                              ; preds = %118
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  br label %135

135:                                              ; preds = %133, %131
  %.pn = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  br label %152

136:                                              ; preds = %120
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %152

138:                                              ; preds = %122
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %151

140:                                              ; preds = %123
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %150

142:                                              ; preds = %124
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %149

144:                                              ; preds = %125
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %148

146:                                              ; preds = %128, %126
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  br label %148

148:                                              ; preds = %146, %144
  %.pn35 = phi { ptr, i32 } [ %147, %146 ], [ %145, %144 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  br label %149

149:                                              ; preds = %148, %142
  %.pn35.pn = phi { ptr, i32 } [ %.pn35, %148 ], [ %143, %142 ]
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  br label %150

150:                                              ; preds = %149, %140
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %149 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @_ZN2z35modelD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %151

151:                                              ; preds = %150, %138
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn, %150 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #7
  br label %152

152:                                              ; preds = %151, %136, %135, %117
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %117 ], [ %.pn35.pn.pn.pn, %151 ], [ %137, %136 ], [ %.pn, %135 ]
  call void @_ZN2z314ast_vector_tplINS_4exprEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %153

153:                                              ; preds = %152, %57
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %152 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN2z38optimizeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %154

154:                                              ; preds = %153, %55
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %153 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %155

155:                                              ; preds = %154, %53
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %154 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %156

156:                                              ; preds = %155, %51
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %155 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN2z33astD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %157

157:                                              ; preds = %156, %49
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %156 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN2z37contextD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %158

158:                                              ; preds = %157, %47
  %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %157 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %159

159:                                              ; preds = %158, %36
  %.pn60 = phi { ptr, i32 } [ %37, %36 ], [ %.pn40.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %158 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn60
}

; 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJiiiiEEC2IJRiS2_S2_S2_ELb1ETnNSt9enable_ifIXclsr4_TCCIXT0_EEE29__is_implicitly_constructibleIDpT_EEEbE4typeELb1EEEDpOS4_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 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 @_ZN2z37contextC2Ev(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 #5 align 2

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

; 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 #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJiiiiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJiiiiEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.6") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5tupleIJRiS0_S0_S0_EEaSIJiiiiEEENSt9enable_ifIXcl12__assignableIDpRKT_EEERS1_E4typeERKS_IJDpS4_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 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 #4 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 #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3leERKNS_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 #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3plERKNS_4exprES2_(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)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2z3miERKNS_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 #5

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2z3lsERSoRKNS_3astE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2z35model4evalERKNS_4exprEb(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), i1 noundef zeroext) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { 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 #7 = { 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"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


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