; LLVM IR from arasgungore/EE242-projects :: GaussianEliminationWithPartialPivoting/main.ll (Z11printCondNoPPd)

; 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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11printCondNoPPd(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i16, align 2
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca double, align 8
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca i16, align 2
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i16, align 2
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i16, align 2
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %3) #7
  store i16 2, ptr %3, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef 16) #8
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #7
  store i16 0, ptr %5, align 2, !tbaa !9
  br label %25

25:                                               ; preds = %36, %1
  %26 = load i16, ptr %5, align 2, !tbaa !9
  %27 = sext i16 %26 to i32
  %28 = icmp slt i32 %27, 2
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #7
  br label %39

30:                                               ; preds = %25
  %31 = call noalias noundef nonnull ptr @_Znam(i64 noundef 16) #8
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i16, ptr %5, align 2, !tbaa !9
  %34 = sext i16 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %32, i64 %34
  store ptr %31, ptr %35, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %30
  %37 = load i16, ptr %5, align 2, !tbaa !9
  %38 = add i16 %37, 1
  store i16 %38, ptr %5, align 2, !tbaa !9
  br label %25, !llvm.loop !11

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 0
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds ptr, ptr %45, i64 1
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 1
  %49 = load double, ptr %48, align 8, !tbaa !13
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %50, i64 0
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 1
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds ptr, ptr %55, i64 1
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 0
  %59 = load double, ptr %58, align 8, !tbaa !13
  %60 = fmul double %54, %59
  %61 = fneg double %60
  %62 = call double @llvm.fmuladd.f64(double %44, double %49, double %61)
  store double %62, ptr %6, align 8, !tbaa !13
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i64 1
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 1
  %67 = load double, ptr %66, align 8, !tbaa !13
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds ptr, ptr %68, i64 0
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 0
  store double %67, ptr %71, align 8, !tbaa !13
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i64 0
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 1
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = fneg double %76
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds ptr, ptr %78, i64 0
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 1
  store double %77, ptr %81, align 8, !tbaa !13
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds ptr, ptr %82, i64 1
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 0
  %86 = load double, ptr %85, align 8, !tbaa !13
  %87 = fneg double %86
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds ptr, ptr %88, i64 1
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 0
  store double %87, ptr %91, align 8, !tbaa !13
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds ptr, ptr %92, i64 0
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 0
  %96 = load double, ptr %95, align 8, !tbaa !13
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds ptr, ptr %97, i64 1
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds double, ptr %99, i64 1
  store double %96, ptr %100, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #7
  store i16 0, ptr %7, align 2, !tbaa !9
  br label %101

101:                                              ; preds = %128, %39
  %102 = load i16, ptr %7, align 2, !tbaa !9
  %103 = sext i16 %102 to i32
  %104 = icmp slt i32 %103, 2
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #7
  br label %131

106:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #7
  store i16 0, ptr %9, align 2, !tbaa !9
  br label %107

107:                                              ; preds = %124, %106
  %108 = load i16, ptr %9, align 2, !tbaa !9
  %109 = sext i16 %108 to i32
  %110 = icmp slt i32 %109, 2
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  br label %127

112:                                              ; preds = %107
  %113 = load double, ptr %6, align 8, !tbaa !13
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load i16, ptr %7, align 2, !tbaa !9
  %116 = sext i16 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i16, ptr %9, align 2, !tbaa !9
  %120 = sext i16 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !13
  %123 = fdiv double %122, %113
  store double %123, ptr %121, align 8, !tbaa !13
  br label %124

124:                                              ; preds = %112
  %125 = load i16, ptr %9, align 2, !tbaa !9
  %126 = add i16 %125, 1
  store i16 %126, ptr %9, align 2, !tbaa !9
  br label %107, !llvm.loop !15

127:                                              ; preds = %111
  br label %128

128:                                              ; preds = %127
  %129 = load i16, ptr %7, align 2, !tbaa !9
  %130 = add i16 %129, 1
  store i16 %130, ptr %7, align 2, !tbaa !9
  br label %101, !llvm.loop !16

131:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store double 0.000000e+00, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store double 0.000000e+00, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #7
  store i16 0, ptr %14, align 2, !tbaa !9
  br label %132

132:                                              ; preds = %176, %131
  %133 = load i16, ptr %14, align 2, !tbaa !9
  %134 = sext i16 %133 to i32
  %135 = icmp slt i32 %134, 2
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #7
  br label %179

137:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store double 0.000000e+00, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store double 0.000000e+00, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #7
  store i16 0, ptr %17, align 2, !tbaa !9
  br label %138

138:                                              ; preds = %168, %137
  %139 = load i16, ptr %17, align 2, !tbaa !9
  %140 = sext i16 %139 to i32
  %141 = icmp slt i32 %140, 2
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  br label %171

143:                                              ; preds = %138
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = load i16, ptr %17, align 2, !tbaa !9
  %146 = sext i16 %145 to i64
  %147 = getelementptr inbounds ptr, ptr %144, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load i16, ptr %14, align 2, !tbaa !9
  %150 = sext i16 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = call double @llvm.fabs.f64(double %152)
  %154 = load double, ptr %15, align 8, !tbaa !13
  %155 = fadd double %154, %153
  store double %155, ptr %15, align 8, !tbaa !13
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load i16, ptr %17, align 2, !tbaa !9
  %158 = sext i16 %157 to i64
  %159 = getelementptr inbounds ptr, ptr %156, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = load i16, ptr %14, align 2, !tbaa !9
  %162 = sext i16 %161 to i64
  %163 = getelementptr inbounds double, ptr %160, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !13
  %165 = call double @llvm.fabs.f64(double %164)
  %166 = load double, ptr %16, align 8, !tbaa !13
  %167 = fadd double %166, %165
  store double %167, ptr %16, align 8, !tbaa !13
  br label %168

168:                                              ; preds = %143
  %169 = load i16, ptr %17, align 2, !tbaa !9
  %170 = add i16 %169, 1
  store i16 %170, ptr %17, align 2, !tbaa !9
  br label %138, !llvm.loop !17

171:                                              ; preds = %142
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %173 = load double, ptr %172, align 8, !tbaa !13
  store double %173, ptr %10, align 8, !tbaa !13
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %175 = load double, ptr %174, align 8, !tbaa !13
  store double %175, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %176

176:                                              ; preds = %171
  %177 = load i16, ptr %14, align 2, !tbaa !9
  %178 = add i16 %177, 1
  store i16 %178, ptr %14, align 2, !tbaa !9
  br label %132, !llvm.loop !18

179:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #7
  store i16 0, ptr %18, align 2, !tbaa !9
  br label %180

180:                                              ; preds = %224, %179
  %181 = load i16, ptr %18, align 2, !tbaa !9
  %182 = sext i16 %181 to i32
  %183 = icmp slt i32 %182, 2
  br i1 %183, label %185, label %184

184:                                              ; preds = %180
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #7
  br label %227

185:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  store i16 0, ptr %21, align 2, !tbaa !9
  br label %186

186:                                              ; preds = %216, %185
  %187 = load i16, ptr %21, align 2, !tbaa !9
  %188 = sext i16 %187 to i32
  %189 = icmp slt i32 %188, 2
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  br label %219

191:                                              ; preds = %186
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = load i16, ptr %18, align 2, !tbaa !9
  %194 = sext i16 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %192, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load i16, ptr %21, align 2, !tbaa !9
  %198 = sext i16 %197 to i64
  %199 = getelementptr inbounds double, ptr %196, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !13
  %201 = call double @llvm.fabs.f64(double %200)
  %202 = load double, ptr %19, align 8, !tbaa !13
  %203 = fadd double %202, %201
  store double %203, ptr %19, align 8, !tbaa !13
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = load i16, ptr %18, align 2, !tbaa !9
  %206 = sext i16 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load i16, ptr %21, align 2, !tbaa !9
  %210 = sext i16 %209 to i64
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !13
  %213 = call double @llvm.fabs.f64(double %212)
  %214 = load double, ptr %20, align 8, !tbaa !13
  %215 = fadd double %214, %213
  store double %215, ptr %20, align 8, !tbaa !13
  br label %216

216:                                              ; preds = %191
  %217 = load i16, ptr %21, align 2, !tbaa !9
  %218 = add i16 %217, 1
  store i16 %218, ptr %21, align 2, !tbaa !9
  br label %186, !llvm.loop !19

219:                                              ; preds = %190
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %221 = load double, ptr %220, align 8, !tbaa !13
  store double %221, ptr %12, align 8, !tbaa !13
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %223 = load double, ptr %222, align 8, !tbaa !13
  store double %223, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %224

224:                                              ; preds = %219
  %225 = load i16, ptr %18, align 2, !tbaa !9
  %226 = add i16 %225, 1
  store i16 %226, ptr %18, align 2, !tbaa !9
  br label %180, !llvm.loop !20

227:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %228 = load double, ptr %10, align 8, !tbaa !13
  %229 = load double, ptr %11, align 8, !tbaa !13
  %230 = fmul double %228, %229
  store double %230, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %231 = load double, ptr %12, align 8, !tbaa !13
  %232 = load double, ptr %13, align 8, !tbaa !13
  %233 = fmul double %231, %232
  store double %233, ptr %23, align 8, !tbaa !13
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %235 = load double, ptr %22, align 8, !tbaa !13
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %234, double noundef %235)
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %239 = load double, ptr %23, align 8, !tbaa !13
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %238, double noundef %239)
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_Z12deleteMatrixPPds(ptr noundef %242, i16 noundef signext 2)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %3) #7
  ret void
}

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) #4

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

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

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

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

!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 = !{!"short", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; 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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11printCondNoPPd(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
.preheader52:
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znam(i64 noundef 16) #7
  %10 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znam(i64 noundef 16) #7
  store ptr %10, ptr %9, align 8, !tbaa !5
  %11 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znam(i64 noundef 16) #7
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %11, ptr %12, align 8, !tbaa !5
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = load double, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %13, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = load double, ptr %16, align 8, !tbaa !9
  %22 = fneg double %20
  %23 = fmul double %21, %22
  %24 = tail call double @llvm.fmuladd.f64(double %14, double %18, double %23)
  store double %18, ptr %10, align 8, !tbaa !9
  %25 = load double, ptr %19, align 8, !tbaa !9
  %26 = fneg double %25
  %27 = getelementptr inbounds i8, ptr %10, i64 8
  store double %26, ptr %27, align 8, !tbaa !9
  %28 = load double, ptr %16, align 8, !tbaa !9
  %29 = fneg double %28
  store double %29, ptr %11, align 8, !tbaa !9
  %30 = load double, ptr %13, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  %32 = insertelement <2 x double> poison, double %18, i64 0
  %33 = insertelement <2 x double> %32, double %26, i64 1
  %34 = insertelement <2 x double> poison, double %24, i64 0
  %35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
  %36 = fdiv <2 x double> %33, %35
  store <2 x double> %36, ptr %10, align 8, !tbaa !9
  %37 = insertelement <2 x double> poison, double %29, i64 0
  %38 = insertelement <2 x double> %37, double %30, i64 1
  %39 = fdiv <2 x double> %38, %35
  store <2 x double> %39, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store double 0.000000e+00, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store double 0.000000e+00, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %40 = load double, ptr %13, align 8, !tbaa !9
  %41 = tail call double @llvm.fabs.f64(double %40)
  %42 = extractelement <2 x double> %36, i64 0
  %43 = tail call double @llvm.fabs.f64(double %42)
  %44 = load double, ptr %16, align 8, !tbaa !9
  %45 = tail call double @llvm.fabs.f64(double %44)
  %46 = fadd double %41, %45
  store double %46, ptr %5, align 8, !tbaa !9
  %47 = extractelement <2 x double> %39, i64 0
  %48 = tail call double @llvm.fabs.f64(double %47)
  %49 = fadd double %43, %48
  store double %49, ptr %6, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %51 = load double, ptr %50, align 8, !tbaa !9
  store double %51, ptr %1, align 8, !tbaa !9
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %53 = load double, ptr %52, align 8, !tbaa !9
  store double %53, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %54 = load ptr, ptr %0, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = call double @llvm.fabs.f64(double %56)
  %58 = load double, ptr %27, align 8, !tbaa !9
  %59 = call double @llvm.fabs.f64(double %58)
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = call double @llvm.fabs.f64(double %62)
  %64 = fadd double %57, %63
  store double %64, ptr %5, align 8, !tbaa !9
  %65 = load double, ptr %31, align 8, !tbaa !9
  %66 = call double @llvm.fabs.f64(double %65)
  %67 = fadd double %59, %66
  store double %67, ptr %6, align 8, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %69 = load double, ptr %68, align 8, !tbaa !9
  store double %69, ptr %1, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %71 = load double, ptr %70, align 8, !tbaa !9
  store double %71, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %72 = load ptr, ptr %0, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load double, ptr %72, align 8, !tbaa !9
  %75 = call double @llvm.fabs.f64(double %74)
  %76 = load double, ptr %73, align 8, !tbaa !9
  %77 = call double @llvm.fabs.f64(double %76)
  %78 = getelementptr inbounds i8, ptr %72, i64 8
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = call double @llvm.fabs.f64(double %79)
  %81 = fadd double %75, %80
  store double %81, ptr %7, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %73, i64 8
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = call double @llvm.fabs.f64(double %83)
  %85 = fadd double %77, %84
  store double %85, ptr %8, align 8, !tbaa !9
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %87 = load double, ptr %86, align 8, !tbaa !9
  store double %87, ptr %3, align 8, !tbaa !9
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %89 = load double, ptr %88, align 8, !tbaa !9
  store double %89, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load double, ptr %90, align 8, !tbaa !9
  %93 = call double @llvm.fabs.f64(double %92)
  store double %93, ptr %7, align 8, !tbaa !9
  %94 = load double, ptr %91, align 8, !tbaa !9
  %95 = call double @llvm.fabs.f64(double %94)
  %96 = getelementptr inbounds i8, ptr %90, i64 8
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = call double @llvm.fabs.f64(double %97)
  %99 = fadd double %93, %98
  store double %99, ptr %7, align 8, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %91, i64 8
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = call double @llvm.fabs.f64(double %101)
  %103 = fadd double %95, %102
  store double %103, ptr %8, align 8, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %105 = load double, ptr %104, align 8, !tbaa !9
  store double %105, ptr %3, align 8, !tbaa !9
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %107 = load double, ptr %106, align 8, !tbaa !9
  store double %107, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %108 = load double, ptr %1, align 8, !tbaa !9
  %109 = load double, ptr %2, align 8, !tbaa !9
  %110 = fmul double %108, %109
  %111 = load double, ptr %3, align 8, !tbaa !9
  %112 = fmul double %111, %107
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %113, double noundef %110)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %116, double noundef %112)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_Z12deleteMatrixPPds(ptr noundef nonnull %9, i16 noundef signext 2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void
}

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12deleteMatrixPPds(ptr noundef, i16 noundef signext) local_unnamed_addr #4

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass