; 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.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @vSMRSVolumeRatio(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 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
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 0
  %39 = load double, ptr %38, align 8, !tbaa !9
  store double %39, ptr %18, align 8, !tbaa !9
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 1
  %42 = load double, ptr %41, align 8, !tbaa !9
  store double %42, ptr %22, align 8, !tbaa !9
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 2
  %45 = load double, ptr %44, align 8, !tbaa !9
  store double %45, ptr %26, align 8, !tbaa !9
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 0
  %48 = load double, ptr %47, align 8, !tbaa !9
  store double %48, ptr %19, align 8, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds double, ptr %49, i64 1
  %51 = load double, ptr %50, align 8, !tbaa !9
  store double %51, ptr %23, align 8, !tbaa !9
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 2
  %54 = load double, ptr %53, align 8, !tbaa !9
  store double %54, ptr %27, align 8, !tbaa !9
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 0
  %57 = load double, ptr %56, align 8, !tbaa !9
  store double %57, ptr %20, align 8, !tbaa !9
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 1
  %60 = load double, ptr %59, align 8, !tbaa !9
  store double %60, ptr %24, align 8, !tbaa !9
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 2
  %63 = load double, ptr %62, align 8, !tbaa !9
  store double %63, ptr %28, align 8, !tbaa !9
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 0
  %66 = load double, ptr %65, align 8, !tbaa !9
  store double %66, ptr %21, align 8, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 1
  %69 = load double, ptr %68, align 8, !tbaa !9
  store double %69, ptr %25, align 8, !tbaa !9
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i64 2
  %72 = load double, ptr %71, align 8, !tbaa !9
  store double %72, ptr %29, align 8, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = call double @dComputeTetJacobian(ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76)
  store double %77, ptr %15, align 8, !tbaa !9
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = fdiv double %78, 6.000000e+00
  store double %79, ptr %16, align 8, !tbaa !9
  %80 = load double, ptr %15, align 8, !tbaa !9
  %81 = call double @llvm.fabs.f64(double %80)
  %82 = fcmp olt double %81, 0x3696D601AD376ABA
  br i1 %82, label %83, label %85

83:                                               ; preds = %6
  %84 = call i32 @SMerror(i32 noundef 292, ptr noundef @.str.15, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.16)
  store i32 %84, ptr %7, align 4
  store i32 1, ptr %36, align 4
  br label %234

85:                                               ; preds = %6
  %86 = load double, ptr %19, align 8, !tbaa !9
  %87 = load double, ptr %18, align 8, !tbaa !9
  %88 = fsub double %86, %87
  %89 = load double, ptr %19, align 8, !tbaa !9
  %90 = load double, ptr %18, align 8, !tbaa !9
  %91 = fsub double %89, %90
  %92 = load double, ptr %23, align 8, !tbaa !9
  %93 = load double, ptr %22, align 8, !tbaa !9
  %94 = fsub double %92, %93
  %95 = load double, ptr %23, align 8, !tbaa !9
  %96 = load double, ptr %22, align 8, !tbaa !9
  %97 = fsub double %95, %96
  %98 = fmul double %94, %97
  %99 = call double @llvm.fmuladd.f64(double %88, double %91, double %98)
  %100 = load double, ptr %27, align 8, !tbaa !9
  %101 = load double, ptr %26, align 8, !tbaa !9
  %102 = fsub double %100, %101
  %103 = load double, ptr %27, align 8, !tbaa !9
  %104 = load double, ptr %26, align 8, !tbaa !9
  %105 = fsub double %103, %104
  %106 = call double @llvm.fmuladd.f64(double %102, double %105, double %99)
  store double %106, ptr %30, align 8, !tbaa !9
  %107 = load double, ptr %20, align 8, !tbaa !9
  %108 = load double, ptr %18, align 8, !tbaa !9
  %109 = fsub double %107, %108
  %110 = load double, ptr %20, align 8, !tbaa !9
  %111 = load double, ptr %18, align 8, !tbaa !9
  %112 = fsub double %110, %111
  %113 = load double, ptr %24, align 8, !tbaa !9
  %114 = load double, ptr %22, align 8, !tbaa !9
  %115 = fsub double %113, %114
  %116 = load double, ptr %24, align 8, !tbaa !9
  %117 = load double, ptr %22, align 8, !tbaa !9
  %118 = fsub double %116, %117
  %119 = fmul double %115, %118
  %120 = call double @llvm.fmuladd.f64(double %109, double %112, double %119)
  %121 = load double, ptr %28, align 8, !tbaa !9
  %122 = load double, ptr %26, align 8, !tbaa !9
  %123 = fsub double %121, %122
  %124 = load double, ptr %28, align 8, !tbaa !9
  %125 = load double, ptr %26, align 8, !tbaa !9
  %126 = fsub double %124, %125
  %127 = call double @llvm.fmuladd.f64(double %123, double %126, double %120)
  store double %127, ptr %31, align 8, !tbaa !9
  %128 = load double, ptr %21, align 8, !tbaa !9
  %129 = load double, ptr %18, align 8, !tbaa !9
  %130 = fsub double %128, %129
  %131 = load double, ptr %21, align 8, !tbaa !9
  %132 = load double, ptr %18, align 8, !tbaa !9
  %133 = fsub double %131, %132
  %134 = load double, ptr %25, align 8, !tbaa !9
  %135 = load double, ptr %22, align 8, !tbaa !9
  %136 = fsub double %134, %135
  %137 = load double, ptr %25, align 8, !tbaa !9
  %138 = load double, ptr %22, align 8, !tbaa !9
  %139 = fsub double %137, %138
  %140 = fmul double %136, %139
  %141 = call double @llvm.fmuladd.f64(double %130, double %133, double %140)
  %142 = load double, ptr %29, align 8, !tbaa !9
  %143 = load double, ptr %26, align 8, !tbaa !9
  %144 = fsub double %142, %143
  %145 = load double, ptr %29, align 8, !tbaa !9
  %146 = load double, ptr %26, align 8, !tbaa !9
  %147 = fsub double %145, %146
  %148 = call double @llvm.fmuladd.f64(double %144, double %147, double %141)
  store double %148, ptr %32, align 8, !tbaa !9
  %149 = load double, ptr %19, align 8, !tbaa !9
  %150 = load double, ptr %20, align 8, !tbaa !9
  %151 = fsub double %149, %150
  %152 = load double, ptr %19, align 8, !tbaa !9
  %153 = load double, ptr %20, align 8, !tbaa !9
  %154 = fsub double %152, %153
  %155 = load double, ptr %23, align 8, !tbaa !9
  %156 = load double, ptr %24, align 8, !tbaa !9
  %157 = fsub double %155, %156
  %158 = load double, ptr %23, align 8, !tbaa !9
  %159 = load double, ptr %24, align 8, !tbaa !9
  %160 = fsub double %158, %159
  %161 = fmul double %157, %160
  %162 = call double @llvm.fmuladd.f64(double %151, double %154, double %161)
  %163 = load double, ptr %27, align 8, !tbaa !9
  %164 = load double, ptr %28, align 8, !tbaa !9
  %165 = fsub double %163, %164
  %166 = load double, ptr %27, align 8, !tbaa !9
  %167 = load double, ptr %28, align 8, !tbaa !9
  %168 = fsub double %166, %167
  %169 = call double @llvm.fmuladd.f64(double %165, double %168, double %162)
  store double %169, ptr %33, align 8, !tbaa !9
  %170 = load double, ptr %21, align 8, !tbaa !9
  %171 = load double, ptr %19, align 8, !tbaa !9
  %172 = fsub double %170, %171
  %173 = load double, ptr %21, align 8, !tbaa !9
  %174 = load double, ptr %19, align 8, !tbaa !9
  %175 = fsub double %173, %174
  %176 = load double, ptr %25, align 8, !tbaa !9
  %177 = load double, ptr %23, align 8, !tbaa !9
  %178 = fsub double %176, %177
  %179 = load double, ptr %25, align 8, !tbaa !9
  %180 = load double, ptr %23, align 8, !tbaa !9
  %181 = fsub double %179, %180
  %182 = fmul double %178, %181
  %183 = call double @llvm.fmuladd.f64(double %172, double %175, double %182)
  %184 = load double, ptr %29, align 8, !tbaa !9
  %185 = load double, ptr %27, align 8, !tbaa !9
  %186 = fsub double %184, %185
  %187 = load double, ptr %29, align 8, !tbaa !9
  %188 = load double, ptr %27, align 8, !tbaa !9
  %189 = fsub double %187, %188
  %190 = call double @llvm.fmuladd.f64(double %186, double %189, double %183)
  store double %190, ptr %34, align 8, !tbaa !9
  %191 = load double, ptr %21, align 8, !tbaa !9
  %192 = load double, ptr %20, align 8, !tbaa !9
  %193 = fsub double %191, %192
  %194 = load double, ptr %21, align 8, !tbaa !9
  %195 = load double, ptr %20, align 8, !tbaa !9
  %196 = fsub double %194, %195
  %197 = load double, ptr %25, align 8, !tbaa !9
  %198 = load double, ptr %24, align 8, !tbaa !9
  %199 = fsub double %197, %198
  %200 = load double, ptr %25, align 8, !tbaa !9
  %201 = load double, ptr %24, align 8, !tbaa !9
  %202 = fsub double %200, %201
  %203 = fmul double %199, %202
  %204 = call double @llvm.fmuladd.f64(double %193, double %196, double %203)
  %205 = load double, ptr %29, align 8, !tbaa !9
  %206 = load double, ptr %28, align 8, !tbaa !9
  %207 = fsub double %205, %206
  %208 = load double, ptr %29, align 8, !tbaa !9
  %209 = load double, ptr %28, align 8, !tbaa !9
  %210 = fsub double %208, %209
  %211 = call double @llvm.fmuladd.f64(double %207, double %210, double %204)
  store double %211, ptr %35, align 8, !tbaa !9
  %212 = load double, ptr %30, align 8, !tbaa !9
  %213 = load double, ptr %31, align 8, !tbaa !9
  %214 = fadd double %212, %213
  %215 = load double, ptr %32, align 8, !tbaa !9
  %216 = fadd double %214, %215
  %217 = load double, ptr %33, align 8, !tbaa !9
  %218 = fadd double %216, %217
  %219 = load double, ptr %34, align 8, !tbaa !9
  %220 = fadd double %218, %219
  %221 = load double, ptr %35, align 8, !tbaa !9
  %222 = fadd double %220, %221
  %223 = fmul double 0x3FC5555555555555, %222
  %224 = call double @sqrt(double noundef %223) #5
  store double %224, ptr %17, align 8, !tbaa !9
  %225 = load double, ptr %17, align 8, !tbaa !9
  %226 = call double @pow(double noundef %225, double noundef 3.000000e+00) #5
  %227 = fneg double %226
  %228 = load double, ptr %16, align 8, !tbaa !9
  %229 = fmul double 8.479670e+00, %228
  %230 = fdiv double %227, %229
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = getelementptr inbounds double, ptr %231, i64 0
  store double %230, ptr %232, align 8, !tbaa !9
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 1, ptr %233, align 4, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !11
  store i32 0, ptr %7, align 4
  store i32 1, ptr %36, align 4
  br label %234

234:                                              ; preds = %85, %83
  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
  %235 = load i32, ptr %7, align 4
  ret i32 %235
}

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

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.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @vSMRSVolumeRatio(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 #3 {
  %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 = tail call double @dComputeTetJacobian(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %28 = tail call double @llvm.fabs.f64(double %27)
  %29 = fcmp olt double %28, 0x3696D601AD376ABA
  br i1 %29, label %30, label %32

30:                                               ; preds = %6
  %31 = tail call i32 @SMerror(i32 noundef 292, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.16) #5
  br label %88

32:                                               ; preds = %6
  %33 = fdiv double %27, 6.000000e+00
  %34 = insertelement <2 x double> poison, double %12, i64 0
  %35 = insertelement <2 x double> %34, double %17, i64 1
  %36 = insertelement <2 x double> poison, double %7, i64 0
  %37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
  %38 = fsub <2 x double> %35, %37
  %39 = insertelement <2 x double> poison, double %14, i64 0
  %40 = insertelement <2 x double> %39, double %19, i64 1
  %41 = insertelement <2 x double> poison, double %9, i64 0
  %42 = shufflevector <2 x double> %41, <2 x double> poison, <2 x i32> zeroinitializer
  %43 = fsub <2 x double> %40, %42
  %44 = insertelement <2 x double> poison, double %16, i64 0
  %45 = insertelement <2 x double> %44, double %21, i64 1
  %46 = insertelement <2 x double> poison, double %11, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = fsub <2 x double> %45, %47
  %49 = fmul <2 x double> %43, %43
  %50 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %38, <2 x double> %49)
  %51 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %48, <2 x double> %50)
  %52 = fsub double %22, %7
  %53 = fsub double %24, %9
  %54 = fmul double %53, %53
  %55 = tail call double @llvm.fmuladd.f64(double %52, double %52, double %54)
  %56 = fsub double %26, %11
  %57 = tail call double @llvm.fmuladd.f64(double %56, double %56, double %55)
  %58 = fsub double %12, %17
  %59 = fsub double %14, %19
  %60 = fmul double %59, %59
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %58, double %60)
  %62 = fsub double %16, %21
  %63 = tail call double @llvm.fmuladd.f64(double %62, double %62, double %61)
  %64 = fsub double %22, %12
  %65 = fsub double %24, %14
  %66 = fmul double %65, %65
  %67 = tail call double @llvm.fmuladd.f64(double %64, double %64, double %66)
  %68 = fsub double %26, %16
  %69 = tail call double @llvm.fmuladd.f64(double %68, double %68, double %67)
  %70 = fsub double %22, %17
  %71 = fsub double %24, %19
  %72 = fmul double %71, %71
  %73 = tail call double @llvm.fmuladd.f64(double %70, double %70, double %72)
  %74 = fsub double %26, %21
  %75 = tail call double @llvm.fmuladd.f64(double %74, double %74, double %73)
  %shift = shufflevector <2 x double> %51, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %76 = fadd <2 x double> %51, %shift
  %77 = extractelement <2 x double> %76, i64 0
  %78 = fadd double %77, %57
  %79 = fadd double %63, %78
  %80 = fadd double %69, %79
  %81 = fadd double %75, %80
  %82 = fmul double %81, 0x3FC5555555555555
  %83 = tail call double @sqrt(double noundef %82) #5
  %84 = tail call double @pow(double noundef %83, double noundef 3.000000e+00) #5
  %85 = fneg double %84
  %86 = fmul double %33, 8.479670e+00
  %87 = fdiv double %85, %86
  store double %87, ptr %4, align 8, !tbaa !5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %32, %30
  %.0 = phi i32 [ %31, %30 ], [ 0, %32 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double 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>) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass,VectorCombinePass