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

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

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

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

declare i32 @SMerror(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @vScaledJacobian(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #4 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %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 double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 0
  %43 = load double, ptr %42, align 8, !tbaa !9
  store double %43, ptr %15, align 8, !tbaa !9
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 1
  %46 = load double, ptr %45, align 8, !tbaa !9
  store double %46, ptr %19, align 8, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 2
  %49 = load double, ptr %48, align 8, !tbaa !9
  store double %49, ptr %23, align 8, !tbaa !9
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 0
  %52 = load double, ptr %51, align 8, !tbaa !9
  store double %52, ptr %16, align 8, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 1
  %55 = load double, ptr %54, align 8, !tbaa !9
  store double %55, ptr %20, align 8, !tbaa !9
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 2
  %58 = load double, ptr %57, align 8, !tbaa !9
  store double %58, ptr %24, align 8, !tbaa !9
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 0
  %61 = load double, ptr %60, align 8, !tbaa !9
  store double %61, ptr %17, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 1
  %64 = load double, ptr %63, align 8, !tbaa !9
  store double %64, ptr %21, align 8, !tbaa !9
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 2
  %67 = load double, ptr %66, align 8, !tbaa !9
  store double %67, ptr %25, align 8, !tbaa !9
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 0
  %70 = load double, ptr %69, align 8, !tbaa !9
  store double %70, ptr %18, align 8, !tbaa !9
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 1
  %73 = load double, ptr %72, align 8, !tbaa !9
  store double %73, ptr %22, align 8, !tbaa !9
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 2
  %76 = load double, ptr %75, align 8, !tbaa !9
  store double %76, ptr %26, align 8, !tbaa !9
  %77 = load double, ptr %16, align 8, !tbaa !9
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = fsub double %77, %78
  %80 = load double, ptr %16, align 8, !tbaa !9
  %81 = load double, ptr %15, align 8, !tbaa !9
  %82 = fsub double %80, %81
  %83 = load double, ptr %20, align 8, !tbaa !9
  %84 = load double, ptr %19, align 8, !tbaa !9
  %85 = fsub double %83, %84
  %86 = load double, ptr %20, align 8, !tbaa !9
  %87 = load double, ptr %19, align 8, !tbaa !9
  %88 = fsub double %86, %87
  %89 = fmul double %85, %88
  %90 = call double @llvm.fmuladd.f64(double %79, double %82, double %89)
  %91 = load double, ptr %24, align 8, !tbaa !9
  %92 = load double, ptr %23, align 8, !tbaa !9
  %93 = fsub double %91, %92
  %94 = load double, ptr %24, align 8, !tbaa !9
  %95 = load double, ptr %23, align 8, !tbaa !9
  %96 = fsub double %94, %95
  %97 = call double @llvm.fmuladd.f64(double %93, double %96, double %90)
  store double %97, ptr %33, align 8, !tbaa !9
  %98 = load double, ptr %17, align 8, !tbaa !9
  %99 = load double, ptr %15, align 8, !tbaa !9
  %100 = fsub double %98, %99
  %101 = load double, ptr %17, align 8, !tbaa !9
  %102 = load double, ptr %15, align 8, !tbaa !9
  %103 = fsub double %101, %102
  %104 = load double, ptr %21, align 8, !tbaa !9
  %105 = load double, ptr %19, align 8, !tbaa !9
  %106 = fsub double %104, %105
  %107 = load double, ptr %21, align 8, !tbaa !9
  %108 = load double, ptr %19, align 8, !tbaa !9
  %109 = fsub double %107, %108
  %110 = fmul double %106, %109
  %111 = call double @llvm.fmuladd.f64(double %100, double %103, double %110)
  %112 = load double, ptr %25, align 8, !tbaa !9
  %113 = load double, ptr %23, align 8, !tbaa !9
  %114 = fsub double %112, %113
  %115 = load double, ptr %25, align 8, !tbaa !9
  %116 = load double, ptr %23, align 8, !tbaa !9
  %117 = fsub double %115, %116
  %118 = call double @llvm.fmuladd.f64(double %114, double %117, double %111)
  store double %118, ptr %34, align 8, !tbaa !9
  %119 = load double, ptr %18, align 8, !tbaa !9
  %120 = load double, ptr %15, align 8, !tbaa !9
  %121 = fsub double %119, %120
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = load double, ptr %15, align 8, !tbaa !9
  %124 = fsub double %122, %123
  %125 = load double, ptr %22, align 8, !tbaa !9
  %126 = load double, ptr %19, align 8, !tbaa !9
  %127 = fsub double %125, %126
  %128 = load double, ptr %22, align 8, !tbaa !9
  %129 = load double, ptr %19, align 8, !tbaa !9
  %130 = fsub double %128, %129
  %131 = fmul double %127, %130
  %132 = call double @llvm.fmuladd.f64(double %121, double %124, double %131)
  %133 = load double, ptr %26, align 8, !tbaa !9
  %134 = load double, ptr %23, align 8, !tbaa !9
  %135 = fsub double %133, %134
  %136 = load double, ptr %26, align 8, !tbaa !9
  %137 = load double, ptr %23, align 8, !tbaa !9
  %138 = fsub double %136, %137
  %139 = call double @llvm.fmuladd.f64(double %135, double %138, double %132)
  store double %139, ptr %35, align 8, !tbaa !9
  %140 = load double, ptr %16, align 8, !tbaa !9
  %141 = load double, ptr %17, align 8, !tbaa !9
  %142 = fsub double %140, %141
  %143 = load double, ptr %16, align 8, !tbaa !9
  %144 = load double, ptr %17, align 8, !tbaa !9
  %145 = fsub double %143, %144
  %146 = load double, ptr %20, align 8, !tbaa !9
  %147 = load double, ptr %21, align 8, !tbaa !9
  %148 = fsub double %146, %147
  %149 = load double, ptr %20, align 8, !tbaa !9
  %150 = load double, ptr %21, align 8, !tbaa !9
  %151 = fsub double %149, %150
  %152 = fmul double %148, %151
  %153 = call double @llvm.fmuladd.f64(double %142, double %145, double %152)
  %154 = load double, ptr %24, align 8, !tbaa !9
  %155 = load double, ptr %25, align 8, !tbaa !9
  %156 = fsub double %154, %155
  %157 = load double, ptr %24, align 8, !tbaa !9
  %158 = load double, ptr %25, align 8, !tbaa !9
  %159 = fsub double %157, %158
  %160 = call double @llvm.fmuladd.f64(double %156, double %159, double %153)
  store double %160, ptr %36, align 8, !tbaa !9
  %161 = load double, ptr %18, align 8, !tbaa !9
  %162 = load double, ptr %16, align 8, !tbaa !9
  %163 = fsub double %161, %162
  %164 = load double, ptr %18, align 8, !tbaa !9
  %165 = load double, ptr %16, align 8, !tbaa !9
  %166 = fsub double %164, %165
  %167 = load double, ptr %22, align 8, !tbaa !9
  %168 = load double, ptr %20, align 8, !tbaa !9
  %169 = fsub double %167, %168
  %170 = load double, ptr %22, align 8, !tbaa !9
  %171 = load double, ptr %20, align 8, !tbaa !9
  %172 = fsub double %170, %171
  %173 = fmul double %169, %172
  %174 = call double @llvm.fmuladd.f64(double %163, double %166, double %173)
  %175 = load double, ptr %26, align 8, !tbaa !9
  %176 = load double, ptr %24, align 8, !tbaa !9
  %177 = fsub double %175, %176
  %178 = load double, ptr %26, align 8, !tbaa !9
  %179 = load double, ptr %24, align 8, !tbaa !9
  %180 = fsub double %178, %179
  %181 = call double @llvm.fmuladd.f64(double %177, double %180, double %174)
  store double %181, ptr %37, align 8, !tbaa !9
  %182 = load double, ptr %18, align 8, !tbaa !9
  %183 = load double, ptr %17, align 8, !tbaa !9
  %184 = fsub double %182, %183
  %185 = load double, ptr %18, align 8, !tbaa !9
  %186 = load double, ptr %17, align 8, !tbaa !9
  %187 = fsub double %185, %186
  %188 = load double, ptr %22, align 8, !tbaa !9
  %189 = load double, ptr %21, align 8, !tbaa !9
  %190 = fsub double %188, %189
  %191 = load double, ptr %22, align 8, !tbaa !9
  %192 = load double, ptr %21, align 8, !tbaa !9
  %193 = fsub double %191, %192
  %194 = fmul double %190, %193
  %195 = call double @llvm.fmuladd.f64(double %184, double %187, double %194)
  %196 = load double, ptr %26, align 8, !tbaa !9
  %197 = load double, ptr %25, align 8, !tbaa !9
  %198 = fsub double %196, %197
  %199 = load double, ptr %26, align 8, !tbaa !9
  %200 = load double, ptr %25, align 8, !tbaa !9
  %201 = fsub double %199, %200
  %202 = call double @llvm.fmuladd.f64(double %198, double %201, double %195)
  store double %202, ptr %38, align 8, !tbaa !9
  %203 = load double, ptr %33, align 8, !tbaa !9
  %204 = call double @sqrt(double noundef %203) #5
  store double %204, ptr %27, align 8, !tbaa !9
  %205 = load double, ptr %36, align 8, !tbaa !9
  %206 = call double @sqrt(double noundef %205) #5
  store double %206, ptr %30, align 8, !tbaa !9
  %207 = load double, ptr %34, align 8, !tbaa !9
  %208 = call double @sqrt(double noundef %207) #5
  store double %208, ptr %28, align 8, !tbaa !9
  %209 = load double, ptr %37, align 8, !tbaa !9
  %210 = call double @sqrt(double noundef %209) #5
  store double %210, ptr %31, align 8, !tbaa !9
  %211 = load double, ptr %35, align 8, !tbaa !9
  %212 = call double @sqrt(double noundef %211) #5
  store double %212, ptr %29, align 8, !tbaa !9
  %213 = load double, ptr %38, align 8, !tbaa !9
  %214 = call double @sqrt(double noundef %213) #5
  store double %214, ptr %32, align 8, !tbaa !9
  %215 = load double, ptr %27, align 8, !tbaa !9
  %216 = fcmp olt double %215, 1.000000e-15
  br i1 %216, label %232, label %217

217:                                              ; preds = %6
  %218 = load double, ptr %28, align 8, !tbaa !9
  %219 = fcmp olt double %218, 1.000000e-15
  br i1 %219, label %232, label %220

220:                                              ; preds = %217
  %221 = load double, ptr %29, align 8, !tbaa !9
  %222 = fcmp olt double %221, 1.000000e-15
  br i1 %222, label %232, label %223

223:                                              ; preds = %220
  %224 = load double, ptr %30, align 8, !tbaa !9
  %225 = fcmp olt double %224, 1.000000e-15
  br i1 %225, label %232, label %226

226:                                              ; preds = %223
  %227 = load double, ptr %31, align 8, !tbaa !9
  %228 = fcmp olt double %227, 1.000000e-15
  br i1 %228, label %232, label %229

229:                                              ; preds = %226
  %230 = load double, ptr %32, align 8, !tbaa !9
  %231 = fcmp olt double %230, 1.000000e-15
  br i1 %231, label %232, label %234

232:                                              ; preds = %229, %226, %223, %220, %217, %6
  %233 = call i32 @SMerror(i32 noundef 247, ptr noundef @.str.13, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.14)
  store i32 %233, ptr %7, align 4
  store i32 1, ptr %40, align 4
  br label %277

234:                                              ; preds = %229
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = call double @dComputeTetJacobian(ptr noundef %235, ptr noundef %236, ptr noundef %237, ptr noundef %238)
  store double %239, ptr %39, align 8, !tbaa !9
  %240 = load double, ptr %39, align 8, !tbaa !9
  %241 = load double, ptr %27, align 8, !tbaa !9
  %242 = load double, ptr %28, align 8, !tbaa !9
  %243 = fmul double %241, %242
  %244 = load double, ptr %29, align 8, !tbaa !9
  %245 = fmul double %243, %244
  %246 = fdiv double %240, %245
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 0
  store double %246, ptr %248, align 8, !tbaa !9
  %249 = load double, ptr %39, align 8, !tbaa !9
  %250 = load double, ptr %27, align 8, !tbaa !9
  %251 = load double, ptr %30, align 8, !tbaa !9
  %252 = fmul double %250, %251
  %253 = load double, ptr %31, align 8, !tbaa !9
  %254 = fmul double %252, %253
  %255 = fdiv double %249, %254
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 1
  store double %255, ptr %257, align 8, !tbaa !9
  %258 = load double, ptr %39, align 8, !tbaa !9
  %259 = load double, ptr %28, align 8, !tbaa !9
  %260 = load double, ptr %30, align 8, !tbaa !9
  %261 = fmul double %259, %260
  %262 = load double, ptr %32, align 8, !tbaa !9
  %263 = fmul double %261, %262
  %264 = fdiv double %258, %263
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = getelementptr inbounds double, ptr %265, i64 2
  store double %264, ptr %266, align 8, !tbaa !9
  %267 = load double, ptr %39, align 8, !tbaa !9
  %268 = load double, ptr %29, align 8, !tbaa !9
  %269 = load double, ptr %31, align 8, !tbaa !9
  %270 = fmul double %268, %269
  %271 = load double, ptr %32, align 8, !tbaa !9
  %272 = fmul double %270, %271
  %273 = fdiv double %267, %272
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  %275 = getelementptr inbounds double, ptr %274, i64 3
  store double %273, ptr %275, align 8, !tbaa !9
  %276 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 4, ptr %276, align 4, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %7, align 4
  store i32 1, ptr %40, align 4
  br label %277

277:                                              ; preds = %234, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %278 = load i32, ptr %7, align 4
  ret i32 %278
}

; Function Attrs: nounwind uwtable
declare dso_local double @dComputeTetJacobian(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @SMerror(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @vScaledJacobian(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #1 {
  %7 = load double, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = load double, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = load double, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %2, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %2, i64 16
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = load double, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = insertelement <2 x double> poison, double %17, i64 0
  %28 = insertelement <2 x double> %27, double %12, i64 1
  %29 = insertelement <2 x double> poison, double %7, i64 0
  %30 = insertelement <2 x double> %29, double %17, i64 1
  %31 = fsub <2 x double> %28, %30
  %32 = insertelement <2 x double> poison, double %19, i64 0
  %33 = insertelement <2 x double> %32, double %14, i64 1
  %34 = insertelement <2 x double> poison, double %9, i64 0
  %35 = insertelement <2 x double> %34, double %19, i64 1
  %36 = fsub <2 x double> %33, %35
  %37 = fmul <2 x double> %36, %36
  %38 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> %31, <2 x double> %37)
  %39 = insertelement <2 x double> poison, double %21, i64 0
  %40 = insertelement <2 x double> %39, double %16, i64 1
  %41 = insertelement <2 x double> poison, double %11, i64 0
  %42 = insertelement <2 x double> %41, double %21, i64 1
  %43 = fsub <2 x double> %40, %42
  %44 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> %43, <2 x double> %38)
  %45 = insertelement <2 x double> poison, double %22, i64 0
  %46 = shufflevector <2 x double> %45, <2 x double> poison, <2 x i32> zeroinitializer
  %47 = insertelement <2 x double> %29, double %12, i64 1
  %48 = fsub <2 x double> %46, %47
  %49 = insertelement <2 x double> poison, double %24, i64 0
  %50 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
  %51 = insertelement <2 x double> %34, double %14, i64 1
  %52 = fsub <2 x double> %50, %51
  %53 = fmul <2 x double> %52, %52
  %54 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %48, <2 x double> %53)
  %55 = insertelement <2 x double> poison, double %26, i64 0
  %56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
  %57 = insertelement <2 x double> %41, double %16, i64 1
  %58 = fsub <2 x double> %56, %57
  %59 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %58, <2 x double> %58, <2 x double> %54)
  %60 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %44)
  %61 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %59)
  %62 = shufflevector <2 x double> %60, <2 x double> %61, <2 x i32> <i32 0, i32 2>
  %63 = shufflevector <2 x double> %60, <2 x double> %61, <2 x i32> <i32 1, i32 3>
  %64 = shufflevector <2 x double> %62, <2 x double> %63, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %.fr = freeze <4 x double> %64
  %65 = fcmp olt <4 x double> %.fr, <double 1.000000e-15, double 1.000000e-15, double 1.000000e-15, double 1.000000e-15>
  %66 = insertelement <2 x double> %45, double %12, i64 1
  %67 = insertelement <2 x double> %27, double %7, i64 1
  %68 = fsub <2 x double> %66, %67
  %69 = insertelement <2 x double> %49, double %14, i64 1
  %70 = insertelement <2 x double> %32, double %9, i64 1
  %71 = fsub <2 x double> %69, %70
  %72 = fmul <2 x double> %71, %71
  %73 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %68, <2 x double> %68, <2 x double> %72)
  %74 = insertelement <2 x double> %55, double %16, i64 1
  %75 = insertelement <2 x double> %39, double %11, i64 1
  %76 = fsub <2 x double> %74, %75
  %77 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %76, <2 x double> %76, <2 x double> %73)
  %.fr142 = freeze <2 x double> %77
  %78 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %.fr142)
  %79 = fcmp olt <2 x double> %78, <double 1.000000e-15, double 1.000000e-15>
  %80 = bitcast <4 x i1> %65 to i4
  %81 = icmp ne i4 %80, 0
  %82 = extractelement <2 x i1> %79, i64 1
  %op.rdx = or i1 %82, %81
  %83 = extractelement <2 x i1> %79, i64 0
  %op.rdx138 = or i1 %op.rdx, %83
  br i1 %op.rdx138, label %84, label %86

84:                                               ; preds = %6
  %85 = tail call i32 @SMerror(i32 noundef 247, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.14) #3
  br label %99

86:                                               ; preds = %6
  %87 = tail call double @dComputeTetJacobian(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %88 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %89 = fmul <2 x double> %88, %60
  %90 = fmul <2 x double> %89, %61
  %91 = insertelement <2 x double> poison, double %87, i64 0
  %92 = shufflevector <2 x double> %91, <2 x double> poison, <2 x i32> zeroinitializer
  %93 = fdiv <2 x double> %92, %90
  store <2 x double> %93, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %4, i64 16
  %95 = fmul <2 x double> %62, %63
  %96 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
  %97 = fmul <2 x double> %95, %96
  %98 = fdiv <2 x double> %92, %97
  store <2 x double> %98, ptr %94, align 8, !tbaa !5
  store i32 4, ptr %5, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %86, %84
  %.0 = phi i32 [ %85, %84 ], [ 0, %86 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local double @dComputeTetJacobian(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #2

attributes #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 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass