; LLVM IR from bohanwang/libpgo :: third-party/CCD/ExactCCD/expansion.ll (Z6divideRK9expansionS1_RS_)

; 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.expansion = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_ = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32)) #0

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

; 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 @_Z3addRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN9expansionaSERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12remove_zerosR9expansion(ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z6divideRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca %class.expansion, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.expansion, align 8
  %13 = alloca %class.expansion, align 8
  %14 = alloca i32, align 4
  %15 = alloca %class.expansion, align 8
  %16 = alloca %class.expansion, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %17)
  %19 = xor i1 %18, true
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  br label %23

21:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 310, ptr noundef @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %24)
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z14make_expansiondR9expansion(double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(32) %27)
  store i1 true, ptr %4, align 1
  br label %154

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %29)
  store double %30, ptr %8, align 8, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %31)
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = fdiv double %32, %33
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z14make_expansiondR9expansion(double noundef %34, ptr noundef nonnull align 8 dereferenceable(32) %35)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_Z8multiplyRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %38 unwind label %59

38:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %39 unwind label %63

39:                                               ; preds = %38
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_Z8subtractRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %41 unwind label %67

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %133, %41
  %43 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %12)
  %44 = xor i1 %43, true
  br i1 %44, label %45, label %147

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %46 unwind label %71

46:                                               ; preds = %45
  %47 = invoke noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %48 unwind label %75

48:                                               ; preds = %46
  %49 = load double, ptr %8, align 8, !tbaa !9
  %50 = fdiv double %47, %49
  invoke void @_Z14make_expansiondR9expansion(double noundef %50, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %51 unwind label %75

51:                                               ; preds = %48
  %52 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %13)
  br i1 %52, label %53, label %92

53:                                               ; preds = %51
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %54)
  %56 = xor i1 %55, true
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %80

58:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 340, ptr noundef @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

59:                                               ; preds = %28
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %153

63:                                               ; preds = %38
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %152

67:                                               ; preds = %147, %39
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  br label %151

71:                                               ; preds = %45
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  br label %146

75:                                               ; preds = %92, %89, %86, %84, %82, %80, %48, %46
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %10, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %11, align 4
  br label %145

79:                                               ; No predecessors!
  br label %80

80:                                               ; preds = %79, %57
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %82 unwind label %75

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %84 unwind label %75

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %86 unwind label %75

86:                                               ; preds = %84
  %87 = load double, ptr %8, align 8, !tbaa !9
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %85, double noundef %87)
          to label %89 unwind label %75

89:                                               ; preds = %86
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %91 unwind label %75

91:                                               ; preds = %89
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %131

92:                                               ; preds = %51
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_Z3addRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %93, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %94)
          to label %95 unwind label %75

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %96 unwind label %110

96:                                               ; preds = %95
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_Z8multiplyRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %98 unwind label %114

98:                                               ; preds = %96
  %99 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %15)
  br i1 %99, label %100, label %124

100:                                              ; preds = %98
  %101 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %13)
  br i1 %101, label %106, label %102

102:                                              ; preds = %100
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %103)
  %105 = xor i1 %104, true
  br label %106

106:                                              ; preds = %102, %100
  %107 = phi i1 [ false, %100 ], [ %105, %102 ]
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  br label %119

109:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 356, ptr noundef @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

110:                                              ; preds = %95
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %11, align 4
  br label %144

114:                                              ; preds = %124, %121, %119, %96
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %10, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %11, align 4
  br label %143

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %108
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %121 unwind label %114

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %123 unwind label %114

123:                                              ; preds = %121
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %130

124:                                              ; preds = %98
  invoke void @_Z8subtractRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %125 unwind label %114

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %126 unwind label %134

126:                                              ; preds = %125
  invoke void @_Z8compressRK9expansionRS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %127 unwind label %138

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN9expansionaSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %129 unwind label %138

129:                                              ; preds = %127
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  store i32 0, ptr %14, align 4
  br label %130

130:                                              ; preds = %129, %123
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %131

131:                                              ; preds = %130, %91
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  %132 = load i32, ptr %14, align 4
  switch i32 %132, label %150 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  br label %42, !llvm.loop !11

134:                                              ; preds = %125
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  br label %142

138:                                              ; preds = %127, %126
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %143

143:                                              ; preds = %142, %114
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %144

144:                                              ; preds = %143, %110
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %145

145:                                              ; preds = %144, %75
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %146

146:                                              ; preds = %145, %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %151

147:                                              ; preds = %42
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_Z12remove_zerosR9expansion(ptr noundef nonnull align 8 dereferenceable(32) %148)
          to label %149 unwind label %67

149:                                              ; preds = %147
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %150

150:                                              ; preds = %149, %131
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %154

151:                                              ; preds = %146, %67
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %152

152:                                              ; preds = %151, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %153

153:                                              ; preds = %152, %59
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %156

154:                                              ; preds = %150, %26
  %155 = load i1, ptr %4, align 1
  ret i1 %155

156:                                              ; preds = %153
  %157 = load ptr, ptr %10, align 8
  %158 = load i32, ptr %11, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14make_expansiondR9expansion(double noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #3

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 #5 = { noreturn nounwind }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.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.expansion = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_ = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

; 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 @_Z3addRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN9expansionaSERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z6divideRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.expansion, align 8
  %5 = alloca %class.expansion, align 8
  %6 = alloca %class.expansion, align 8
  %7 = alloca %class.expansion, align 8
  %8 = alloca %class.expansion, align 8
  %9 = tail call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %1)
  br i1 %9, label %10, label %11

10:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 310, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

11:                                               ; preds = %3
  %12 = tail call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %0)
  br i1 %12, label %13, label %14

13:                                               ; preds = %11
  tail call void @_Z14make_expansiondR9expansion(double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(32) %2)
  br label %85

14:                                               ; preds = %11
  %15 = tail call noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %16 = tail call noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %17 = fdiv double %16, %15
  tail call void @_Z14make_expansiondR9expansion(double noundef %17, ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  invoke void @_Z8multiplyRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %18 unwind label %30

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %19 unwind label %32

19:                                               ; preds = %18
  invoke void @_Z8subtractRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %.preheader unwind label %34

.preheader:                                       ; preds = %19, %71
  %20 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %5)
  br i1 %20, label %81, label %21

21:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %22 unwind label %36

22:                                               ; preds = %21
  %23 = call noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %24 = fdiv double %23, %15
  invoke void @_Z14make_expansiondR9expansion(double noundef %24, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %25 unwind label %.loopexit

25:                                               ; preds = %22
  %26 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %6)
  br i1 %26, label %27, label %48

27:                                               ; preds = %25
  %28 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %1)
  br i1 %28, label %29, label %38

29:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 340, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

30:                                               ; preds = %14
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %84

32:                                               ; preds = %18
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %83

34:                                               ; preds = %81, %19
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %82

36:                                               ; preds = %21
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %80

.loopexit:                                        ; preds = %22, %48
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %79

.loopexit.split-lp:                               ; preds = %38, %40, %42, %44, %46
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %79

38:                                               ; preds = %27
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %40 unwind label %.loopexit.split-lp

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %42 unwind label %.loopexit.split-lp

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %44 unwind label %.loopexit.split-lp

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %43, double noundef %15)
          to label %46 unwind label %.loopexit.split-lp

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread unwind label %.loopexit.split-lp

.thread:                                          ; preds = %46
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %.loopexit48

48:                                               ; preds = %25
  invoke void @_Z3addRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %49 unwind label %.loopexit

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %50 unwind label %57

50:                                               ; preds = %49
  invoke void @_Z8multiplyRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %51 unwind label %59

51:                                               ; preds = %50
  %52 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %7)
  br i1 %52, label %53, label %65

53:                                               ; preds = %51
  %54 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %6)
  br i1 %54, label %.critedge, label %55

55:                                               ; preds = %53
  %56 = call noundef zeroext i1 @_Z7is_zeroRK9expansion(ptr noundef nonnull align 8 dereferenceable(32) %1)
  br i1 %56, label %.critedge, label %61

.critedge:                                        ; preds = %53, %55
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 356, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6divideRK9expansionS1_RS_) #5
  unreachable

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

59:                                               ; preds = %65, %63, %61, %50
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %77

61:                                               ; preds = %55
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %63 unwind label %59

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %59

65:                                               ; preds = %51
  invoke void @_Z8subtractRK9expansionS1_RS_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %66 unwind label %59

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZN9expansionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %67 unwind label %72

67:                                               ; preds = %66
  invoke void @_Z8compressRK9expansionRS_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %68 unwind label %74

68:                                               ; preds = %67
  %69 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN9expansionaSERKS_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %70 unwind label %74

70:                                               ; preds = %68
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %71

71:                                               ; preds = %70, %63
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br i1 %52, label %.loopexit48, label %.preheader, !llvm.loop !5

72:                                               ; preds = %66
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %68, %67
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %77

77:                                               ; preds = %76, %59
  %.pn37 = phi { ptr, i32 } [ %60, %59 ], [ %.pn, %76 ]
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %78

78:                                               ; preds = %77, %57
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %77 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %79

79:                                               ; preds = %.loopexit, %.loopexit.split-lp, %78
  %.pn40 = phi { ptr, i32 } [ %.pn37.pn, %78 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %80

80:                                               ; preds = %79, %36
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %79 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %82

81:                                               ; preds = %.preheader
  invoke void @_Z12remove_zerosR9expansion(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.loopexit48 unwind label %34

.loopexit48:                                      ; preds = %71, %.thread, %81
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %85

82:                                               ; preds = %80, %34
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %80 ], [ %35, %34 ]
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %83

83:                                               ; preds = %82, %32
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %82 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %84

84:                                               ; preds = %83, %30
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn, %83 ], [ %31, %30 ]
  call void @_ZN9expansionD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn40.pn.pn.pn.pn

85:                                               ; preds = %.loopexit48, %13
  %.435 = phi i1 [ true, %13 ], [ %20, %.loopexit48 ]
  ret i1 %.435
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14make_expansiondR9expansion(double noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z8estimateRK9expansion(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; 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 #2 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)) #3

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 #5 = { noreturn nounwind }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass