; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/Numerics/FEM/src (dsrc2c)

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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.anon.0 = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.anon.1 = type { i64, i64, i64, i64, i64 }

@itcom1_ = external hidden global %struct.anon, align 8
@itcom3_ = external hidden global %struct.anon.0, align 8
@itcom2_ = external hidden global %struct.anon.1, align 8
@parsi_.ip = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @parsi_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %10 = load i64, ptr @itcom1_, align 8, !tbaa !9
  %11 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !12
  %12 = sub nsw i64 %10, %11
  store i64 %12, ptr @parsi_.ip, align 8, !tbaa !13
  %13 = load i64, ptr @parsi_.ip, align 8, !tbaa !13
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  br label %45

16:                                               ; preds = %4
  %17 = load i64, ptr @parsi_.ip, align 8, !tbaa !13
  %18 = icmp ne i64 %17, 1
  br i1 %18, label %19, label %28

19:                                               ; preds = %16
  %20 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %21 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %22 = fmul double %20, %21
  %23 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  %24 = fmul double %22, %23
  %25 = fneg double %24
  %26 = call double @llvm.fmuladd.f64(double %25, double 2.500000e-01, double 1.000000e+00)
  %27 = fdiv double 1.000000e+00, %26
  store double %27, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  br label %35

28:                                               ; preds = %16
  %29 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %30 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %31 = fmul double %29, %30
  %32 = fneg double %31
  %33 = call double @llvm.fmuladd.f64(double %32, double 5.000000e-01, double 1.000000e+00)
  %34 = fdiv double 1.000000e+00, %33
  store double %34, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  br label %35

35:                                               ; preds = %28, %19
  %36 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  %37 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !18
  %38 = fmul double %36, %37
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  store double %38, ptr %39, align 8, !tbaa !19
  %40 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  store double %40, ptr %41, align 8, !tbaa !19
  %42 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  %43 = fsub double 1.000000e+00, %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  store double %43, ptr %44, align 8, !tbaa !19
  store i32 0, ptr %5, align 4
  br label %181

45:                                               ; preds = %15
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !13
  switch i64 %47, label %51 [
    i64 1, label %48
    i64 2, label %49
    i64 3, label %50
  ]

48:                                               ; preds = %45
  br label %52

49:                                               ; preds = %45
  br label %72

50:                                               ; preds = %45
  br label %127

51:                                               ; preds = %45
  br label %52

52:                                               ; preds = %51, %48
  %53 = load i64, ptr getelementptr inbounds (%struct.anon.1, ptr @itcom2_, i32 0, i32 2), align 8, !tbaa !20
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %57 = fneg double %56
  store double %57, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !23
  br label %58

58:                                               ; preds = %55, %52
  %59 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %60 = fsub double 2.000000e+00, %59
  %61 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !23
  %62 = fsub double %60, %61
  %63 = fdiv double 2.000000e+00, %62
  store double %63, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !18
  %64 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %65 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !23
  %66 = fsub double %64, %65
  %67 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %68 = fsub double 2.000000e+00, %67
  %69 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !23
  %70 = fsub double %68, %69
  %71 = fdiv double %66, %70
  store double %71, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  br label %176

72:                                               ; preds = %49
  %73 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %74 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %75 = fneg double %73
  %76 = call double @llvm.fmuladd.f64(double %75, double %74, double 2.000000e+00)
  %77 = fdiv double 2.000000e+00, %76
  store double %77, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !18
  %78 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %79 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %80 = fmul double %78, %79
  %81 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %82 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %83 = fneg double %81
  %84 = call double @llvm.fmuladd.f64(double %83, double %82, double 2.000000e+00)
  %85 = fdiv double %80, %84
  store double %85, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %86 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %87 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %88 = fneg double %86
  %89 = call double @llvm.fmuladd.f64(double %88, double %87, double 1.000000e+00)
  %90 = fcmp oge double %89, 0.000000e+00
  br i1 %90, label %91, label %96

91:                                               ; preds = %72
  %92 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %93 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %94 = fneg double %92
  %95 = call double @llvm.fmuladd.f64(double %94, double %93, double 1.000000e+00)
  br label %102

96:                                               ; preds = %72
  %97 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %98 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %99 = fneg double %97
  %100 = call double @llvm.fmuladd.f64(double %99, double %98, double 1.000000e+00)
  %101 = fneg double %100
  br label %102

102:                                              ; preds = %96, %91
  %103 = phi double [ %95, %91 ], [ %101, %96 ]
  %104 = call double @sqrt(double noundef %103) #3
  %105 = fsub double 1.000000e+00, %104
  %106 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %107 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %108 = fneg double %106
  %109 = call double @llvm.fmuladd.f64(double %108, double %107, double 1.000000e+00)
  %110 = fcmp oge double %109, 0.000000e+00
  br i1 %110, label %111, label %116

111:                                              ; preds = %102
  %112 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %113 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %114 = fneg double %112
  %115 = call double @llvm.fmuladd.f64(double %114, double %113, double 1.000000e+00)
  br label %122

116:                                              ; preds = %102
  %117 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %118 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !22
  %119 = fneg double %117
  %120 = call double @llvm.fmuladd.f64(double %119, double %118, double 1.000000e+00)
  %121 = fneg double %120
  br label %122

122:                                              ; preds = %116, %111
  %123 = phi double [ %115, %111 ], [ %121, %116 ]
  %124 = call double @sqrt(double noundef %123) #3
  %125 = fadd double %124, 1.000000e+00
  %126 = fdiv double %105, %125
  store double %126, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), align 8, !tbaa !24
  br label %176

127:                                              ; preds = %50
  %128 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !25
  %129 = fsub double 2.000000e+00, %128
  %130 = fdiv double 2.000000e+00, %129
  store double %130, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !18
  %131 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !25
  %132 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 14), align 8, !tbaa !25
  %133 = fsub double 2.000000e+00, %132
  %134 = fdiv double %131, %133
  store double %134, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %135 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %136 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %137 = fneg double %135
  %138 = call double @llvm.fmuladd.f64(double %137, double %136, double 1.000000e+00)
  %139 = fcmp oge double %138, 0.000000e+00
  br i1 %139, label %140, label %145

140:                                              ; preds = %127
  %141 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %142 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %143 = fneg double %141
  %144 = call double @llvm.fmuladd.f64(double %143, double %142, double 1.000000e+00)
  br label %151

145:                                              ; preds = %127
  %146 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %147 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %148 = fneg double %146
  %149 = call double @llvm.fmuladd.f64(double %148, double %147, double 1.000000e+00)
  %150 = fneg double %149
  br label %151

151:                                              ; preds = %145, %140
  %152 = phi double [ %144, %140 ], [ %150, %145 ]
  %153 = call double @sqrt(double noundef %152) #3
  %154 = fsub double 1.000000e+00, %153
  %155 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %156 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %157 = fneg double %155
  %158 = call double @llvm.fmuladd.f64(double %157, double %156, double 1.000000e+00)
  %159 = fcmp oge double %158, 0.000000e+00
  br i1 %159, label %160, label %165

160:                                              ; preds = %151
  %161 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %162 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %163 = fneg double %161
  %164 = call double @llvm.fmuladd.f64(double %163, double %162, double 1.000000e+00)
  br label %171

165:                                              ; preds = %151
  %166 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %167 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !14
  %168 = fneg double %166
  %169 = call double @llvm.fmuladd.f64(double %168, double %167, double 1.000000e+00)
  %170 = fneg double %169
  br label %171

171:                                              ; preds = %165, %160
  %172 = phi double [ %164, %160 ], [ %170, %165 ]
  %173 = call double @sqrt(double noundef %172) #3
  %174 = fadd double %173, 1.000000e+00
  %175 = fdiv double %154, %174
  store double %175, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), align 8, !tbaa !24
  br label %176

176:                                              ; preds = %171, %122, %58
  store double 1.000000e+00, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !17
  %177 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !18
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  store double %177, ptr %178, align 8, !tbaa !19
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  store double 1.000000e+00, ptr %179, align 8, !tbaa !19
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  store double 0.000000e+00, ptr %180, align 8, !tbaa !19
  store i32 0, ptr %5, align 4
  br label %181

181:                                              ; preds = %176, %35
  %182 = load i32, ptr %5, align 4
  ret i32 %182
}

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

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

attributes #0 = { 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 #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 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !16, i64 96}
!15 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152}
!16 = !{!"double", !7, i64 0}
!17 = !{!15, !16, i64 80}
!18 = !{!15, !16, i64 48}
!19 = !{!16, !16, i64 0}
!20 = !{!21, !11, i64 16}
!21 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!22 = !{!15, !16, i64 16}
!23 = !{!15, !16, i64 104}
!24 = !{!15, !16, i64 88}
!25 = !{!15, !16, i64 112}


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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.anon.0 = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.anon.1 = type { i64, i64, i64, i64, i64 }

@itcom1_ = external hidden local_unnamed_addr global %struct.anon, align 8
@itcom3_ = external hidden local_unnamed_addr global %struct.anon.0, align 8
@itcom2_ = external hidden local_unnamed_addr global %struct.anon.1, align 8
@parsi_.ip = external hidden local_unnamed_addr global i64, align 8

