; LLVM IR from sourceryinstitute/MORFEUS-Source :: src/FV/src/mesh_optimize/OptMS (SMmatrix)

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

; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMcondition3x3(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 1, ptr %20, align 4, !tbaa !9
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 0
  %25 = load double, ptr %24, align 8, !tbaa !11
  store double %25, ptr %6, align 8, !tbaa !11
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 1
  %30 = load double, ptr %29, align 8, !tbaa !11
  store double %30, ptr %7, align 8, !tbaa !11
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 0
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i64 2
  %35 = load double, ptr %34, align 8, !tbaa !11
  store double %35, ptr %8, align 8, !tbaa !11
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 1
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 0
  %40 = load double, ptr %39, align 8, !tbaa !11
  store double %40, ptr %9, align 8, !tbaa !11
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds ptr, ptr %41, i64 1
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 1
  %45 = load double, ptr %44, align 8, !tbaa !11
  store double %45, ptr %10, align 8, !tbaa !11
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 1
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 2
  %50 = load double, ptr %49, align 8, !tbaa !11
  store double %50, ptr %11, align 8, !tbaa !11
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 2
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 0
  %55 = load double, ptr %54, align 8, !tbaa !11
  store double %55, ptr %12, align 8, !tbaa !11
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds ptr, ptr %56, i64 2
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 1
  %60 = load double, ptr %59, align 8, !tbaa !11
  store double %60, ptr %13, align 8, !tbaa !11
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 2
  %65 = load double, ptr %64, align 8, !tbaa !11
  store double %65, ptr %14, align 8, !tbaa !11
  %66 = load double, ptr %6, align 8, !tbaa !11
  %67 = fneg double %66
  %68 = load double, ptr %10, align 8, !tbaa !11
  %69 = fmul double %67, %68
  %70 = load double, ptr %14, align 8, !tbaa !11
  %71 = load double, ptr %6, align 8, !tbaa !11
  %72 = load double, ptr %11, align 8, !tbaa !11
  %73 = fmul double %71, %72
  %74 = load double, ptr %13, align 8, !tbaa !11
  %75 = fmul double %73, %74
  %76 = call double @llvm.fmuladd.f64(double %69, double %70, double %75)
  %77 = load double, ptr %9, align 8, !tbaa !11
  %78 = load double, ptr %7, align 8, !tbaa !11
  %79 = fmul double %77, %78
  %80 = load double, ptr %14, align 8, !tbaa !11
  %81 = call double @llvm.fmuladd.f64(double %79, double %80, double %76)
  %82 = load double, ptr %9, align 8, !tbaa !11
  %83 = load double, ptr %8, align 8, !tbaa !11
  %84 = fmul double %82, %83
  %85 = load double, ptr %13, align 8, !tbaa !11
  %86 = fneg double %84
  %87 = call double @llvm.fmuladd.f64(double %86, double %85, double %81)
  %88 = load double, ptr %12, align 8, !tbaa !11
  %89 = load double, ptr %7, align 8, !tbaa !11
  %90 = fmul double %88, %89
  %91 = load double, ptr %11, align 8, !tbaa !11
  %92 = fneg double %90
  %93 = call double @llvm.fmuladd.f64(double %92, double %91, double %87)
  %94 = load double, ptr %12, align 8, !tbaa !11
  %95 = load double, ptr %8, align 8, !tbaa !11
  %96 = fmul double %94, %95
  %97 = load double, ptr %10, align 8, !tbaa !11
  %98 = call double @llvm.fmuladd.f64(double %96, double %97, double %93)
  store double %98, ptr %18, align 8, !tbaa !11
  %99 = load double, ptr %6, align 8, !tbaa !11
  %100 = call double @llvm.fabs.f64(double %99)
  %101 = fcmp ogt double %100, 1.000000e-15
  br i1 %101, label %102, label %109

102:                                              ; preds = %2
  %103 = load double, ptr %18, align 8, !tbaa !11
  %104 = load double, ptr %6, align 8, !tbaa !11
  %105 = fdiv double %103, %104
  %106 = call double @llvm.fabs.f64(double %105)
  %107 = fcmp ogt double %106, 1.000000e-15
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %108, %102, %2
  %110 = load double, ptr %10, align 8, !tbaa !11
  %111 = call double @llvm.fabs.f64(double %110)
  %112 = fcmp ogt double %111, 1.000000e-15
  br i1 %112, label %113, label %120

113:                                              ; preds = %109
  %114 = load double, ptr %18, align 8, !tbaa !11
  %115 = load double, ptr %10, align 8, !tbaa !11
  %116 = fdiv double %114, %115
  %117 = call double @llvm.fabs.f64(double %116)
  %118 = fcmp ogt double %117, 1.000000e-15
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %119, %113, %109
  %121 = load double, ptr %14, align 8, !tbaa !11
  %122 = call double @llvm.fabs.f64(double %121)
  %123 = fcmp ogt double %122, 1.000000e-15
  br i1 %123, label %124, label %131

124:                                              ; preds = %120
  %125 = load double, ptr %18, align 8, !tbaa !11
  %126 = load double, ptr %14, align 8, !tbaa !11
  %127 = fdiv double %125, %126
  %128 = call double @llvm.fabs.f64(double %127)
  %129 = fcmp ogt double %128, 1.000000e-15
  br i1 %129, label %130, label %131

130:                                              ; preds = %124
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %130, %124, %120
  %132 = load i32, ptr %20, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %131
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  store double 1.000000e+300, ptr %135, align 8, !tbaa !11
  br label %287

136:                                              ; preds = %131
  %137 = load double, ptr %6, align 8, !tbaa !11
  %138 = load double, ptr %6, align 8, !tbaa !11
  %139 = load double, ptr %7, align 8, !tbaa !11
  %140 = load double, ptr %7, align 8, !tbaa !11
  %141 = fmul double %139, %140
  %142 = call double @llvm.fmuladd.f64(double %137, double %138, double %141)
  %143 = load double, ptr %8, align 8, !tbaa !11
  %144 = load double, ptr %8, align 8, !tbaa !11
  %145 = call double @llvm.fmuladd.f64(double %143, double %144, double %142)
  %146 = load double, ptr %9, align 8, !tbaa !11
  %147 = load double, ptr %9, align 8, !tbaa !11
  %148 = call double @llvm.fmuladd.f64(double %146, double %147, double %145)
  %149 = load double, ptr %10, align 8, !tbaa !11
  %150 = load double, ptr %10, align 8, !tbaa !11
  %151 = call double @llvm.fmuladd.f64(double %149, double %150, double %148)
  %152 = load double, ptr %11, align 8, !tbaa !11
  %153 = load double, ptr %11, align 8, !tbaa !11
  %154 = call double @llvm.fmuladd.f64(double %152, double %153, double %151)
  %155 = load double, ptr %12, align 8, !tbaa !11
  %156 = load double, ptr %12, align 8, !tbaa !11
  %157 = call double @llvm.fmuladd.f64(double %155, double %156, double %154)
  %158 = load double, ptr %13, align 8, !tbaa !11
  %159 = load double, ptr %13, align 8, !tbaa !11
  %160 = call double @llvm.fmuladd.f64(double %158, double %159, double %157)
  %161 = load double, ptr %14, align 8, !tbaa !11
  %162 = load double, ptr %14, align 8, !tbaa !11
  %163 = call double @llvm.fmuladd.f64(double %161, double %162, double %160)
  %164 = call double @sqrt(double noundef %163) #4
  store double %164, ptr %15, align 8, !tbaa !11
  %165 = load double, ptr %10, align 8, !tbaa !11
  %166 = fneg double %165
  %167 = load double, ptr %14, align 8, !tbaa !11
  %168 = load double, ptr %11, align 8, !tbaa !11
  %169 = load double, ptr %13, align 8, !tbaa !11
  %170 = fmul double %168, %169
  %171 = call double @llvm.fmuladd.f64(double %166, double %167, double %170)
  %172 = load double, ptr %18, align 8, !tbaa !11
  %173 = fdiv double %171, %172
  store double %173, ptr %19, align 8, !tbaa !11
  %174 = load double, ptr %19, align 8, !tbaa !11
  %175 = load double, ptr %19, align 8, !tbaa !11
  %176 = fmul double %174, %175
  store double %176, ptr %17, align 8, !tbaa !11
  %177 = load double, ptr %7, align 8, !tbaa !11
  %178 = load double, ptr %14, align 8, !tbaa !11
  %179 = load double, ptr %8, align 8, !tbaa !11
  %180 = load double, ptr %13, align 8, !tbaa !11
  %181 = fmul double %179, %180
  %182 = fneg double %181
  %183 = call double @llvm.fmuladd.f64(double %177, double %178, double %182)
  %184 = load double, ptr %18, align 8, !tbaa !11
  %185 = fdiv double %183, %184
  store double %185, ptr %19, align 8, !tbaa !11
  %186 = load double, ptr %19, align 8, !tbaa !11
  %187 = load double, ptr %19, align 8, !tbaa !11
  %188 = load double, ptr %17, align 8, !tbaa !11
  %189 = call double @llvm.fmuladd.f64(double %186, double %187, double %188)
  store double %189, ptr %17, align 8, !tbaa !11
  %190 = load double, ptr %7, align 8, !tbaa !11
  %191 = load double, ptr %11, align 8, !tbaa !11
  %192 = load double, ptr %8, align 8, !tbaa !11
  %193 = load double, ptr %10, align 8, !tbaa !11
  %194 = fmul double %192, %193
  %195 = fneg double %194
  %196 = call double @llvm.fmuladd.f64(double %190, double %191, double %195)
  %197 = load double, ptr %18, align 8, !tbaa !11
  %198 = fdiv double %196, %197
  store double %198, ptr %19, align 8, !tbaa !11
  %199 = load double, ptr %19, align 8, !tbaa !11
  %200 = load double, ptr %19, align 8, !tbaa !11
  %201 = load double, ptr %17, align 8, !tbaa !11
  %202 = call double @llvm.fmuladd.f64(double %199, double %200, double %201)
  store double %202, ptr %17, align 8, !tbaa !11
  %203 = load double, ptr %9, align 8, !tbaa !11
  %204 = load double, ptr %14, align 8, !tbaa !11
  %205 = load double, ptr %11, align 8, !tbaa !11
  %206 = load double, ptr %12, align 8, !tbaa !11
  %207 = fmul double %205, %206
  %208 = fneg double %207
  %209 = call double @llvm.fmuladd.f64(double %203, double %204, double %208)
  %210 = load double, ptr %18, align 8, !tbaa !11
  %211 = fdiv double %209, %210
  store double %211, ptr %19, align 8, !tbaa !11
  %212 = load double, ptr %19, align 8, !tbaa !11
  %213 = load double, ptr %19, align 8, !tbaa !11
  %214 = load double, ptr %17, align 8, !tbaa !11
  %215 = call double @llvm.fmuladd.f64(double %212, double %213, double %214)
  store double %215, ptr %17, align 8, !tbaa !11
  %216 = load double, ptr %6, align 8, !tbaa !11
  %217 = load double, ptr %14, align 8, !tbaa !11
  %218 = load double, ptr %8, align 8, !tbaa !11
  %219 = load double, ptr %12, align 8, !tbaa !11
  %220 = fmul double %218, %219
  %221 = fneg double %220
  %222 = call double @llvm.fmuladd.f64(double %216, double %217, double %221)
  %223 = load double, ptr %18, align 8, !tbaa !11
  %224 = fdiv double %222, %223
  store double %224, ptr %19, align 8, !tbaa !11
  %225 = load double, ptr %19, align 8, !tbaa !11
  %226 = load double, ptr %19, align 8, !tbaa !11
  %227 = load double, ptr %17, align 8, !tbaa !11
  %228 = call double @llvm.fmuladd.f64(double %225, double %226, double %227)
  store double %228, ptr %17, align 8, !tbaa !11
  %229 = load double, ptr %6, align 8, !tbaa !11
  %230 = load double, ptr %11, align 8, !tbaa !11
  %231 = load double, ptr %8, align 8, !tbaa !11
  %232 = load double, ptr %9, align 8, !tbaa !11
  %233 = fmul double %231, %232
  %234 = fneg double %233
  %235 = call double @llvm.fmuladd.f64(double %229, double %230, double %234)
  %236 = load double, ptr %18, align 8, !tbaa !11
  %237 = fdiv double %235, %236
  store double %237, ptr %19, align 8, !tbaa !11
  %238 = load double, ptr %19, align 8, !tbaa !11
  %239 = load double, ptr %19, align 8, !tbaa !11
  %240 = load double, ptr %17, align 8, !tbaa !11
  %241 = call double @llvm.fmuladd.f64(double %238, double %239, double %240)
  store double %241, ptr %17, align 8, !tbaa !11
  %242 = load double, ptr %9, align 8, !tbaa !11
  %243 = load double, ptr %13, align 8, !tbaa !11
  %244 = load double, ptr %10, align 8, !tbaa !11
  %245 = load double, ptr %12, align 8, !tbaa !11
  %246 = fmul double %244, %245
  %247 = fneg double %246
  %248 = call double @llvm.fmuladd.f64(double %242, double %243, double %247)
  %249 = load double, ptr %18, align 8, !tbaa !11
  %250 = fdiv double %248, %249
  store double %250, ptr %19, align 8, !tbaa !11
  %251 = load double, ptr %19, align 8, !tbaa !11
  %252 = load double, ptr %19, align 8, !tbaa !11
  %253 = load double, ptr %17, align 8, !tbaa !11
  %254 = call double @llvm.fmuladd.f64(double %251, double %252, double %253)
  store double %254, ptr %17, align 8, !tbaa !11
  %255 = load double, ptr %6, align 8, !tbaa !11
  %256 = fneg double %255
  %257 = load double, ptr %13, align 8, !tbaa !11
  %258 = load double, ptr %7, align 8, !tbaa !11
  %259 = load double, ptr %12, align 8, !tbaa !11
  %260 = fmul double %258, %259
  %261 = call double @llvm.fmuladd.f64(double %256, double %257, double %260)
  %262 = load double, ptr %18, align 8, !tbaa !11
  %263 = fdiv double %261, %262
  store double %263, ptr %19, align 8, !tbaa !11
  %264 = load double, ptr %19, align 8, !tbaa !11
  %265 = load double, ptr %19, align 8, !tbaa !11
  %266 = load double, ptr %17, align 8, !tbaa !11
  %267 = call double @llvm.fmuladd.f64(double %264, double %265, double %266)
  store double %267, ptr %17, align 8, !tbaa !11
  %268 = load double, ptr %6, align 8, !tbaa !11
  %269 = fneg double %268
  %270 = load double, ptr %10, align 8, !tbaa !11
  %271 = load double, ptr %7, align 8, !tbaa !11
  %272 = load double, ptr %9, align 8, !tbaa !11
  %273 = fmul double %271, %272
  %274 = call double @llvm.fmuladd.f64(double %269, double %270, double %273)
  %275 = load double, ptr %18, align 8, !tbaa !11
  %276 = fdiv double %274, %275
  store double %276, ptr %19, align 8, !tbaa !11
  %277 = load double, ptr %19, align 8, !tbaa !11
  %278 = load double, ptr %19, align 8, !tbaa !11
  %279 = load double, ptr %17, align 8, !tbaa !11
  %280 = call double @llvm.fmuladd.f64(double %277, double %278, double %279)
  store double %280, ptr %17, align 8, !tbaa !11
  %281 = load double, ptr %17, align 8, !tbaa !11
  %282 = call double @sqrt(double noundef %281) #4
  store double %282, ptr %16, align 8, !tbaa !11
  %283 = load double, ptr %15, align 8, !tbaa !11
  %284 = load double, ptr %16, align 8, !tbaa !11
  %285 = fmul double %283, %284
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  store double %285, ptr %286, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %136, %134
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 0
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef i32 @SMcondition3x3(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = load double, ptr %3, align 8, !tbaa !9
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = load double, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %3, i64 16
  %8 = load double, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load double, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %10, i64 8
  %13 = load double, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %10, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %17, i64 16
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = fneg double %4
  %24 = fmul double %13, %23
  %25 = fmul double %4, %15
  %26 = fmul double %25, %20
  %27 = tail call double @llvm.fmuladd.f64(double %24, double %22, double %26)
  %28 = fmul double %6, %11
  %29 = tail call double @llvm.fmuladd.f64(double %28, double %22, double %27)
  %30 = fneg double %11
  %31 = fmul double %8, %30
  %32 = tail call double @llvm.fmuladd.f64(double %31, double %20, double %29)
  %33 = fmul double %6, %18
  %34 = fneg double %33
  %35 = tail call double @llvm.fmuladd.f64(double %34, double %15, double %32)
  %36 = fmul double %8, %18
  %37 = tail call double @llvm.fmuladd.f64(double %36, double %13, double %35)
  %38 = tail call double @llvm.fabs.f64(double %4)
  %39 = fcmp ogt double %38, 1.000000e-15
  br i1 %39, label %40, label %45

40:                                               ; preds = %2
  %41 = fdiv double %37, %4
  %42 = tail call double @llvm.fabs.f64(double %41)
  %43 = fcmp ogt double %42, 1.000000e-15
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  br label %45

45:                                               ; preds = %44, %40, %2
  %.not.old = phi i1 [ true, %44 ], [ false, %40 ], [ false, %2 ]
  %46 = tail call double @llvm.fabs.f64(double %13)
  %47 = fcmp ogt double %46, 1.000000e-15
  br i1 %47, label %48, label %52

48:                                               ; preds = %45
  %49 = fdiv double %37, %13
  %50 = tail call double @llvm.fabs.f64(double %49)
  %51 = fcmp ogt double %50, 1.000000e-15
  br i1 %51, label %.thread, label %52

52:                                               ; preds = %48, %45
  %53 = tail call double @llvm.fabs.f64(double %22)
  %54 = fcmp ogt double %53, 1.000000e-15
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = fdiv double %37, %22
  %57 = tail call double @llvm.fabs.f64(double %56)
  %58 = fcmp ogt double %57, 1.000000e-15
  %or.cond = or i1 %58, %.not.old
  br i1 %or.cond, label %.thread, label %108

59:                                               ; preds = %52
  br i1 %.not.old, label %.thread, label %108

.thread:                                          ; preds = %48, %55, %59
  %60 = fmul double %6, %6
  %61 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %60)
  %62 = tail call double @llvm.fmuladd.f64(double %8, double %8, double %61)
  %63 = tail call double @llvm.fmuladd.f64(double %11, double %11, double %62)
  %64 = tail call double @llvm.fmuladd.f64(double %13, double %13, double %63)
  %65 = tail call double @llvm.fmuladd.f64(double %15, double %15, double %64)
  %66 = tail call double @llvm.fmuladd.f64(double %18, double %18, double %65)
  %67 = tail call double @llvm.fmuladd.f64(double %20, double %20, double %66)
  %68 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %67)
  %69 = tail call double @sqrt(double noundef %68) #3
  %70 = fneg double %13
  %71 = fmul double %15, %20
  %72 = tail call double @llvm.fmuladd.f64(double %70, double %22, double %71)
  %73 = fdiv double %72, %37
  %74 = fmul double %73, %73
  %75 = fneg double %8
  %76 = fmul double %20, %75
  %77 = tail call double @llvm.fmuladd.f64(double %6, double %22, double %76)
  %78 = fdiv double %77, %37
  %79 = tail call double @llvm.fmuladd.f64(double %78, double %78, double %74)
  %80 = fmul double %13, %75
  %81 = tail call double @llvm.fmuladd.f64(double %6, double %15, double %80)
  %82 = fdiv double %81, %37
  %83 = tail call double @llvm.fmuladd.f64(double %82, double %82, double %79)
  %84 = fneg double %15
  %85 = fmul double %18, %84
  %86 = tail call double @llvm.fmuladd.f64(double %11, double %22, double %85)
  %87 = fdiv double %86, %37
  %88 = tail call double @llvm.fmuladd.f64(double %87, double %87, double %83)
  %89 = fneg double %36
  %90 = tail call double @llvm.fmuladd.f64(double %4, double %22, double %89)
  %91 = fdiv double %90, %37
  %92 = tail call double @llvm.fmuladd.f64(double %91, double %91, double %88)
  %93 = tail call double @llvm.fmuladd.f64(double %4, double %15, double %31)
  %94 = fdiv double %93, %37
  %95 = tail call double @llvm.fmuladd.f64(double %94, double %94, double %92)
  %96 = fmul double %18, %70
  %97 = tail call double @llvm.fmuladd.f64(double %11, double %20, double %96)
  %98 = fdiv double %97, %37
  %99 = tail call double @llvm.fmuladd.f64(double %98, double %98, double %95)
  %100 = tail call double @llvm.fmuladd.f64(double %23, double %20, double %33)
  %101 = fdiv double %100, %37
  %102 = tail call double @llvm.fmuladd.f64(double %101, double %101, double %99)
  %103 = tail call double @llvm.fmuladd.f64(double %23, double %13, double %28)
  %104 = fdiv double %103, %37
  %105 = tail call double @llvm.fmuladd.f64(double %104, double %104, double %102)
  %106 = tail call double @sqrt(double noundef %105) #3
  %107 = fmul double %69, %106
  br label %108

108:                                              ; preds = %55, %59, %.thread
  %storemerge = phi double [ %107, %.thread ], [ 1.000000e+300, %59 ], [ 1.000000e+300, %55 ]
  store double %storemerge, ptr %1, align 8, !tbaa !9
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(readwrite, inaccessiblemem: write) 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass