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

; Function Attrs: nounwind uwtable
define dso_local i32 @pfsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %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 @pfsor_.omm1, 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 %85

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

20:                                               ; preds = %81, %19
  %21 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %22 = load ptr, ptr %8, 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 %84

25:                                               ; preds = %20
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i64, ptr @pfsor_.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 @pfsor_.ibgn, align 8, !tbaa !16
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i64, ptr @pfsor_.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 @pfsor_.iend, align 8, !tbaa !16
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load i64, ptr @pfsor_.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 @pfsor_.sum, align 8, !tbaa !12
  %41 = load i64, ptr @pfsor_.ibgn, align 8, !tbaa !16
  store i64 %41, ptr @pfsor_.jj, align 8, !tbaa !16
  br label %42

42:                                               ; preds = %63, %25
  %43 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %44 = load i64, ptr @pfsor_.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 %10, align 8, !tbaa !5
  %48 = load i64, ptr @pfsor_.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 @pfsor_.jajj, align 8, !tbaa !16
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load i64, ptr @pfsor_.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 %12, align 8, !tbaa !5
  %57 = load i64, ptr @pfsor_.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 @pfsor_.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 @pfsor_.sum, align 8, !tbaa !12
  br label %63

63:                                               ; preds = %46
  %64 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr @pfsor_.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 @pfsor_.sum, align 8, !tbaa !12
  %69 = load double, ptr @pfsor_.omm1, align 8, !tbaa !12
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i64, ptr @pfsor_.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 @pfsor_.ui, align 8, !tbaa !12
  %77 = load double, ptr @pfsor_.ui, align 8, !tbaa !12
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  store double %77, ptr %80, align 8, !tbaa !12
  br label %81

81:                                               ; preds = %66
  %82 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr @pfsor_.ii, align 8, !tbaa !16
  br label %20, !llvm.loop !19

84:                                               ; preds = %20
  store i32 0, ptr %7, align 4
  br label %177

85:                                               ; preds = %18
  store i64 0, ptr @pfsor_.ii, align 8, !tbaa !16
  br label %86

86:                                               ; preds = %173, %85
  %87 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !16
  %90 = icmp slt i64 %87, %89
  br i1 %90, label %91, label %176

91:                                               ; preds = %86
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %94 = getelementptr inbounds i64, ptr %92, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !16
  %96 = sub nsw i64 %95, 1
  store i64 %96, ptr @pfsor_.ibgn, align 8, !tbaa !16
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %99 = add nsw i64 %98, 1
  %100 = getelementptr inbounds i64, ptr %97, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !16
  %102 = sub nsw i64 %101, 1
  store i64 %102, ptr @pfsor_.iend, align 8, !tbaa !16
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !12
  store double %106, ptr @pfsor_.sum, align 8, !tbaa !12
  %107 = load i64, ptr @pfsor_.ibgn, align 8, !tbaa !16
  store i64 %107, ptr @pfsor_.jj, align 8, !tbaa !16
  br label %108

108:                                              ; preds = %129, %91
  %109 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %110 = load i64, ptr @pfsor_.iend, align 8, !tbaa !16
  %111 = icmp slt i64 %109, %110
  br i1 %111, label %112, label %132

112:                                              ; preds = %108
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %115 = getelementptr inbounds i64, ptr %113, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !16
  %117 = sub nsw i64 %116, 1
  store i64 %117, ptr @pfsor_.jajj, align 8, !tbaa !16
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !12
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load i64, ptr @pfsor_.jajj, align 8, !tbaa !16
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !12
  %126 = load double, ptr @pfsor_.sum, align 8, !tbaa !12
  %127 = fneg double %121
  %128 = call double @llvm.fmuladd.f64(double %127, double %125, double %126)
  store double %128, ptr @pfsor_.sum, align 8, !tbaa !12
  br label %129

129:                                              ; preds = %112
  %130 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr @pfsor_.jj, align 8, !tbaa !16
  br label %108, !llvm.loop !20

132:                                              ; preds = %108
  %133 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %134 = load double, ptr @pfsor_.sum, align 8, !tbaa !12
  %135 = load double, ptr @pfsor_.omm1, align 8, !tbaa !12
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %138 = getelementptr inbounds double, ptr %136, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !12
  %140 = fmul double %135, %139
  %141 = fneg double %140
  %142 = call double @llvm.fmuladd.f64(double %133, double %134, double %141)
  store double %142, ptr @pfsor_.ui, align 8, !tbaa !12
  %143 = load double, ptr @pfsor_.ui, align 8, !tbaa !12
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  store double %143, ptr %146, align 8, !tbaa !12
  %147 = load i64, ptr @pfsor_.ibgn, align 8, !tbaa !16
  store i64 %147, ptr @pfsor_.jj, align 8, !tbaa !16
  br label %148

148:                                              ; preds = %169, %132
  %149 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %150 = load i64, ptr @pfsor_.iend, align 8, !tbaa !16
  %151 = icmp slt i64 %149, %150
  br i1 %151, label %152, label %172

152:                                              ; preds = %148
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %155 = getelementptr inbounds i64, ptr %153, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !16
  %157 = sub nsw i64 %156, 1
  store i64 %157, ptr @pfsor_.jajj, align 8, !tbaa !16
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !12
  %162 = load double, ptr @pfsor_.ui, align 8, !tbaa !12
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i64, ptr @pfsor_.jajj, align 8, !tbaa !16
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !12
  %167 = fneg double %161
  %168 = call double @llvm.fmuladd.f64(double %167, double %162, double %166)
  store double %168, ptr %165, align 8, !tbaa !12
  br label %169

169:                                              ; preds = %152
  %170 = load i64, ptr @pfsor_.jj, align 8, !tbaa !16
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr @pfsor_.jj, align 8, !tbaa !16
  br label %148, !llvm.loop !21

172:                                              ; preds = %148
  br label %173

173:                                              ; preds = %172
  %174 = load i64, ptr @pfsor_.ii, align 8, !tbaa !16
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr @pfsor_.ii, align 8, !tbaa !16
  br label %86, !llvm.loop !22

176:                                              ; preds = %86
  store i32 0, ptr %7, align 4
  br label %177

177:                                              ; preds = %176, %84
  %178 = load i32, ptr %7, align 4
  ret i32 %178
}

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

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 speculatable willreturn memory(none) }

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


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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @pfsor_(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 @pfsor_.omm1, 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 @pfsor_.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 %.preheader29

.preheader29:                                     ; preds = %6
  br i1 %12, label %.lr.ph33, label %.loopexit

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

.lr.ph33:                                         ; preds = %.preheader29, %._crit_edge
  %storemerge32 = phi i64 [ %62, %._crit_edge ], [ 0, %.preheader29 ]
  %13 = getelementptr inbounds i64, ptr %1, i64 %storemerge32
  %14 = load i64, ptr %13, align 8, !tbaa !14
  %15 = add nsw i64 %14, -1
  store i64 %15, ptr @pfsor_.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 @pfsor_.iend, align 8, !tbaa !14
  %19 = getelementptr inbounds double, ptr %5, i64 %storemerge32
  %20 = load double, ptr %19, align 8, !tbaa !10
  store double %20, ptr @pfsor_.sum, align 8, !tbaa !10
  store i64 %15, ptr @pfsor_.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.ph33
  %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 @pfsor_.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 @pfsor_.sum, align 8, !tbaa !10
  store i64 %14, ptr @pfsor_.jj, align 8, !tbaa !14
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa53.unr = phi double [ poison, %.lr.ph.preheader ], [ %31, %.lr.ph.prol ]
  %storemerge2531.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
  %storemerge2531 = phi i64 [ %53, %.lr.ph ], [ %storemerge2531.unr, %.lr.ph.prol.loopexit ]
  %33 = phi double [ %52, %.lr.ph ], [ %.unr, %.lr.ph.prol.loopexit ]
  %34 = getelementptr inbounds i64, ptr %2, i64 %storemerge2531
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = add nsw i64 %35, -1
  store i64 %36, ptr @pfsor_.jajj, align 8, !tbaa !14
  %37 = getelementptr inbounds double, ptr %3, i64 %storemerge2531
  %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 @pfsor_.sum, align 8, !tbaa !10
  %43 = add nsw i64 %storemerge2531, 1
  store i64 %43, ptr @pfsor_.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 @pfsor_.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 @pfsor_.sum, align 8, !tbaa !10
  %53 = add nsw i64 %storemerge2531, 2
  store i64 %53, ptr @pfsor_.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.ph33
  %54 = phi double [ %20, %.lr.ph33 ], [ %.lcssa53.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 @pfsor_.omm1, align 8, !tbaa !10
  %57 = getelementptr inbounds double, ptr %4, i64 %storemerge32
  %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 @pfsor_.ui, align 8, !tbaa !10
  store double %61, ptr %57, align 8, !tbaa !10
  %62 = add nuw nsw i64 %storemerge32, 1
  store i64 %62, ptr @pfsor_.ii, align 8, !tbaa !14
  %63 = load i64, ptr %0, align 8, !tbaa !14
  %64 = icmp slt i64 %62, %63
  br i1 %64, label %.lr.ph33, label %.loopexit, !llvm.loop !17

.lr.ph44:                                         ; preds = %.preheader, %._crit_edge42
  %storemerge2643 = phi i64 [ %155, %._crit_edge42 ], [ 0, %.preheader ]
  %65 = getelementptr inbounds i64, ptr %1, i64 %storemerge2643
  %66 = load i64, ptr %65, align 8, !tbaa !14
  %67 = add nsw i64 %66, -1
  store i64 %67, ptr @pfsor_.ibgn, align 8, !tbaa !14
  %68 = getelementptr i8, ptr %65, i64 8
  %69 = load i64, ptr %68, align 8, !tbaa !14
  %70 = add i64 %69, -1
  store i64 %70, ptr @pfsor_.iend, align 8, !tbaa !14
  %71 = getelementptr inbounds double, ptr %5, i64 %storemerge2643
  %72 = load double, ptr %71, align 8, !tbaa !10
  store double %72, ptr @pfsor_.sum, align 8, !tbaa !10
  store i64 %67, ptr @pfsor_.jj, align 8, !tbaa !14
  %73 = icmp slt i64 %66, %69
  br i1 %73, label %.lr.ph37.preheader, label %._crit_edge42.critedge

.lr.ph37.preheader:                               ; preds = %.lr.ph44
  %74 = sub i64 %69, %66
  %75 = xor i64 %66, -1
  %76 = add i64 %69, %75
  %xtraiter54 = and i64 %74, 1
  %lcmp.mod55.not = icmp eq i64 %xtraiter54, 0
  br i1 %lcmp.mod55.not, label %.lr.ph37.prol.loopexit, label %.lr.ph37.prol

.lr.ph37.prol:                                    ; preds = %.lr.ph37.preheader
  %77 = getelementptr inbounds i64, ptr %2, i64 %67
  %78 = load i64, ptr %77, align 8, !tbaa !14
  %79 = add nsw i64 %78, -1
  store i64 %79, ptr @pfsor_.jajj, align 8, !tbaa !14
  %80 = getelementptr inbounds double, ptr %3, i64 %67
  %81 = load double, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds double, ptr %4, i64 %79
  %83 = load double, ptr %82, align 8, !tbaa !10
  %84 = fneg double %81
  %85 = tail call double @llvm.fmuladd.f64(double %84, double %83, double %72)
  store double %85, ptr @pfsor_.sum, align 8, !tbaa !10
  store i64 %66, ptr @pfsor_.jj, align 8, !tbaa !14
  br label %.lr.ph37.prol.loopexit

.lr.ph37.prol.loopexit:                           ; preds = %.lr.ph37.prol, %.lr.ph37.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph37.preheader ], [ %85, %.lr.ph37.prol ]
  %storemerge2735.unr = phi i64 [ %67, %.lr.ph37.preheader ], [ %66, %.lr.ph37.prol ]
  %.unr56 = phi double [ %72, %.lr.ph37.preheader ], [ %85, %.lr.ph37.prol ]
  %86 = icmp eq i64 %76, 0
  br i1 %86, label %._crit_edge38, label %.lr.ph37

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

._crit_edge38:                                    ; preds = %.lr.ph37, %.lr.ph37.prol.loopexit
  %.lcssa = phi double [ %.lcssa.unr, %.lr.ph37.prol.loopexit ], [ %106, %.lr.ph37 ]
  %108 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %109 = load double, ptr @pfsor_.omm1, align 8, !tbaa !10
  %110 = getelementptr inbounds double, ptr %4, i64 %storemerge2643
  %111 = load double, ptr %110, align 8, !tbaa !10
  %112 = fneg double %109
  %113 = fmul double %111, %112
  %114 = tail call double @llvm.fmuladd.f64(double %108, double %.lcssa, double %113)
  store double %114, ptr @pfsor_.ui, align 8, !tbaa !10
  store double %114, ptr %110, align 8, !tbaa !10
  store i64 %67, ptr @pfsor_.jj, align 8, !tbaa !14
  br i1 %73, label %.lr.ph41.preheader, label %._crit_edge42

.lr.ph41.preheader:                               ; preds = %._crit_edge38
  %xtraiter57 = and i64 %74, 1
  %lcmp.mod58.not = icmp eq i64 %xtraiter57, 0
  br i1 %lcmp.mod58.not, label %.lr.ph41.prol.loopexit, label %.lr.ph41.prol

.lr.ph41.prol:                                    ; preds = %.lr.ph41.preheader
  %115 = getelementptr inbounds i64, ptr %2, i64 %67
  %116 = load i64, ptr %115, align 8, !tbaa !14
  %117 = add nsw i64 %116, -1
  store i64 %117, ptr @pfsor_.jajj, align 8, !tbaa !14
  %118 = getelementptr inbounds double, ptr %3, i64 %67
  %119 = load double, ptr %118, align 8, !tbaa !10
  %120 = load double, ptr @pfsor_.ui, align 8, !tbaa !10
  %121 = getelementptr inbounds double, ptr %5, i64 %117
  %122 = load double, ptr %121, align 8, !tbaa !10
  %123 = fneg double %119
  %124 = tail call double @llvm.fmuladd.f64(double %123, double %120, double %122)
  store double %124, ptr %121, align 8, !tbaa !10
  store i64 %66, ptr @pfsor_.jj, align 8, !tbaa !14
  br label %.lr.ph41.prol.loopexit

.lr.ph41.prol.loopexit:                           ; preds = %.lr.ph41.prol, %.lr.ph41.preheader
  %storemerge2839.unr = phi i64 [ %67, %.lr.ph41.preheader ], [ %66, %.lr.ph41.prol ]
  %125 = icmp eq i64 %76, 0
  br i1 %125, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %.lr.ph41.prol.loopexit, %.lr.ph41
  %storemerge2839 = phi i64 [ %147, %.lr.ph41 ], [ %storemerge2839.unr, %.lr.ph41.prol.loopexit ]
  %126 = getelementptr inbounds i64, ptr %2, i64 %storemerge2839
  %127 = load i64, ptr %126, align 8, !tbaa !14
  %128 = add nsw i64 %127, -1
  store i64 %128, ptr @pfsor_.jajj, align 8, !tbaa !14
  %129 = getelementptr inbounds double, ptr %3, i64 %storemerge2839
  %130 = load double, ptr %129, align 8, !tbaa !10
  %131 = load double, ptr @pfsor_.ui, align 8, !tbaa !10
  %132 = getelementptr inbounds double, ptr %5, i64 %128
  %133 = load double, ptr %132, align 8, !tbaa !10
  %134 = fneg double %130
  %135 = tail call double @llvm.fmuladd.f64(double %134, double %131, double %133)
  store double %135, ptr %132, align 8, !tbaa !10
  %136 = add nsw i64 %storemerge2839, 1
  store i64 %136, ptr @pfsor_.jj, align 8, !tbaa !14
  %137 = getelementptr inbounds i64, ptr %2, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !14
  %139 = add nsw i64 %138, -1
  store i64 %139, ptr @pfsor_.jajj, align 8, !tbaa !14
  %140 = getelementptr inbounds double, ptr %3, i64 %136
  %141 = load double, ptr %140, align 8, !tbaa !10
  %142 = load double, ptr @pfsor_.ui, align 8, !tbaa !10
  %143 = getelementptr inbounds double, ptr %5, i64 %139
  %144 = load double, ptr %143, align 8, !tbaa !10
  %145 = fneg double %141
  %146 = tail call double @llvm.fmuladd.f64(double %145, double %142, double %144)
  store double %146, ptr %143, align 8, !tbaa !10
  %147 = add nsw i64 %storemerge2839, 2
  store i64 %147, ptr @pfsor_.jj, align 8, !tbaa !14
  %exitcond47.not.1 = icmp eq i64 %147, %70
  br i1 %exitcond47.not.1, label %._crit_edge42, label %.lr.ph41, !llvm.loop !19

._crit_edge42.critedge:                           ; preds = %.lr.ph44
  %148 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %149 = load double, ptr @pfsor_.omm1, align 8, !tbaa !10
  %150 = getelementptr inbounds double, ptr %4, i64 %storemerge2643
  %151 = load double, ptr %150, align 8, !tbaa !10
  %152 = fneg double %149
  %153 = fmul double %151, %152
  %154 = tail call double @llvm.fmuladd.f64(double %148, double %72, double %153)
  store double %154, ptr @pfsor_.ui, align 8, !tbaa !10
  store double %154, ptr %150, align 8, !tbaa !10
  store i64 %67, ptr @pfsor_.jj, align 8, !tbaa !14
  br label %._crit_edge42

._crit_edge42:                                    ; preds = %.lr.ph41.prol.loopexit, %.lr.ph41, %._crit_edge42.critedge, %._crit_edge38
  %155 = add nuw nsw i64 %storemerge2643, 1
  store i64 %155, ptr @pfsor_.ii, align 8, !tbaa !14
  %156 = load i64, ptr %0, align 8, !tbaa !14
  %157 = icmp slt i64 %155, %156
  br i1 %157, label %.lr.ph44, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge42, %.preheader29, %.preheader
  ret i32 0
}

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

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

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


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