; Function Attrs: mustprogress nofree nounwind willreturn memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef i32 @parsi_(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = load i64, ptr @itcom1_, align 8, !tbaa !5
  %6 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !10
  %7 = sub nsw i64 %5, %6
  store i64 %7, ptr @parsi_.ip, align 8, !tbaa !11
  %8 = icmp eq i64 %5, %6
  br i1 %8, label %26, label %9

9:                                                ; preds = %4
  %.not = icmp eq i64 %7, 1
  %10 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !12
  br i1 %.not, label %17, label %11

11:                                               ; preds = %9
  %12 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !15
  %13 = fneg double %10
  %14 = fmul double %10, %13
  %15 = fmul double %14, %12
  %16 = tail call double @llvm.fmuladd.f64(double %15, double 2.500000e-01, double 1.000000e+00)
  br label %21

17:                                               ; preds = %9
  %18 = fneg double %10
  %19 = fmul double %10, %18
  %20 = tail call double @llvm.fmuladd.f64(double %19, double 5.000000e-01, double 1.000000e+00)
  br label %21

21:                                               ; preds = %17, %11
  %.pn = phi double [ %20, %17 ], [ %16, %11 ]
  %storemerge = fdiv double 1.000000e+00, %.pn
  store double %storemerge, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !15
  %22 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !16
  %23 = fmul double %storemerge, %22
  store double %23, ptr %0, align 8, !tbaa !17
  %24 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !15
  store double %24, ptr %1, align 8, !tbaa !17
  %25 = fsub double 1.000000e+00, %24
  br label %84

26:                                               ; preds = %4
  %27 = load i64, ptr %3, align 8, !tbaa !11
  switch i64 %27, label %28 [
    i64 3, label %61
    i64 2, label %39
  ]

28:                                               ; preds = %26
  %29 = load i64, ptr getelementptr inbounds (i8, ptr @itcom2_, i64 16), align 8, !tbaa !18
  %.not15 = icmp eq i64 %29, 0
  %.pre = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !20
  br i1 %.not15, label %._crit_edge, label %30

._crit_edge:                                      ; preds = %28
  %.pre16 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !21
  br label %32

30:                                               ; preds = %28
  %31 = fneg double %.pre
  store double %31, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !21
  br label %32

32:                                               ; preds = %._crit_edge, %30
  %33 = phi double [ %.pre16, %._crit_edge ], [ %31, %30 ]
  %34 = fsub double 2.000000e+00, %.pre
  %35 = fsub double %34, %33
  %36 = fdiv double 2.000000e+00, %35
  store double %36, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !16
  %37 = fsub double %.pre, %33
  %38 = fdiv double %37, %35
  store double %38, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !12
  br label %82

39:                                               ; preds = %26
  %40 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !20
  %41 = fneg double %40
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %40, double 2.000000e+00)
  %43 = fdiv double 2.000000e+00, %42
  store double %43, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !16
  %44 = fmul double %40, %40
  %45 = fdiv double %44, %42
  store double %45, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !12
  %46 = tail call double @llvm.fmuladd.f64(double %41, double %40, double 1.000000e+00)
  %47 = fcmp ult double %46, 0.000000e+00
  %48 = fneg double %46
  %49 = select i1 %47, double %48, double %46
  %50 = tail call double @sqrt(double noundef %49) #3
  %51 = fsub double 1.000000e+00, %50
  %52 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !20
  %53 = fneg double %52
  %54 = tail call double @llvm.fmuladd.f64(double %53, double %52, double 1.000000e+00)
  %55 = fcmp ult double %54, 0.000000e+00
  %56 = fneg double %54
  %57 = select i1 %55, double %56, double %54
  %58 = tail call double @sqrt(double noundef %57) #3
  %59 = fadd double %58, 1.000000e+00
  %60 = fdiv double %51, %59
  store double %60, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 88), align 8, !tbaa !22
  br label %82

61:                                               ; preds = %26
  %62 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 112), align 8, !tbaa !23
  %63 = fsub double 2.000000e+00, %62
  %64 = fdiv double 2.000000e+00, %63
  store double %64, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !16
  %65 = fdiv double %62, %63
  store double %65, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !12
  %66 = fneg double %65
  %67 = tail call double @llvm.fmuladd.f64(double %66, double %65, double 1.000000e+00)
  %68 = fcmp ult double %67, 0.000000e+00
  %69 = fneg double %67
  %70 = select i1 %68, double %69, double %67
  %71 = tail call double @sqrt(double noundef %70) #3
  %72 = fsub double 1.000000e+00, %71
  %73 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !12
  %74 = fneg double %73
  %75 = tail call double @llvm.fmuladd.f64(double %74, double %73, double 1.000000e+00)
  %76 = fcmp ult double %75, 0.000000e+00
  %77 = fneg double %75
  %78 = select i1 %76, double %77, double %75
  %79 = tail call double @sqrt(double noundef %78) #3
  %80 = fadd double %79, 1.000000e+00
  %81 = fdiv double %72, %80
  store double %81, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 88), align 8, !tbaa !22
  br label %82

82:                                               ; preds = %61, %39, %32
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !15
  %83 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !16
  store double %83, ptr %0, align 8, !tbaa !17
  store double 1.000000e+00, ptr %1, align 8, !tbaa !17
  br label %84

84:                                               ; preds = %82, %21
  %storemerge14 = phi double [ %25, %21 ], [ 0.000000e+00, %82 ]
  store double %storemerge14, ptr %2, align 8, !tbaa !17
  ret i32 0
}

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

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

attributes #0 = { 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 #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 = { mustprogress 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 96}
!13 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152}
!14 = !{!"double", !8, i64 0}
!15 = !{!13, !14, i64 80}
!16 = !{!13, !14, i64 48}
!17 = !{!14, !14, i64 0}
!18 = !{!19, !7, i64 16}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!20 = !{!13, !14, i64 16}
!21 = !{!13, !14, i64 104}
!22 = !{!13, !14, i64 88}
!23 = !{!13, !14, i64 112}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass