; 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
@pfsor1_.ii = external hidden global i64, align 8
@pfsor1_.jj = external hidden global i64, align 8
@pfsor1_.ui = external hidden global double, align 8
@pfsor1_.sum = external hidden global double, align 8
@pfsor1_.omm1 = external hidden global double, align 8
@pfsor1_.jajj = external hidden global i64, align 8
@pfsor1_.ibgn = external hidden global i64, align 8
@pfsor1_.iend = external hidden global i64, align 8
@pfsor1_.sumd = external hidden global double, align 8

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

; Function Attrs: nounwind uwtable
define dso_local i32 @pfsor1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %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 double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %14 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %15 = fsub double %14, 1.000000e+00
  store double %15, ptr @pfsor1_.omm1, align 8, !tbaa !12
  store double 0.000000e+00, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %16 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @itcom1_, i32 0, i32 2), align 8, !tbaa !13
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %6
  br label %95

19:                                               ; preds = %6
  store i64 0, ptr @pfsor1_.ii, align 8, !tbaa !16
  br label %20

20:                                               ; preds = %91, %19
  %21 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %24 = icmp slt i64 %21, %23
  br i1 %24, label %25, label %94

25:                                               ; preds = %20
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %28 = getelementptr inbounds i64, ptr %26, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = sub nsw i64 %29, 1
  store i64 %30, ptr @pfsor1_.ibgn, align 8, !tbaa !16
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %33 = add nsw i64 %32, 1
  %34 = getelementptr inbounds i64, ptr %31, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !16
  %36 = sub nsw i64 %35, 1
  store i64 %36, ptr @pfsor1_.iend, align 8, !tbaa !16
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %39 = getelementptr inbounds double, ptr %37, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !12
  store double %40, ptr @pfsor1_.sum, align 8, !tbaa !12
  %41 = load i64, ptr @pfsor1_.ibgn, align 8, !tbaa !16
  store i64 %41, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %42

42:                                               ; preds = %63, %25
  %43 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %44 = load i64, ptr @pfsor1_.iend, align 8, !tbaa !16
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %46, label %66

46:                                               ; preds = %42
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !16
  %51 = sub nsw i64 %50, 1
  store i64 %51, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !12
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load i64, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !12
  %60 = load double, ptr @pfsor1_.sum, align 8, !tbaa !12
  %61 = fneg double %55
  %62 = call double @llvm.fmuladd.f64(double %61, double %59, double %60)
  store double %62, ptr @pfsor1_.sum, align 8, !tbaa !12
  br label %63

63:                                               ; preds = %46
  %64 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %42, !llvm.loop !17

66:                                               ; preds = %42
  %67 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %68 = load double, ptr @pfsor1_.sum, align 8, !tbaa !12
  %69 = load double, ptr @pfsor1_.omm1, align 8, !tbaa !12
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = fmul double %69, %73
  %75 = fneg double %74
  %76 = call double @llvm.fmuladd.f64(double %67, double %68, double %75)
  store double %76, ptr @pfsor1_.ui, align 8, !tbaa !12
  %77 = load double, ptr @pfsor1_.ui, align 8, !tbaa !12
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !12
  %82 = fsub double %77, %81
  store double %82, ptr %13, align 8, !tbaa !12
  %83 = load double, ptr %13, align 8, !tbaa !12
  %84 = load double, ptr %13, align 8, !tbaa !12
  %85 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %86 = call double @llvm.fmuladd.f64(double %83, double %84, double %85)
  store double %86, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %87 = load double, ptr @pfsor1_.ui, align 8, !tbaa !12
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %90 = getelementptr inbounds double, ptr %88, i64 %89
  store double %87, ptr %90, align 8, !tbaa !12
  br label %91

91:                                               ; preds = %66
  %92 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr @pfsor1_.ii, align 8, !tbaa !16
  br label %20, !llvm.loop !19

94:                                               ; preds = %20
  br label %197

95:                                               ; preds = %18
  store i64 0, ptr @pfsor1_.ii, align 8, !tbaa !16
  br label %96

96:                                               ; preds = %193, %95
  %97 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !16
  %100 = icmp slt i64 %97, %99
  br i1 %100, label %101, label %196

101:                                              ; preds = %96
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %104 = getelementptr inbounds i64, ptr %102, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !16
  %106 = sub nsw i64 %105, 1
  store i64 %106, ptr @pfsor1_.ibgn, align 8, !tbaa !16
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %109 = add nsw i64 %108, 1
  %110 = getelementptr inbounds i64, ptr %107, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !16
  %112 = sub nsw i64 %111, 1
  store i64 %112, ptr @pfsor1_.iend, align 8, !tbaa !16
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !12
  store double %116, ptr @pfsor1_.sum, align 8, !tbaa !12
  %117 = load i64, ptr @pfsor1_.ibgn, align 8, !tbaa !16
  store i64 %117, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %118

118:                                              ; preds = %139, %101
  %119 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %120 = load i64, ptr @pfsor1_.iend, align 8, !tbaa !16
  %121 = icmp slt i64 %119, %120
  br i1 %121, label %122, label %142

122:                                              ; preds = %118
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %125 = getelementptr inbounds i64, ptr %123, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !16
  %127 = sub nsw i64 %126, 1
  store i64 %127, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %130 = getelementptr inbounds double, ptr %128, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load i64, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !12
  %136 = load double, ptr @pfsor1_.sum, align 8, !tbaa !12
  %137 = fneg double %131
  %138 = call double @llvm.fmuladd.f64(double %137, double %135, double %136)
  store double %138, ptr @pfsor1_.sum, align 8, !tbaa !12
  br label %139

139:                                              ; preds = %122
  %140 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %118, !llvm.loop !20

142:                                              ; preds = %118
  %143 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %144 = load double, ptr @pfsor1_.sum, align 8, !tbaa !12
  %145 = load double, ptr @pfsor1_.omm1, align 8, !tbaa !12
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = fmul double %145, %149
  %151 = fneg double %150
  %152 = call double @llvm.fmuladd.f64(double %143, double %144, double %151)
  store double %152, ptr @pfsor1_.ui, align 8, !tbaa !12
  %153 = load double, ptr @pfsor1_.ui, align 8, !tbaa !12
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !12
  %158 = fsub double %153, %157
  store double %158, ptr %13, align 8, !tbaa !12
  %159 = load double, ptr %13, align 8, !tbaa !12
  %160 = load double, ptr %13, align 8, !tbaa !12
  %161 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %162 = call double @llvm.fmuladd.f64(double %159, double %160, double %161)
  store double %162, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %163 = load double, ptr @pfsor1_.ui, align 8, !tbaa !12
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  store double %163, ptr %166, align 8, !tbaa !12
  %167 = load i64, ptr @pfsor1_.ibgn, align 8, !tbaa !16
  store i64 %167, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %168

168:                                              ; preds = %189, %142
  %169 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %170 = load i64, ptr @pfsor1_.iend, align 8, !tbaa !16
  %171 = icmp slt i64 %169, %170
  br i1 %171, label %172, label %192

172:                                              ; preds = %168
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %175 = getelementptr inbounds i64, ptr %173, i64 %174
  %176 = load i64, ptr %175, align 8, !tbaa !16
  %177 = sub nsw i64 %176, 1
  store i64 %177, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !12
  %182 = load double, ptr @pfsor1_.ui, align 8, !tbaa !12
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = load i64, ptr @pfsor1_.jajj, align 8, !tbaa !16
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !12
  %187 = fneg double %181
  %188 = call double @llvm.fmuladd.f64(double %187, double %182, double %186)
  store double %188, ptr %185, align 8, !tbaa !12
  br label %189

189:                                              ; preds = %172
  %190 = load i64, ptr @pfsor1_.jj, align 8, !tbaa !16
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr @pfsor1_.jj, align 8, !tbaa !16
  br label %168, !llvm.loop !21

192:                                              ; preds = %168
  br label %193

193:                                              ; preds = %192
  %194 = load i64, ptr @pfsor1_.ii, align 8, !tbaa !16
  %195 = add nsw i64 %194, 1
  store i64 %195, ptr @pfsor1_.ii, align 8, !tbaa !16
  br label %96, !llvm.loop !22

196:                                              ; preds = %96
  br label %197

197:                                              ; preds = %196, %94
  %198 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !12
  %199 = call double @sqrt(double noundef %198) #4
  store double %199, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 3), align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret i32 0
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 56}
!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 = !{!14, !15, i64 16}
!14 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!15 = !{!"long", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = !{!10, !11, i64 24}


; 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 local_unnamed_addr global %struct.anon.0, align 8
@pfsor1_.ii = external hidden local_unnamed_addr global i64, align 8
@pfsor1_.jj = external hidden local_unnamed_addr global i64, align 8
@pfsor1_.ui = external hidden local_unnamed_addr global double, align 8
@pfsor1_.sum = external hidden local_unnamed_addr global double, align 8
@pfsor1_.omm1 = external hidden local_unnamed_addr global double, align 8
@pfsor1_.jajj = external hidden local_unnamed_addr global i64, align 8
@pfsor1_.ibgn = external hidden local_unnamed_addr global i64, align 8
@pfsor1_.iend = external hidden local_unnamed_addr global i64, align 8
@pfsor1_.sumd = external hidden local_unnamed_addr global double, align 8

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef i32 @pfsor1_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4, ptr nocapture noundef %5) local_unnamed_addr #0 {
  %7 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %8 = fadd double %7, -1.000000e+00
  store double %8, ptr @pfsor1_.omm1, align 8, !tbaa !10
  store double 0.000000e+00, ptr @pfsor1_.sumd, align 8, !tbaa !10
  %9 = load i64, ptr getelementptr inbounds (i8, ptr @itcom1_, i64 16), align 8, !tbaa !11
  %10 = icmp eq i64 %9, 0
  store i64 0, ptr @pfsor1_.ii, align 8, !tbaa !14
  %11 = load i64, ptr %0, align 8, !tbaa !14
  %12 = icmp sgt i64 %11, 0
  br i1 %10, label %.preheader, label %.preheader35

.preheader35:                                     ; preds = %6
  br i1 %12, label %.lr.ph39, label %.loopexit

.preheader:                                       ; preds = %6
  br i1 %12, label %.lr.ph50, label %.loopexit

.lr.ph39:                                         ; preds = %.preheader35, %._crit_edge
  %storemerge38 = phi i64 [ %66, %._crit_edge ], [ 0, %.preheader35 ]
  %13 = getelementptr inbounds i64, ptr %1, i64 %storemerge38
  %14 = load i64, ptr %13, align 8, !tbaa !14
  %15 = add nsw i64 %14, -1
  store i64 %15, ptr @pfsor1_.ibgn, align 8, !tbaa !14
  %16 = getelementptr i8, ptr %13, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !14
  %18 = add i64 %17, -1
  store i64 %18, ptr @pfsor1_.iend, align 8, !tbaa !14
  %19 = getelementptr inbounds double, ptr %5, i64 %storemerge38
  %20 = load double, ptr %19, align 8, !tbaa !10
  store double %20, ptr @pfsor1_.sum, align 8, !tbaa !10
  store i64 %15, ptr @pfsor1_.jj, align 8, !tbaa !14
  %21 = icmp slt i64 %14, %17
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph39
  %22 = sub i64 %17, %14
  %.neg = add i64 %14, 1
  %xtraiter = and i64 %22, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %23 = getelementptr inbounds i64, ptr %2, i64 %15
  %24 = load i64, ptr %23, align 8, !tbaa !14
  %25 = add nsw i64 %24, -1
  store i64 %25, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %26 = getelementptr inbounds double, ptr %3, i64 %15
  %27 = load double, ptr %26, align 8, !tbaa !10
  %28 = getelementptr inbounds double, ptr %4, i64 %25
  %29 = load double, ptr %28, align 8, !tbaa !10
  %30 = fneg double %27
  %31 = tail call double @llvm.fmuladd.f64(double %30, double %29, double %20)
  store double %31, ptr @pfsor1_.sum, align 8, !tbaa !10
  store i64 %14, ptr @pfsor1_.jj, align 8, !tbaa !14
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa59.unr = phi double [ poison, %.lr.ph.preheader ], [ %31, %.lr.ph.prol ]
  %storemerge3137.unr = phi i64 [ %15, %.lr.ph.preheader ], [ %14, %.lr.ph.prol ]
  %.unr = phi double [ %20, %.lr.ph.preheader ], [ %31, %.lr.ph.prol ]
  %32 = icmp eq i64 %17, %.neg
  br i1 %32, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %storemerge3137 = phi i64 [ %53, %.lr.ph ], [ %storemerge3137.unr, %.lr.ph.prol.loopexit ]
  %33 = phi double [ %52, %.lr.ph ], [ %.unr, %.lr.ph.prol.loopexit ]
  %34 = getelementptr inbounds i64, ptr %2, i64 %storemerge3137
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = add nsw i64 %35, -1
  store i64 %36, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %37 = getelementptr inbounds double, ptr %3, i64 %storemerge3137
  %38 = load double, ptr %37, align 8, !tbaa !10
  %39 = getelementptr inbounds double, ptr %4, i64 %36
  %40 = load double, ptr %39, align 8, !tbaa !10
  %41 = fneg double %38
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %40, double %33)
  store double %42, ptr @pfsor1_.sum, align 8, !tbaa !10
  %43 = add nsw i64 %storemerge3137, 1
  store i64 %43, ptr @pfsor1_.jj, align 8, !tbaa !14
  %44 = getelementptr inbounds i64, ptr %2, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !14
  %46 = add nsw i64 %45, -1
  store i64 %46, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %47 = getelementptr inbounds double, ptr %3, i64 %43
  %48 = load double, ptr %47, align 8, !tbaa !10
  %49 = getelementptr inbounds double, ptr %4, i64 %46
  %50 = load double, ptr %49, align 8, !tbaa !10
  %51 = fneg double %48
  %52 = tail call double @llvm.fmuladd.f64(double %51, double %50, double %42)
  store double %52, ptr @pfsor1_.sum, align 8, !tbaa !10
  %53 = add nsw i64 %storemerge3137, 2
  store i64 %53, ptr @pfsor1_.jj, align 8, !tbaa !14
  %exitcond.not.1 = icmp eq i64 %53, %18
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph39
  %54 = phi double [ %20, %.lr.ph39 ], [ %.lcssa59.unr, %.lr.ph.prol.loopexit ], [ %52, %.lr.ph ]
  %55 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %56 = load double, ptr @pfsor1_.omm1, align 8, !tbaa !10
  %57 = getelementptr inbounds double, ptr %4, i64 %storemerge38
  %58 = load double, ptr %57, align 8, !tbaa !10
  %59 = fneg double %56
  %60 = fmul double %58, %59
  %61 = tail call double @llvm.fmuladd.f64(double %55, double %54, double %60)
  store double %61, ptr @pfsor1_.ui, align 8, !tbaa !10
  %62 = load double, ptr %57, align 8, !tbaa !10
  %63 = fsub double %61, %62
  %64 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !10
  %65 = tail call double @llvm.fmuladd.f64(double %63, double %63, double %64)
  store double %65, ptr @pfsor1_.sumd, align 8, !tbaa !10
  store double %61, ptr %57, align 8, !tbaa !10
  %66 = add nuw nsw i64 %storemerge38, 1
  store i64 %66, ptr @pfsor1_.ii, align 8, !tbaa !14
  %67 = load i64, ptr %0, align 8, !tbaa !14
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %.lr.ph39, label %.loopexit, !llvm.loop !17

.lr.ph50:                                         ; preds = %.preheader, %._crit_edge48
  %storemerge3249 = phi i64 [ %156, %._crit_edge48 ], [ 0, %.preheader ]
  %69 = getelementptr inbounds i64, ptr %1, i64 %storemerge3249
  %70 = load i64, ptr %69, align 8, !tbaa !14
  %71 = add nsw i64 %70, -1
  store i64 %71, ptr @pfsor1_.ibgn, align 8, !tbaa !14
  %72 = getelementptr i8, ptr %69, i64 8
  %73 = load i64, ptr %72, align 8, !tbaa !14
  %74 = add i64 %73, -1
  store i64 %74, ptr @pfsor1_.iend, align 8, !tbaa !14
  %75 = getelementptr inbounds double, ptr %5, i64 %storemerge3249
  %76 = load double, ptr %75, align 8, !tbaa !10
  store double %76, ptr @pfsor1_.sum, align 8, !tbaa !10
  store i64 %71, ptr @pfsor1_.jj, align 8, !tbaa !14
  %77 = icmp slt i64 %70, %73
  br i1 %77, label %.lr.ph43.preheader, label %._crit_edge44

.lr.ph43.preheader:                               ; preds = %.lr.ph50
  %78 = sub i64 %73, %70
  %.neg65 = add i64 %70, 1
  %xtraiter60 = and i64 %78, 1
  %lcmp.mod61.not = icmp eq i64 %xtraiter60, 0
  br i1 %lcmp.mod61.not, label %.lr.ph43.prol.loopexit, label %.lr.ph43.prol

.lr.ph43.prol:                                    ; preds = %.lr.ph43.preheader
  %79 = getelementptr inbounds i64, ptr %2, i64 %71
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = add nsw i64 %80, -1
  store i64 %81, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %82 = getelementptr inbounds double, ptr %3, i64 %71
  %83 = load double, ptr %82, align 8, !tbaa !10
  %84 = getelementptr inbounds double, ptr %4, i64 %81
  %85 = load double, ptr %84, align 8, !tbaa !10
  %86 = fneg double %83
  %87 = tail call double @llvm.fmuladd.f64(double %86, double %85, double %76)
  store double %87, ptr @pfsor1_.sum, align 8, !tbaa !10
  store i64 %70, ptr @pfsor1_.jj, align 8, !tbaa !14
  br label %.lr.ph43.prol.loopexit

.lr.ph43.prol.loopexit:                           ; preds = %.lr.ph43.prol, %.lr.ph43.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph43.preheader ], [ %87, %.lr.ph43.prol ]
  %storemerge3341.unr = phi i64 [ %71, %.lr.ph43.preheader ], [ %70, %.lr.ph43.prol ]
  %.unr62 = phi double [ %76, %.lr.ph43.preheader ], [ %87, %.lr.ph43.prol ]
  %88 = icmp eq i64 %73, %.neg65
  br i1 %88, label %._crit_edge44, label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph43.prol.loopexit, %.lr.ph43
  %storemerge3341 = phi i64 [ %109, %.lr.ph43 ], [ %storemerge3341.unr, %.lr.ph43.prol.loopexit ]
  %89 = phi double [ %108, %.lr.ph43 ], [ %.unr62, %.lr.ph43.prol.loopexit ]
  %90 = getelementptr inbounds i64, ptr %2, i64 %storemerge3341
  %91 = load i64, ptr %90, align 8, !tbaa !14
  %92 = add nsw i64 %91, -1
  store i64 %92, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %93 = getelementptr inbounds double, ptr %3, i64 %storemerge3341
  %94 = load double, ptr %93, align 8, !tbaa !10
  %95 = getelementptr inbounds double, ptr %4, i64 %92
  %96 = load double, ptr %95, align 8, !tbaa !10
  %97 = fneg double %94
  %98 = tail call double @llvm.fmuladd.f64(double %97, double %96, double %89)
  store double %98, ptr @pfsor1_.sum, align 8, !tbaa !10
  %99 = add nsw i64 %storemerge3341, 1
  store i64 %99, ptr @pfsor1_.jj, align 8, !tbaa !14
  %100 = getelementptr inbounds i64, ptr %2, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !14
  %102 = add nsw i64 %101, -1
  store i64 %102, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %103 = getelementptr inbounds double, ptr %3, i64 %99
  %104 = load double, ptr %103, align 8, !tbaa !10
  %105 = getelementptr inbounds double, ptr %4, i64 %102
  %106 = load double, ptr %105, align 8, !tbaa !10
  %107 = fneg double %104
  %108 = tail call double @llvm.fmuladd.f64(double %107, double %106, double %98)
  store double %108, ptr @pfsor1_.sum, align 8, !tbaa !10
  %109 = add nsw i64 %storemerge3341, 2
  store i64 %109, ptr @pfsor1_.jj, align 8, !tbaa !14
  %exitcond52.not.1 = icmp eq i64 %109, %74
  br i1 %exitcond52.not.1, label %._crit_edge44, label %.lr.ph43, !llvm.loop !18

._crit_edge44:                                    ; preds = %.lr.ph43.prol.loopexit, %.lr.ph43, %.lr.ph50
  %110 = phi double [ %76, %.lr.ph50 ], [ %.lcssa.unr, %.lr.ph43.prol.loopexit ], [ %108, %.lr.ph43 ]
  %111 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %112 = load double, ptr @pfsor1_.omm1, align 8, !tbaa !10
  %113 = getelementptr inbounds double, ptr %4, i64 %storemerge3249
  %114 = load double, ptr %113, align 8, !tbaa !10
  %115 = fneg double %112
  %116 = fmul double %114, %115
  %117 = tail call double @llvm.fmuladd.f64(double %111, double %110, double %116)
  store double %117, ptr @pfsor1_.ui, align 8, !tbaa !10
  %118 = load double, ptr %113, align 8, !tbaa !10
  %119 = fsub double %117, %118
  %120 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !10
  %121 = tail call double @llvm.fmuladd.f64(double %119, double %119, double %120)
  store double %121, ptr @pfsor1_.sumd, align 8, !tbaa !10
  store double %117, ptr %113, align 8, !tbaa !10
  store i64 %71, ptr @pfsor1_.jj, align 8, !tbaa !14
  br i1 %77, label %.lr.ph47.preheader, label %._crit_edge48

.lr.ph47.preheader:                               ; preds = %._crit_edge44
  %122 = sub i64 %73, %70
  %.neg66 = add i64 %70, 1
  %xtraiter63 = and i64 %122, 1
  %lcmp.mod64.not = icmp eq i64 %xtraiter63, 0
  br i1 %lcmp.mod64.not, label %.lr.ph47.prol.loopexit, label %.lr.ph47.prol

.lr.ph47.prol:                                    ; preds = %.lr.ph47.preheader
  %123 = getelementptr inbounds i64, ptr %2, i64 %71
  %124 = load i64, ptr %123, align 8, !tbaa !14
  %125 = add nsw i64 %124, -1
  store i64 %125, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %126 = getelementptr inbounds double, ptr %3, i64 %71
  %127 = load double, ptr %126, align 8, !tbaa !10
  %128 = load double, ptr @pfsor1_.ui, align 8, !tbaa !10
  %129 = getelementptr inbounds double, ptr %5, i64 %125
  %130 = load double, ptr %129, align 8, !tbaa !10
  %131 = fneg double %127
  %132 = tail call double @llvm.fmuladd.f64(double %131, double %128, double %130)
  store double %132, ptr %129, align 8, !tbaa !10
  store i64 %70, ptr @pfsor1_.jj, align 8, !tbaa !14
  br label %.lr.ph47.prol.loopexit

.lr.ph47.prol.loopexit:                           ; preds = %.lr.ph47.prol, %.lr.ph47.preheader
  %storemerge3445.unr = phi i64 [ %71, %.lr.ph47.preheader ], [ %70, %.lr.ph47.prol ]
  %133 = icmp eq i64 %73, %.neg66
  br i1 %133, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %.lr.ph47.prol.loopexit, %.lr.ph47
  %storemerge3445 = phi i64 [ %155, %.lr.ph47 ], [ %storemerge3445.unr, %.lr.ph47.prol.loopexit ]
  %134 = getelementptr inbounds i64, ptr %2, i64 %storemerge3445
  %135 = load i64, ptr %134, align 8, !tbaa !14
  %136 = add nsw i64 %135, -1
  store i64 %136, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %137 = getelementptr inbounds double, ptr %3, i64 %storemerge3445
  %138 = load double, ptr %137, align 8, !tbaa !10
  %139 = load double, ptr @pfsor1_.ui, align 8, !tbaa !10
  %140 = getelementptr inbounds double, ptr %5, i64 %136
  %141 = load double, ptr %140, align 8, !tbaa !10
  %142 = fneg double %138
  %143 = tail call double @llvm.fmuladd.f64(double %142, double %139, double %141)
  store double %143, ptr %140, align 8, !tbaa !10
  %144 = add nsw i64 %storemerge3445, 1
  store i64 %144, ptr @pfsor1_.jj, align 8, !tbaa !14
  %145 = getelementptr inbounds i64, ptr %2, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !14
  %147 = add nsw i64 %146, -1
  store i64 %147, ptr @pfsor1_.jajj, align 8, !tbaa !14
  %148 = getelementptr inbounds double, ptr %3, i64 %144
  %149 = load double, ptr %148, align 8, !tbaa !10
  %150 = load double, ptr @pfsor1_.ui, align 8, !tbaa !10
  %151 = getelementptr inbounds double, ptr %5, i64 %147
  %152 = load double, ptr %151, align 8, !tbaa !10
  %153 = fneg double %149
  %154 = tail call double @llvm.fmuladd.f64(double %153, double %150, double %152)
  store double %154, ptr %151, align 8, !tbaa !10
  %155 = add nsw i64 %storemerge3445, 2
  store i64 %155, ptr @pfsor1_.jj, align 8, !tbaa !14
  %exitcond53.not.1 = icmp eq i64 %155, %74
  br i1 %exitcond53.not.1, label %._crit_edge48, label %.lr.ph47, !llvm.loop !19

._crit_edge48:                                    ; preds = %.lr.ph47.prol.loopexit, %.lr.ph47, %._crit_edge44
  %156 = add nuw nsw i64 %storemerge3249, 1
  store i64 %156, ptr @pfsor1_.ii, align 8, !tbaa !14
  %157 = load i64, ptr %0, align 8, !tbaa !14
  %158 = icmp slt i64 %156, %157
  br i1 %158, label %.lr.ph50, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge48, %.preheader35, %.preheader
  %159 = load double, ptr @pfsor1_.sumd, align 8, !tbaa !10
  %160 = tail call double @sqrt(double noundef %159) #3
  store double %160, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 24), align 8, !tbaa !21
  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 = { nofree nounwind 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 56}
!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 = !{!12, !13, i64 16}
!12 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!13 = !{!"long", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = !{!6, !7, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass