; LLVM IR from gem5/gem5 :: src/sim/linear_solver.ll (ZNK4gem512LinearSystem5solveEv)

; 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::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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl" }
%"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl" = type { %"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.gem5::LinearEquation" = type { %"class.std::vector" }
%"class.std::allocator" = type { i8 }
%"class.gem5::LinearSystem" = type { %"class.std::vector.0" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4gem512LinearSystem5solveEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.gem5::LinearEquation", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.gem5::LinearEquation", align 8
  %15 = alloca %"class.gem5::LinearEquation", align 8
  %16 = alloca i1, align 1
  %17 = alloca double, align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %22 = getelementptr inbounds %"class.gem5::LinearSystem", ptr %21, i32 0, i32 0
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %23 = call noundef i64 @_ZNKSt6vectorIN4gem514LinearEquationESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %155, %2
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sub i32 %27, 1
  %29 = icmp ult i32 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %159

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %32 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %32, ptr %9, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %84, %31
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 5, ptr %8, align 4
  br label %87

38:                                               ; preds = %33
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %40) #6
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %41, i32 noundef %42)
          to label %44 unwind label %69

44:                                               ; preds = %38
  %45 = load double, ptr %43, align 8, !tbaa !11
  %46 = fcmp une double %45, 0.000000e+00
  br i1 %46, label %47, label %83

47:                                               ; preds = %44
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = icmp ne i32 %48, %49
  br i1 %50, label %51, label %82

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %53) #6
  invoke void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %54)
          to label %55 unwind label %73

55:                                               ; preds = %51
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %57) #6
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %60) #6
  %62 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %63 unwind label %77

63:                                               ; preds = %55
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %65) #6
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %68 unwind label %77

68:                                               ; preds = %63
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %82

69:                                               ; preds = %38
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %10, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %11, align 4
  br label %88

73:                                               ; preds = %51
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  br label %81

77:                                               ; preds = %63, %55
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %88

82:                                               ; preds = %68, %47
  store i32 5, ptr %8, align 4
  br label %87

83:                                               ; preds = %44
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !9
  br label %33, !llvm.loop !13

87:                                               ; preds = %82, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %89

88:                                               ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %158

89:                                               ; preds = %87
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %91) #6
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %92, i32 noundef %93)
          to label %95 unwind label %110

95:                                               ; preds = %89
  %96 = load double, ptr %94, align 8, !tbaa !11
  %97 = fdiv double 1.000000e+00, %96
  %98 = load i32, ptr %7, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %99) #6
  %101 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationmLEd(ptr noundef nonnull align 8 dereferenceable(24) %100, double noundef %97)
          to label %102 unwind label %110

102:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = add i32 %103, 1
  store i32 %104, ptr %13, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %137, %102
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = icmp ult i32 %106, %107
  br i1 %108, label %114, label %109

109:                                              ; preds = %105
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %154

110:                                              ; preds = %95, %89
  %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 %158

114:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %116) #6
  invoke void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %117)
          to label %118 unwind label %140

118:                                              ; preds = %114
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %120) #6
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %121, i32 noundef %122)
          to label %124 unwind label %144

124:                                              ; preds = %118
  %125 = load double, ptr %123, align 8, !tbaa !11
  %126 = fmul double -1.000000e+00, %125
  %127 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationmLEd(ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef %126)
          to label %128 unwind label %144

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %130) #6
  invoke void @_ZN4gem514LinearEquationplERKS0_(ptr dead_on_unwind writable sret(%"class.gem5::LinearEquation") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %132 unwind label %148

132:                                              ; preds = %128
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %134) #6
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  br label %137

137:                                              ; preds = %132
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = add i32 %138, 1
  store i32 %139, ptr %13, align 4, !tbaa !9
  br label %105, !llvm.loop !15

140:                                              ; preds = %114
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %10, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %11, align 4
  br label %153

144:                                              ; preds = %124, %118
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %10, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %11, align 4
  br label %152

148:                                              ; preds = %128
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %10, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %152

152:                                              ; preds = %148, %144
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %153

153:                                              ; preds = %152, %140
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %158

154:                                              ; preds = %109
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %7, align 4, !tbaa !9
  %157 = add i32 %156, 1
  store i32 %157, ptr %7, align 4, !tbaa !9
  br label %25, !llvm.loop !16

158:                                              ; preds = %153, %110, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %253

159:                                              ; preds = %30
  store i1 false, ptr %16, align 1
  %160 = load i32, ptr %6, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %161, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %162 unwind label %169

162:                                              ; preds = %159
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %163 = load i32, ptr %6, align 4, !tbaa !9
  %164 = sub i32 %163, 1
  store i32 %164, ptr %19, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %245, %162
  %166 = load i32, ptr %19, align 4, !tbaa !9
  %167 = icmp sge i32 %166, 0
  br i1 %167, label %173, label %168

168:                                              ; preds = %165
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %249

169:                                              ; preds = %159
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %10, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %253

173:                                              ; preds = %165
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %175) #6
  %177 = load i32, ptr %19, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %178) #6
  %180 = invoke noundef i32 @_ZNK4gem514LinearEquation3cntEv(ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %181 unwind label %203

181:                                              ; preds = %173
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %176, i32 noundef %180)
          to label %183 unwind label %203

183:                                              ; preds = %181
  %184 = load double, ptr %182, align 8, !tbaa !11
  %185 = fneg double %184
  %186 = load i32, ptr %19, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %187) #6
  %189 = load i32, ptr %19, align 4, !tbaa !9
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %188, i32 noundef %189)
          to label %191 unwind label %203

191:                                              ; preds = %183
  %192 = load double, ptr %190, align 8, !tbaa !11
  %193 = fdiv double %185, %192
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %195) #6
  store double %193, ptr %196, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %197 = load i32, ptr %19, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  store i32 %198, ptr %20, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %237, %191
  %200 = load i32, ptr %20, align 4, !tbaa !9
  %201 = icmp sge i32 %200, 0
  br i1 %201, label %207, label %202

202:                                              ; preds = %199
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %244

203:                                              ; preds = %183, %181, %173
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %10, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %11, align 4
  br label %248

207:                                              ; preds = %199
  %208 = load i32, ptr %19, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %209) #6
  %211 = load double, ptr %210, align 8, !tbaa !11
  %212 = load i32, ptr %20, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %213) #6
  %215 = load i32, ptr %19, align 4, !tbaa !9
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %214, i32 noundef %215)
          to label %217 unwind label %240

217:                                              ; preds = %207
  %218 = load double, ptr %216, align 8, !tbaa !11
  %219 = load i32, ptr %20, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %220) #6
  %222 = load i32, ptr %20, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %223) #6
  %225 = invoke noundef i32 @_ZNK4gem514LinearEquation3cntEv(ptr noundef nonnull align 8 dereferenceable(24) %224)
          to label %226 unwind label %240

226:                                              ; preds = %217
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %221, i32 noundef %225)
          to label %228 unwind label %240

228:                                              ; preds = %226
  %229 = load double, ptr %227, align 8, !tbaa !11
  %230 = call double @llvm.fmuladd.f64(double %211, double %218, double %229)
  store double %230, ptr %227, align 8, !tbaa !11
  %231 = load i32, ptr %20, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %232) #6
  %234 = load i32, ptr %19, align 4, !tbaa !9
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %233, i32 noundef %234)
          to label %236 unwind label %240

236:                                              ; preds = %228
  store double 0.000000e+00, ptr %235, align 8, !tbaa !11
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %20, align 4, !tbaa !9
  %239 = add nsw i32 %238, -1
  store i32 %239, ptr %20, align 4, !tbaa !9
  br label %199, !llvm.loop !17

240:                                              ; preds = %228, %226, %217, %207
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %10, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %248

244:                                              ; preds = %202
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %19, align 4, !tbaa !9
  %247 = add nsw i32 %246, -1
  store i32 %247, ptr %19, align 4, !tbaa !9
  br label %165, !llvm.loop !18

248:                                              ; preds = %240, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %253

249:                                              ; preds = %168
  store i1 true, ptr %16, align 1
  store i32 1, ptr %8, align 4
  %250 = load i1, ptr %16, align 1
  br i1 %250, label %252, label %251

251:                                              ; preds = %249
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %252

252:                                              ; preds = %251, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  ret void

253:                                              ; preds = %248, %169, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %254

254:                                              ; preds = %253
  %255 = load ptr, ptr %10, align 8
  %256 = load i32, ptr %11, align 4
  %257 = insertvalue { ptr, i32 } poison, ptr %255, 0
  %258 = insertvalue { ptr, i32 } %257, i32 %256, 1
  resume { ptr, i32 } %258
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4gem514LinearEquationplERKS0_(ptr dead_on_unwind noalias writable sret(%"class.gem5::LinearEquation") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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::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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl" }
%"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl" = type { %"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gem5::LinearEquation, std::allocator<gem5::LinearEquation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.gem5::LinearEquation" = type { %"class.std::vector" }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4gem512LinearSystem5solveEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.gem5::LinearEquation", align 8
  %5 = alloca %"class.gem5::LinearEquation", align 8
  %6 = alloca %"class.gem5::LinearEquation", align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %9 = call noundef i64 @_ZNKSt6vectorIN4gem514LinearEquationESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %10 = trunc i64 %9 to i32
  %11 = add i32 %10, -1
  %.not84 = icmp eq i32 %11, 0
  br i1 %.not84, label %._crit_edge, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %12 = and i64 %9, 4294967295
  %wide.trip.count97 = zext i32 %11 to i64
  br label %.preheader

.loopexit:                                        ; preds = %53, %.loopexit64
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next, %wide.trip.count97
  br i1 %exitcond98.not, label %._crit_edge, label %.preheader, !llvm.loop !5

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit
  %indvars.iv90 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next91, %.loopexit ]
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.loopexit ]
  %13 = icmp ult i64 %indvars.iv, %12
  %14 = trunc nuw i64 %indvars.iv to i32
  br i1 %13, label %.lr.ph, label %.loopexit64

._crit_edge:                                      ; preds = %.loopexit, %2
  %15 = and i64 %9, 4294967295
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %15, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %61 unwind label %64

.lr.ph:                                           ; preds = %.preheader, %37
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %37 ], [ %indvars.iv, %.preheader ]
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #6
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %14)
  %18 = load double, ptr %17, align 8, !tbaa !7
  %19 = fcmp une double %18, 0.000000e+00
  br i1 %19, label %20, label %37

20:                                               ; preds = %.lr.ph
  %21 = and i64 %indvars.iv87, 4294967295
  %.not = icmp eq i64 %21, %indvars.iv
  br i1 %.not, label %.loopexit64, label %22

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #6
  invoke void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %24 unwind label %32

24:                                               ; preds = %22
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv87) #6
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %28 unwind label %34

28:                                               ; preds = %24
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %30 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %31 unwind label %34

31:                                               ; preds = %28
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %.loopexit64

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

34:                                               ; preds = %28, %24
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %36

36:                                               ; preds = %34, %32
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %94

37:                                               ; preds = %.lr.ph
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next88, %12
  br i1 %exitcond.not, label %.loopexit64, label %.lr.ph, !llvm.loop !11

.loopexit64:                                      ; preds = %37, %.preheader, %20, %31
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %38, i32 noundef %14)
  %40 = load double, ptr %39, align 8, !tbaa !7
  %41 = fdiv double 1.000000e+00, %40
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationmLEd(ptr noundef nonnull align 8 dereferenceable(24) %42, double noundef %41)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = icmp ult i64 %indvars.iv.next, %12
  br i1 %44, label %.lr.ph73, label %.loopexit

.lr.ph73:                                         ; preds = %.loopexit64, %53
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %53 ], [ %indvars.iv90, %.loopexit64 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  invoke void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %46 unwind label %56

46:                                               ; preds = %.lr.ph73
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv92) #6
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %47, i32 noundef %14)
  %49 = load double, ptr %48, align 8, !tbaa !7
  %50 = fneg double %49
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationmLEd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %50)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv92) #6
  invoke void @_ZN4gem514LinearEquationplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.gem5::LinearEquation") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %53 unwind label %58

53:                                               ; preds = %46
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv92) #6
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4gem514LinearEquationaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next93 to i32
  %exitcond95.not = icmp eq i32 %lftr.wideiv, %10
  br i1 %exitcond95.not, label %.loopexit, label %.lr.ph73, !llvm.loop !12

56:                                               ; preds = %.lr.ph73
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN4gem514LinearEquationD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn60 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %94

61:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %62 = icmp sgt i32 %11, -1
  br i1 %62, label %.lr.ph82.preheader, label %._crit_edge83

.lr.ph82.preheader:                               ; preds = %61
  %63 = zext nneg i32 %11 to i64
  br label %.lr.ph82

64:                                               ; preds = %._crit_edge
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %94

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %._crit_edge79
  %indvars.iv99 = phi i64 [ %63, %.lr.ph82.preheader ], [ %indvars.iv.next100, %._crit_edge79 ]
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv99) #6
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv99) #6
  %68 = call noundef i32 @_ZNK4gem514LinearEquation3cntEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %66, i32 noundef %68)
  %70 = load double, ptr %69, align 8, !tbaa !7
  %71 = fneg double %70
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv99) #6
  %73 = trunc nuw nsw i64 %indvars.iv99 to i32
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %72, i32 noundef %73)
  %75 = load double, ptr %74, align 8, !tbaa !7
  %76 = fdiv double %71, %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv99) #6
  store double %76, ptr %77, align 8, !tbaa !7
  %.not109 = icmp eq i64 %indvars.iv99, 0
  br i1 %.not109, label %._crit_edge83, label %.lr.ph78

._crit_edge79:                                    ; preds = %.lr.ph78
  %indvars.iv.next100 = add nsw i64 %indvars.iv99, -1
  br i1 %.not109, label %._crit_edge83, label %.lr.ph82, !llvm.loop !13

.lr.ph78:                                         ; preds = %.lr.ph82, %.lr.ph78
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %.lr.ph78 ], [ %indvars.iv99, %.lr.ph82 ]
  %indvars.iv.next102 = add nsw i64 %indvars.iv101, -1
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv99) #6
  %79 = load double, ptr %78, align 8, !tbaa !7
  %80 = and i64 %indvars.iv.next102, 4294967295
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %81, i32 noundef %73)
  %83 = load double, ptr %82, align 8, !tbaa !7
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %86 = call noundef i32 @_ZNK4gem514LinearEquation3cntEv(ptr noundef nonnull align 8 dereferenceable(24) %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %84, i32 noundef %86)
  %88 = load double, ptr %87, align 8, !tbaa !7
  %89 = call double @llvm.fmuladd.f64(double %79, double %83, double %88)
  store double %89, ptr %87, align 8, !tbaa !7
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4gem514LinearEquationixEj(ptr noundef nonnull align 8 dereferenceable(24) %90, i32 noundef %73)
  store double 0.000000e+00, ptr %91, align 8, !tbaa !7
  %92 = trunc nuw i64 %indvars.iv101 to i32
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %.lr.ph78, label %._crit_edge79, !llvm.loop !14

._crit_edge83:                                    ; preds = %.lr.ph82, %._crit_edge79, %61
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

94:                                               ; preds = %36, %60, %64
  %.pn60.pn.pn = phi { ptr, i32 } [ %65, %64 ], [ %.pn60, %60 ], [ %.pn, %36 ]
  call void @_ZNSt6vectorIN4gem514LinearEquationESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn60.pn.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4gem514LinearEquationC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4gem514LinearEquationplERKS0_(ptr dead_on_unwind noalias writable sret(%"class.gem5::LinearEquation") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass