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

@itcom1_ = external hidden global %struct.anon, align 8
@itcom3_ = external hidden global %struct.anon.0, align 8
@chgsme_.q = external hidden global double, align 8
@chgsme_.z = external hidden global double, align 8
@chgsme_.ip = external hidden global i64, align 8
@chgsme_.rn = external hidden global double, align 8
@chgsme_.wp = external hidden global double, align 8
@chgsme_.sm1 = external hidden global double, align 8
@chgsme_.sm2 = external hidden global double, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @chgsme_(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %10 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !9
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = load double, ptr %11, align 8, !tbaa !12
  %13 = fdiv double %10, %12
  %14 = call double @sqrt(double noundef %13) #5
  store double %14, ptr @chgsme_.rn, align 8, !tbaa !12
  %15 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 8), align 8, !tbaa !13
  %16 = fcmp ogt double %15, 1.000000e+00
  br i1 %16, label %17, label %20

17:                                               ; preds = %2
  %18 = load double, ptr @chgsme_.rn, align 8, !tbaa !12
  %19 = fcmp ogt double %18, 1.000000e+00
  br i1 %19, label %21, label %20

20:                                               ; preds = %17, %2
  store i64 0, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %207

21:                                               ; preds = %17
  %22 = load i64, ptr @itcom1_, align 8, !tbaa !14
  %23 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !17
  %24 = add nsw i64 %23, 2
  %25 = icmp sle i64 %22, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  store i64 0, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %207

27:                                               ; preds = %21
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !18
  %30 = add nsw i64 %29, 1
  store i64 %30, ptr %28, align 8, !tbaa !18
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i64, ptr %31, align 8, !tbaa !18
  %33 = icmp slt i64 %32, 3
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  store i64 0, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %207

35:                                               ; preds = %27
  store double 0.000000e+00, ptr @chgsme_.sm1, align 8, !tbaa !12
  store double 0.000000e+00, ptr @chgsme_.sm2, align 8, !tbaa !12
  %36 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %37 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %38 = fcmp oge double %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  br label %107

40:                                               ; preds = %35
  %41 = load i64, ptr @itcom1_, align 8, !tbaa !14
  %42 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !17
  %43 = sub nsw i64 %41, %42
  store i64 %43, ptr @chgsme_.ip, align 8, !tbaa !18
  %44 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 8), align 8, !tbaa !13
  %45 = call double @v3p_netlib_pow_di(ptr noundef getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), ptr noundef @chgsme_.ip)
  %46 = fadd double %45, 1.000000e+00
  %47 = fmul double %44, %46
  %48 = call double @v3p_netlib_pow_di(ptr noundef getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), ptr noundef @chgsme_.ip)
  %49 = call double @sqrt(double noundef %48) #5
  %50 = fmul double %49, 2.000000e+00
  %51 = fdiv double %47, %50
  store double %51, ptr @chgsme_.q, align 8, !tbaa !12
  %52 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %53 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %54 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %55 = call double @llvm.fmuladd.f64(double %53, double %54, double -1.000000e+00)
  %56 = call double @sqrt(double noundef %55) #5
  %57 = fadd double %52, %56
  store double %57, ptr %7, align 8, !tbaa !12
  %58 = load i64, ptr @chgsme_.ip, align 8, !tbaa !18
  %59 = sitofp i64 %58 to float
  %60 = fpext float %59 to double
  %61 = fdiv double 1.000000e+00, %60
  store double %61, ptr %8, align 8, !tbaa !12
  %62 = call double @v3p_netlib_pow_dd(ptr noundef %7, ptr noundef %8)
  store double %62, ptr @chgsme_.z, align 8, !tbaa !12
  %63 = load double, ptr @chgsme_.z, align 8, !tbaa !12
  %64 = load double, ptr @chgsme_.z, align 8, !tbaa !12
  %65 = call double @llvm.fmuladd.f64(double %63, double %64, double 1.000000e+00)
  %66 = load double, ptr @chgsme_.z, align 8, !tbaa !12
  %67 = fmul double %66, 2.000000e+00
  %68 = fdiv double %65, %67
  store double %68, ptr @chgsme_.wp, align 8, !tbaa !12
  %69 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %70 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %71 = fadd double %69, %70
  %72 = load double, ptr @chgsme_.wp, align 8, !tbaa !12
  %73 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %74 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %75 = fsub double %73, %74
  %76 = fneg double %72
  %77 = call double @llvm.fmuladd.f64(double %76, double %75, double %71)
  %78 = fmul double %77, 5.000000e-01
  store double %78, ptr @chgsme_.sm1, align 8, !tbaa !12
  %79 = load i64, ptr @chgsme_.ip, align 8, !tbaa !18
  %80 = sub nsw i64 %79, 1
  store i64 %80, ptr %6, align 8, !tbaa !18
  %81 = load double, ptr @chgsme_.rn, align 8, !tbaa !12
  %82 = call double @v3p_netlib_pow_di(ptr noundef getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), ptr noundef @chgsme_.ip)
  %83 = fadd double %82, 1.000000e+00
  %84 = fmul double %81, %83
  %85 = call double @v3p_netlib_pow_di(ptr noundef getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), ptr noundef %6)
  %86 = fadd double %85, 1.000000e+00
  %87 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), align 8, !tbaa !21
  %88 = call double @sqrt(double noundef %87) #5
  %89 = fmul double %86, %88
  %90 = fdiv double %84, %89
  store double %90, ptr @chgsme_.q, align 8, !tbaa !12
  %91 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %92 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %93 = call double @llvm.fmuladd.f64(double %91, double %92, double 1.000000e+00)
  %94 = load double, ptr @chgsme_.q, align 8, !tbaa !12
  %95 = fmul double %94, 2.000000e+00
  %96 = fdiv double %93, %95
  store double %96, ptr @chgsme_.wp, align 8, !tbaa !12
  %97 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %98 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %99 = fadd double %97, %98
  %100 = load double, ptr @chgsme_.wp, align 8, !tbaa !12
  %101 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %102 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %103 = fsub double %101, %102
  %104 = fneg double %100
  %105 = call double @llvm.fmuladd.f64(double %104, double %103, double %99)
  %106 = fmul double %105, 5.000000e-01
  store double %106, ptr @chgsme_.sm2, align 8, !tbaa !12
  br label %107

107:                                              ; preds = %40, %39
  %108 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %109 = fmul double %108, 1.250000e+00
  %110 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %111 = fmul double %110, 1.250000e+00
  %112 = fcmp ole double %109, %111
  br i1 %112, label %113, label %116

113:                                              ; preds = %107
  %114 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %115 = fmul double %114, 1.250000e+00
  br label %119

116:                                              ; preds = %107
  %117 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %118 = fmul double %117, 1.250000e+00
  br label %119

119:                                              ; preds = %116, %113
  %120 = phi double [ %115, %113 ], [ %118, %116 ]
  %121 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %122 = fcmp ole double %120, %121
  br i1 %122, label %123, label %137

123:                                              ; preds = %119
  %124 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %125 = fmul double %124, 1.250000e+00
  %126 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %127 = fmul double %126, 1.250000e+00
  %128 = fcmp ole double %125, %127
  br i1 %128, label %129, label %132

129:                                              ; preds = %123
  %130 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %131 = fmul double %130, 1.250000e+00
  br label %135

132:                                              ; preds = %123
  %133 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %134 = fmul double %133, 1.250000e+00
  br label %135

135:                                              ; preds = %132, %129
  %136 = phi double [ %131, %129 ], [ %134, %132 ]
  br label %139

137:                                              ; preds = %119
  %138 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  br label %139

139:                                              ; preds = %137, %135
  %140 = phi double [ %136, %135 ], [ %138, %137 ]
  %141 = fcmp ole double %140, -1.000000e+00
  br i1 %141, label %142, label %176

142:                                              ; preds = %139
  %143 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %144 = fmul double %143, 1.250000e+00
  %145 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %146 = fmul double %145, 1.250000e+00
  %147 = fcmp ole double %144, %146
  br i1 %147, label %148, label %151

148:                                              ; preds = %142
  %149 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %150 = fmul double %149, 1.250000e+00
  br label %154

151:                                              ; preds = %142
  %152 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %153 = fmul double %152, 1.250000e+00
  br label %154

154:                                              ; preds = %151, %148
  %155 = phi double [ %150, %148 ], [ %153, %151 ]
  %156 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %157 = fcmp ole double %155, %156
  br i1 %157, label %158, label %172

158:                                              ; preds = %154
  %159 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %160 = fmul double %159, 1.250000e+00
  %161 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %162 = fmul double %161, 1.250000e+00
  %163 = fcmp ole double %160, %162
  br i1 %163, label %164, label %167

164:                                              ; preds = %158
  %165 = load double, ptr @chgsme_.sm1, align 8, !tbaa !12
  %166 = fmul double %165, 1.250000e+00
  br label %170

167:                                              ; preds = %158
  %168 = load double, ptr @chgsme_.sm2, align 8, !tbaa !12
  %169 = fmul double %168, 1.250000e+00
  br label %170

170:                                              ; preds = %167, %164
  %171 = phi double [ %166, %164 ], [ %169, %167 ]
  br label %174

172:                                              ; preds = %154
  %173 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  br label %174

174:                                              ; preds = %172, %170
  %175 = phi double [ %171, %170 ], [ %173, %172 ]
  br label %177

176:                                              ; preds = %139
  br label %177

177:                                              ; preds = %176, %174
  %178 = phi double [ %175, %174 ], [ -1.000000e+00, %176 ]
  store double %178, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %179 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %180 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %181 = fsub double %179, %180
  %182 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %183 = fsub double 2.000000e+00, %182
  %184 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %185 = fsub double %183, %184
  %186 = fdiv double %181, %185
  store double %186, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !22
  %187 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 2), align 8, !tbaa !20
  %188 = fsub double 2.000000e+00, %187
  %189 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 13), align 8, !tbaa !19
  %190 = fsub double %188, %189
  %191 = fdiv double 2.000000e+00, %190
  store double %191, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 6), align 8, !tbaa !23
  %192 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !22
  %193 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !22
  %194 = fneg double %192
  %195 = call double @llvm.fmuladd.f64(double %194, double %193, double 1.000000e+00)
  %196 = call double @sqrt(double noundef %195) #5
  %197 = fsub double 1.000000e+00, %196
  %198 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !22
  %199 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 12), align 8, !tbaa !22
  %200 = fneg double %198
  %201 = call double @llvm.fmuladd.f64(double %200, double %199, double 1.000000e+00)
  %202 = call double @sqrt(double noundef %201) #5
  %203 = fadd double %202, 1.000000e+00
  %204 = fdiv double %197, %203
  store double %204, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 11), align 8, !tbaa !21
  %205 = load i64, ptr @itcom1_, align 8, !tbaa !14
  store i64 %205, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 1), align 8, !tbaa !17
  %206 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !9
  store double %206, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 4), align 8, !tbaa !24
  store double 1.000000e+00, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 10), align 8, !tbaa !25
  store i64 1, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %207

207:                                              ; preds = %177, %34, %26, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %208 = load i64, ptr %3, align 8
  ret i64 %208
}

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

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

declare double @v3p_netlib_pow_dd(ptr noundef, ptr noundef) #3

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

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

declare double @v3p_netlib_pow_di(ptr noundef, ptr noundef) #3

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


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

@itcom1_ = external hidden local_unnamed_addr global %struct.anon, align 8
@itcom3_ = external hidden global %struct.anon.0, align 8
@chgsme_.q = external hidden local_unnamed_addr global double, align 8
@chgsme_.z = external hidden local_unnamed_addr global double, align 8
@chgsme_.ip = external hidden global i64, align 8
@chgsme_.rn = external hidden local_unnamed_addr global double, align 8
@chgsme_.wp = external hidden local_unnamed_addr global double, align 8
@chgsme_.sm1 = external hidden local_unnamed_addr global double, align 8
@chgsme_.sm2 = external hidden local_unnamed_addr global double, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i64 0, 2) i64 @chgsme_(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %6 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 24), align 8, !tbaa !5
  %7 = load double, ptr %0, align 8, !tbaa !10
  %8 = fdiv double %6, %7
  %9 = tail call double @sqrt(double noundef %8) #5
  store double %9, ptr @chgsme_.rn, align 8, !tbaa !10
  %10 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 64), align 8, !tbaa !11
  %11 = fcmp ogt double %10, 1.000000e+00
  %12 = fcmp ogt double %9, 1.000000e+00
  %or.cond = select i1 %11, i1 %12, i1 false
  br i1 %or.cond, label %13, label %107

13:                                               ; preds = %2
  %14 = load i64, ptr @itcom1_, align 8, !tbaa !12
  %15 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !15
  %16 = add nsw i64 %15, 2
  %.not = icmp sgt i64 %14, %16
  br i1 %.not, label %17, label %107

17:                                               ; preds = %13
  %18 = load i64, ptr %1, align 8, !tbaa !16
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %1, align 8, !tbaa !16
  %20 = icmp slt i64 %18, 2
  br i1 %20, label %107, label %21

21:                                               ; preds = %17
  store double 0.000000e+00, ptr @chgsme_.sm1, align 8, !tbaa !10
  store double 0.000000e+00, ptr @chgsme_.sm2, align 8, !tbaa !10
  %22 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !17
  %23 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !18
  %24 = fcmp ult double %22, %23
  br i1 %24, label %25, label %82

25:                                               ; preds = %21
  %26 = load i64, ptr @itcom1_, align 8, !tbaa !12
  %27 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !15
  %28 = sub nsw i64 %26, %27
  store i64 %28, ptr @chgsme_.ip, align 8, !tbaa !16
  %29 = tail call double @v3p_netlib_pow_di(ptr noundef nonnull getelementptr inbounds (i8, ptr @itcom3_, i64 88), ptr noundef nonnull @chgsme_.ip) #5
  %30 = fadd double %29, 1.000000e+00
  %31 = fmul double %10, %30
  %32 = tail call double @v3p_netlib_pow_di(ptr noundef nonnull getelementptr inbounds (i8, ptr @itcom3_, i64 88), ptr noundef nonnull @chgsme_.ip) #5
  %33 = tail call double @sqrt(double noundef %32) #5
  %34 = fmul double %33, 2.000000e+00
  %35 = fdiv double %31, %34
  store double %35, ptr @chgsme_.q, align 8, !tbaa !10
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %35, double -1.000000e+00)
  %37 = tail call double @sqrt(double noundef %36) #5
  %38 = fadd double %35, %37
  store double %38, ptr %4, align 8, !tbaa !10
  %39 = load i64, ptr @chgsme_.ip, align 8, !tbaa !16
  %40 = sitofp i64 %39 to float
  %41 = fpext float %40 to double
  %42 = fdiv double 1.000000e+00, %41
  store double %42, ptr %5, align 8, !tbaa !10
  %43 = call double @v3p_netlib_pow_dd(ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  store double %43, ptr @chgsme_.z, align 8, !tbaa !10
  %44 = call double @llvm.fmuladd.f64(double %43, double %43, double 1.000000e+00)
  %45 = fmul double %43, 2.000000e+00
  %46 = fdiv double %44, %45
  store double %46, ptr @chgsme_.wp, align 8, !tbaa !10
  %47 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !18
  %48 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !17
  %49 = fadd double %47, %48
  %50 = fsub double %47, %48
  %51 = fneg double %46
  %52 = call double @llvm.fmuladd.f64(double %51, double %50, double %49)
  %53 = fmul double %52, 5.000000e-01
  store double %53, ptr @chgsme_.sm1, align 8, !tbaa !10
  %54 = load i64, ptr @chgsme_.ip, align 8, !tbaa !16
  %55 = add nsw i64 %54, -1
  store i64 %55, ptr %3, align 8, !tbaa !16
  %56 = load double, ptr @chgsme_.rn, align 8, !tbaa !10
  %57 = call double @v3p_netlib_pow_di(ptr noundef nonnull getelementptr inbounds (i8, ptr @itcom3_, i64 88), ptr noundef nonnull @chgsme_.ip) #5
  %58 = call double @v3p_netlib_pow_di(ptr noundef nonnull getelementptr inbounds (i8, ptr @itcom3_, i64 88), ptr noundef nonnull %3) #5
  %59 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 88), align 8, !tbaa !19
  %60 = call double @sqrt(double noundef %59) #5
  %61 = insertelement <2 x double> poison, double %57, i64 0
  %62 = insertelement <2 x double> %61, double %58, i64 1
  %63 = fadd <2 x double> %62, <double 1.000000e+00, double 1.000000e+00>
  %64 = insertelement <2 x double> poison, double %56, i64 0
  %65 = insertelement <2 x double> %64, double %60, i64 1
  %66 = fmul <2 x double> %65, %63
  %67 = extractelement <2 x double> %66, i64 0
  %68 = extractelement <2 x double> %66, i64 1
  %69 = fdiv double %67, %68
  store double %69, ptr @chgsme_.q, align 8, !tbaa !10
  %70 = call double @llvm.fmuladd.f64(double %69, double %69, double 1.000000e+00)
  %71 = fmul double %69, 2.000000e+00
  %72 = fdiv double %70, %71
  store double %72, ptr @chgsme_.wp, align 8, !tbaa !10
  %73 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 16), align 8, !tbaa !18
  %74 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !17
  %75 = fadd double %73, %74
  %76 = fsub double %73, %74
  %77 = fneg double %72
  %78 = call double @llvm.fmuladd.f64(double %77, double %76, double %75)
  %79 = fmul double %78, 5.000000e-01
  store double %79, ptr @chgsme_.sm2, align 8, !tbaa !10
  %.pre = load double, ptr @chgsme_.sm1, align 8
  %80 = fmul double %.pre, 1.250000e+00
  %81 = fmul double %79, 1.250000e+00
  br label %82

82:                                               ; preds = %21, %25
  %83 = phi double [ %23, %21 ], [ %73, %25 ]
  %84 = phi double [ %22, %21 ], [ %74, %25 ]
  %85 = phi double [ 0.000000e+00, %21 ], [ %81, %25 ]
  %86 = phi double [ 0.000000e+00, %21 ], [ %80, %25 ]
  %87 = fcmp ole double %86, %85
  %88 = select i1 %87, double %86, double %85
  %.inv = fcmp ole double %88, %84
  %. = select i1 %.inv, double %88, double %84
  %.inv9 = fcmp ole double %., -1.000000e+00
  %89 = select i1 %.inv9, double %., double -1.000000e+00
  store double %89, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 104), align 8, !tbaa !17
  %90 = fsub double %83, %89
  %91 = fsub double 2.000000e+00, %83
  %92 = fsub double %91, %89
  %93 = fdiv double %90, %92
  store double %93, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !20
  %94 = fdiv double 2.000000e+00, %92
  store double %94, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 48), align 8, !tbaa !21
  %95 = fneg double %93
  %96 = call double @llvm.fmuladd.f64(double %95, double %93, double 1.000000e+00)
  %97 = call double @sqrt(double noundef %96) #5
  %98 = fsub double 1.000000e+00, %97
  %99 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 96), align 8, !tbaa !20
  %100 = fneg double %99
  %101 = call double @llvm.fmuladd.f64(double %100, double %99, double 1.000000e+00)
  %102 = call double @sqrt(double noundef %101) #5
  %103 = fadd double %102, 1.000000e+00
  %104 = fdiv double %98, %103
  store double %104, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 88), align 8, !tbaa !19
  %105 = load i64, ptr @itcom1_, align 8, !tbaa !12
  store i64 %105, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 8), align 8, !tbaa !15
  %106 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 24), align 8, !tbaa !5
  store double %106, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 32), align 8, !tbaa !22
  store double 1.000000e+00, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 80), align 8, !tbaa !23
  br label %107

107:                                              ; preds = %17, %13, %2, %82
  %.0 = phi i64 [ 1, %82 ], [ 0, %2 ], [ 0, %13 ], [ 0, %17 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i64 %.0
}

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

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

declare double @v3p_netlib_pow_dd(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

declare double @v3p_netlib_pow_di(ptr noundef, ptr noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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, !7, i64 24}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 64}
!12 = !{!13, !14, i64 0}
!13 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!14, !14, i64 0}
!17 = !{!6, !7, i64 104}
!18 = !{!6, !7, i64 16}
!19 = !{!6, !7, i64 88}
!20 = !{!6, !7, i64 96}
!21 = !{!6, !7, i64 48}
!22 = !{!6, !7, i64 32}
!23 = !{!6, !7, i64 80}


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