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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @pbsor_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %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 @pbsor_.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 %89

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

20:                                               ; preds = %85, %19
  %21 = load i64, ptr @pbsor_.i, 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 %88

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

47:                                               ; preds = %68, %25
  %48 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %49 = load i64, ptr @pbsor_.iend, align 8, !tbaa !16
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %51, label %71

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

68:                                               ; preds = %51
  %69 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %70 = add nsw i64 %69, 1
  store i64 %70, ptr @pbsor_.jj, align 8, !tbaa !16
  br label %47, !llvm.loop !17

71:                                               ; preds = %47
  %72 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %73 = load double, ptr @pbsor_.sum, align 8, !tbaa !12
  %74 = load double, ptr @pbsor_.omm1, align 8, !tbaa !12
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !12
  %79 = fmul double %74, %78
  %80 = fneg double %79
  %81 = call double @llvm.fmuladd.f64(double %72, double %73, double %80)
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %84 = getelementptr inbounds double, ptr %82, i64 %83
  store double %81, ptr %84, align 8, !tbaa !12
  br label %85

85:                                               ; preds = %71
  %86 = load i64, ptr @pbsor_.i, align 8, !tbaa !16
  %87 = add nsw i64 %86, 1
  store i64 %87, ptr @pbsor_.i, align 8, !tbaa !16
  br label %20, !llvm.loop !19

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

89:                                               ; preds = %18
  store i64 0, ptr @pbsor_.ii, align 8, !tbaa !16
  br label %90

90:                                               ; preds = %137, %89
  %91 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !16
  %94 = icmp slt i64 %91, %93
  br i1 %94, label %95, label %140

95:                                               ; preds = %90
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !12
  store double %99, ptr @pbsor_.ui, align 8, !tbaa !12
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %102 = getelementptr inbounds i64, ptr %100, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !16
  %104 = sub nsw i64 %103, 1
  store i64 %104, ptr @pbsor_.ibgn, align 8, !tbaa !16
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %107 = add nsw i64 %106, 1
  %108 = getelementptr inbounds i64, ptr %105, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !16
  %110 = sub nsw i64 %109, 1
  store i64 %110, ptr @pbsor_.iend, align 8, !tbaa !16
  %111 = load i64, ptr @pbsor_.ibgn, align 8, !tbaa !16
  store i64 %111, ptr @pbsor_.jj, align 8, !tbaa !16
  br label %112

112:                                              ; preds = %133, %95
  %113 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %114 = load i64, ptr @pbsor_.iend, align 8, !tbaa !16
  %115 = icmp slt i64 %113, %114
  br i1 %115, label %116, label %136

116:                                              ; preds = %112
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %119 = getelementptr inbounds i64, ptr %117, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !16
  %121 = sub nsw i64 %120, 1
  store i64 %121, ptr @pbsor_.jajj, align 8, !tbaa !16
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load i64, ptr @pbsor_.jj, 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 @pbsor_.ui, align 8, !tbaa !12
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = load i64, ptr @pbsor_.jajj, align 8, !tbaa !16
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !12
  %131 = fneg double %125
  %132 = call double @llvm.fmuladd.f64(double %131, double %126, double %130)
  store double %132, ptr %129, align 8, !tbaa !12
  br label %133

133:                                              ; preds = %116
  %134 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr @pbsor_.jj, align 8, !tbaa !16
  br label %112, !llvm.loop !20

136:                                              ; preds = %112
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr @pbsor_.ii, align 8, !tbaa !16
  br label %90, !llvm.loop !21

140:                                              ; preds = %90
  store i64 0, ptr @pbsor_.i, align 8, !tbaa !16
  br label %141

141:                                              ; preds = %206, %140
  %142 = load i64, ptr @pbsor_.i, align 8, !tbaa !16
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !16
  %145 = icmp slt i64 %142, %144
  br i1 %145, label %146, label %209

146:                                              ; preds = %141
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !16
  %149 = load i64, ptr @pbsor_.i, align 8, !tbaa !16
  %150 = sub nsw i64 %148, %149
  %151 = sub nsw i64 %150, 1
  store i64 %151, ptr @pbsor_.ii, align 8, !tbaa !16
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %154 = getelementptr inbounds i64, ptr %152, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !16
  %156 = sub nsw i64 %155, 1
  store i64 %156, ptr @pbsor_.ibgn, align 8, !tbaa !16
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %159 = add nsw i64 %158, 1
  %160 = getelementptr inbounds i64, ptr %157, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !16
  %162 = sub nsw i64 %161, 1
  store i64 %162, ptr @pbsor_.iend, align 8, !tbaa !16
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !12
  store double %166, ptr @pbsor_.sum, align 8, !tbaa !12
  %167 = load i64, ptr @pbsor_.ibgn, align 8, !tbaa !16
  store i64 %167, ptr @pbsor_.jj, align 8, !tbaa !16
  br label %168

168:                                              ; preds = %189, %146
  %169 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %170 = load i64, ptr @pbsor_.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 %10, align 8, !tbaa !5
  %174 = load i64, ptr @pbsor_.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 @pbsor_.jajj, align 8, !tbaa !16
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load i64, ptr @pbsor_.jj, align 8, !tbaa !16
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !12
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = load i64, ptr @pbsor_.jajj, align 8, !tbaa !16
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !12
  %186 = load double, ptr @pbsor_.sum, align 8, !tbaa !12
  %187 = fneg double %181
  %188 = call double @llvm.fmuladd.f64(double %187, double %185, double %186)
  store double %188, ptr @pbsor_.sum, align 8, !tbaa !12
  br label %189

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

192:                                              ; preds = %168
  %193 = load double, ptr getelementptr inbounds (%struct.anon.0, ptr @itcom3_, i32 0, i32 7), align 8, !tbaa !9
  %194 = load double, ptr @pbsor_.sum, align 8, !tbaa !12
  %195 = load double, ptr @pbsor_.omm1, align 8, !tbaa !12
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !12
  %200 = fmul double %195, %199
  %201 = fneg double %200
  %202 = call double @llvm.fmuladd.f64(double %193, double %194, double %201)
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = load i64, ptr @pbsor_.ii, align 8, !tbaa !16
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  store double %202, ptr %205, align 8, !tbaa !12
  br label %206

206:                                              ; preds = %192
  %207 = load i64, ptr @pbsor_.i, align 8, !tbaa !16
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr @pbsor_.i, align 8, !tbaa !16
  br label %141, !llvm.loop !23

209:                                              ; preds = %141
  store i32 0, ptr %7, align 4
  br label %210

210:                                              ; preds = %209, %88
  %211 = load i32, ptr %7, align 4
  ret i32 %211
}

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

!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 = distinct !{!23, !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
@pbsor_.i = external hidden local_unnamed_addr global i64, align 8
@pbsor_.ii = external hidden local_unnamed_addr global i64, align 8
@pbsor_.jj = external hidden local_unnamed_addr global i64, align 8
@pbsor_.ui = external hidden local_unnamed_addr global double, align 8
@pbsor_.sum = external hidden local_unnamed_addr global double, align 8
@pbsor_.omm1 = external hidden local_unnamed_addr global double, align 8
@pbsor_.jajj = external hidden local_unnamed_addr global i64, align 8
@pbsor_.ibgn = external hidden local_unnamed_addr global i64, align 8
@pbsor_.iend = external hidden local_unnamed_addr global i64, align 8

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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @pbsor_(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 #1 {
  %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 @pbsor_.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
  br i1 %10, label %.preheader39, label %.preheader40

.preheader40:                                     ; preds = %6
  store i64 0, ptr @pbsor_.i, align 8, !tbaa !14
  %11 = load i64, ptr %0, align 8, !tbaa !14
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph44, label %.loopexit

.preheader39:                                     ; preds = %6
  store i64 0, ptr @pbsor_.ii, align 8, !tbaa !14
  %13 = load i64, ptr %0, align 8, !tbaa !14
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.lr.ph50, label %.preheader

.lr.ph44:                                         ; preds = %.preheader40, %._crit_edge
  %15 = phi i64 [ %69, %._crit_edge ], [ %11, %.preheader40 ]
  %storemerge43 = phi i64 [ %68, %._crit_edge ], [ 0, %.preheader40 ]
  %16 = xor i64 %storemerge43, -1
  %17 = add i64 %15, %16
  store i64 %17, ptr @pbsor_.ii, align 8, !tbaa !14
  %18 = getelementptr inbounds i64, ptr %1, i64 %17
  %19 = load i64, ptr %18, align 8, !tbaa !14
  %20 = add nsw i64 %19, -1
  store i64 %20, ptr @pbsor_.ibgn, align 8, !tbaa !14
  %21 = sub i64 %15, %storemerge43
  %22 = getelementptr inbounds i64, ptr %1, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !14
  %24 = add i64 %23, -1
  store i64 %24, ptr @pbsor_.iend, align 8, !tbaa !14
  %25 = getelementptr inbounds double, ptr %5, i64 %17
  %26 = load double, ptr %25, align 8, !tbaa !10
  store double %26, ptr @pbsor_.sum, align 8, !tbaa !10
  store i64 %20, ptr @pbsor_.jj, align 8, !tbaa !14
  %27 = icmp slt i64 %19, %23
  br i1 %27, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph44
  %28 = sub i64 %23, %19
  %.neg = add i64 %19, 1
  %xtraiter = and i64 %28, 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
  %29 = getelementptr inbounds i64, ptr %2, i64 %20
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = add nsw i64 %30, -1
  store i64 %31, ptr @pbsor_.jajj, align 8, !tbaa !14
  %32 = getelementptr inbounds double, ptr %3, i64 %20
  %33 = load double, ptr %32, align 8, !tbaa !10
  %34 = getelementptr inbounds double, ptr %4, i64 %31
  %35 = load double, ptr %34, align 8, !tbaa !10
  %36 = fneg double %33
  %37 = tail call double @llvm.fmuladd.f64(double %36, double %35, double %26)
  store double %37, ptr @pbsor_.sum, align 8, !tbaa !10
  store i64 %19, ptr @pbsor_.jj, align 8, !tbaa !14
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa66.unr = phi double [ poison, %.lr.ph.preheader ], [ %37, %.lr.ph.prol ]
  %storemerge3442.unr = phi i64 [ %20, %.lr.ph.preheader ], [ %19, %.lr.ph.prol ]
  %.unr = phi double [ %26, %.lr.ph.preheader ], [ %37, %.lr.ph.prol ]
  %38 = icmp eq i64 %23, %.neg
  br i1 %38, label %._crit_edge, label %.lr.ph

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

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph44
  %60 = phi double [ %26, %.lr.ph44 ], [ %.lcssa66.unr, %.lr.ph.prol.loopexit ], [ %58, %.lr.ph ]
  %61 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %62 = load double, ptr @pbsor_.omm1, align 8, !tbaa !10
  %63 = getelementptr inbounds double, ptr %4, i64 %17
  %64 = load double, ptr %63, align 8, !tbaa !10
  %65 = fneg double %62
  %66 = fmul double %64, %65
  %67 = tail call double @llvm.fmuladd.f64(double %61, double %60, double %66)
  store double %67, ptr %63, align 8, !tbaa !10
  %68 = add nuw nsw i64 %storemerge43, 1
  store i64 %68, ptr @pbsor_.i, align 8, !tbaa !14
  %69 = load i64, ptr %0, align 8, !tbaa !14
  %70 = icmp slt i64 %68, %69
  br i1 %70, label %.lr.ph44, label %.loopexit, !llvm.loop !17

.preheader:                                       ; preds = %._crit_edge48, %.preheader39
  store i64 0, ptr @pbsor_.i, align 8, !tbaa !14
  %71 = load i64, ptr %0, align 8, !tbaa !14
  %72 = icmp sgt i64 %71, 0
  br i1 %72, label %.lr.ph57, label %.loopexit

.lr.ph50:                                         ; preds = %.preheader39, %._crit_edge48
  %storemerge3549 = phi i64 [ %116, %._crit_edge48 ], [ 0, %.preheader39 ]
  %73 = getelementptr inbounds double, ptr %4, i64 %storemerge3549
  %74 = load double, ptr %73, align 8, !tbaa !10
  store double %74, ptr @pbsor_.ui, align 8, !tbaa !10
  %75 = getelementptr inbounds i64, ptr %1, i64 %storemerge3549
  %76 = load i64, ptr %75, align 8, !tbaa !14
  %77 = add nsw i64 %76, -1
  store i64 %77, ptr @pbsor_.ibgn, align 8, !tbaa !14
  %78 = getelementptr i8, ptr %75, i64 8
  %79 = load i64, ptr %78, align 8, !tbaa !14
  %80 = add i64 %79, -1
  store i64 %80, ptr @pbsor_.iend, align 8, !tbaa !14
  store i64 %77, ptr @pbsor_.jj, align 8, !tbaa !14
  %81 = icmp slt i64 %76, %79
  br i1 %81, label %.lr.ph47.preheader, label %._crit_edge48

.lr.ph47.preheader:                               ; preds = %.lr.ph50
  %82 = sub i64 %79, %76
  %.neg72 = add i64 %76, 1
  %xtraiter67 = and i64 %82, 1
  %lcmp.mod68.not = icmp eq i64 %xtraiter67, 0
  br i1 %lcmp.mod68.not, label %.lr.ph47.prol.loopexit, label %.lr.ph47.prol

.lr.ph47.prol:                                    ; preds = %.lr.ph47.preheader
  %83 = getelementptr inbounds i64, ptr %2, i64 %77
  %84 = load i64, ptr %83, align 8, !tbaa !14
  %85 = add nsw i64 %84, -1
  store i64 %85, ptr @pbsor_.jajj, align 8, !tbaa !14
  %86 = getelementptr inbounds double, ptr %3, i64 %77
  %87 = load double, ptr %86, align 8, !tbaa !10
  %88 = load double, ptr @pbsor_.ui, align 8, !tbaa !10
  %89 = getelementptr inbounds double, ptr %5, i64 %85
  %90 = load double, ptr %89, align 8, !tbaa !10
  %91 = fneg double %87
  %92 = tail call double @llvm.fmuladd.f64(double %91, double %88, double %90)
  store double %92, ptr %89, align 8, !tbaa !10
  store i64 %76, ptr @pbsor_.jj, align 8, !tbaa !14
  br label %.lr.ph47.prol.loopexit

.lr.ph47.prol.loopexit:                           ; preds = %.lr.ph47.prol, %.lr.ph47.preheader
  %storemerge3845.unr = phi i64 [ %77, %.lr.ph47.preheader ], [ %76, %.lr.ph47.prol ]
  %93 = icmp eq i64 %79, %.neg72
  br i1 %93, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %.lr.ph47.prol.loopexit, %.lr.ph47
  %storemerge3845 = phi i64 [ %115, %.lr.ph47 ], [ %storemerge3845.unr, %.lr.ph47.prol.loopexit ]
  %94 = getelementptr inbounds i64, ptr %2, i64 %storemerge3845
  %95 = load i64, ptr %94, align 8, !tbaa !14
  %96 = add nsw i64 %95, -1
  store i64 %96, ptr @pbsor_.jajj, align 8, !tbaa !14
  %97 = getelementptr inbounds double, ptr %3, i64 %storemerge3845
  %98 = load double, ptr %97, align 8, !tbaa !10
  %99 = load double, ptr @pbsor_.ui, align 8, !tbaa !10
  %100 = getelementptr inbounds double, ptr %5, i64 %96
  %101 = load double, ptr %100, align 8, !tbaa !10
  %102 = fneg double %98
  %103 = tail call double @llvm.fmuladd.f64(double %102, double %99, double %101)
  store double %103, ptr %100, align 8, !tbaa !10
  %104 = add nsw i64 %storemerge3845, 1
  store i64 %104, ptr @pbsor_.jj, align 8, !tbaa !14
  %105 = getelementptr inbounds i64, ptr %2, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !14
  %107 = add nsw i64 %106, -1
  store i64 %107, ptr @pbsor_.jajj, align 8, !tbaa !14
  %108 = getelementptr inbounds double, ptr %3, i64 %104
  %109 = load double, ptr %108, align 8, !tbaa !10
  %110 = load double, ptr @pbsor_.ui, align 8, !tbaa !10
  %111 = getelementptr inbounds double, ptr %5, i64 %107
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = fneg double %109
  %114 = tail call double @llvm.fmuladd.f64(double %113, double %110, double %112)
  store double %114, ptr %111, align 8, !tbaa !10
  %115 = add nsw i64 %storemerge3845, 2
  store i64 %115, ptr @pbsor_.jj, align 8, !tbaa !14
  %exitcond59.not.1 = icmp eq i64 %115, %80
  br i1 %exitcond59.not.1, label %._crit_edge48, label %.lr.ph47, !llvm.loop !18

._crit_edge48:                                    ; preds = %.lr.ph47.prol.loopexit, %.lr.ph47, %.lr.ph50
  %116 = add nuw nsw i64 %storemerge3549, 1
  store i64 %116, ptr @pbsor_.ii, align 8, !tbaa !14
  %117 = load i64, ptr %0, align 8, !tbaa !14
  %118 = icmp slt i64 %116, %117
  br i1 %118, label %.lr.ph50, label %.preheader, !llvm.loop !19

.lr.ph57:                                         ; preds = %.preheader, %._crit_edge55
  %119 = phi i64 [ %173, %._crit_edge55 ], [ %71, %.preheader ]
  %storemerge3656 = phi i64 [ %172, %._crit_edge55 ], [ 0, %.preheader ]
  %120 = xor i64 %storemerge3656, -1
  %121 = add i64 %119, %120
  store i64 %121, ptr @pbsor_.ii, align 8, !tbaa !14
  %122 = getelementptr inbounds i64, ptr %1, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !14
  %124 = add nsw i64 %123, -1
  store i64 %124, ptr @pbsor_.ibgn, align 8, !tbaa !14
  %125 = sub i64 %119, %storemerge3656
  %126 = getelementptr inbounds i64, ptr %1, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !14
  %128 = add i64 %127, -1
  store i64 %128, ptr @pbsor_.iend, align 8, !tbaa !14
  %129 = getelementptr inbounds double, ptr %5, i64 %121
  %130 = load double, ptr %129, align 8, !tbaa !10
  store double %130, ptr @pbsor_.sum, align 8, !tbaa !10
  store i64 %124, ptr @pbsor_.jj, align 8, !tbaa !14
  %131 = icmp slt i64 %123, %127
  br i1 %131, label %.lr.ph54.preheader, label %._crit_edge55

.lr.ph54.preheader:                               ; preds = %.lr.ph57
  %132 = sub i64 %127, %123
  %.neg73 = add i64 %123, 1
  %xtraiter69 = and i64 %132, 1
  %lcmp.mod70.not = icmp eq i64 %xtraiter69, 0
  br i1 %lcmp.mod70.not, label %.lr.ph54.prol.loopexit, label %.lr.ph54.prol

.lr.ph54.prol:                                    ; preds = %.lr.ph54.preheader
  %133 = getelementptr inbounds i64, ptr %2, i64 %124
  %134 = load i64, ptr %133, align 8, !tbaa !14
  %135 = add nsw i64 %134, -1
  store i64 %135, ptr @pbsor_.jajj, align 8, !tbaa !14
  %136 = getelementptr inbounds double, ptr %3, i64 %124
  %137 = load double, ptr %136, align 8, !tbaa !10
  %138 = getelementptr inbounds double, ptr %4, i64 %135
  %139 = load double, ptr %138, align 8, !tbaa !10
  %140 = fneg double %137
  %141 = tail call double @llvm.fmuladd.f64(double %140, double %139, double %130)
  store double %141, ptr @pbsor_.sum, align 8, !tbaa !10
  store i64 %123, ptr @pbsor_.jj, align 8, !tbaa !14
  br label %.lr.ph54.prol.loopexit

.lr.ph54.prol.loopexit:                           ; preds = %.lr.ph54.prol, %.lr.ph54.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph54.preheader ], [ %141, %.lr.ph54.prol ]
  %storemerge3752.unr = phi i64 [ %124, %.lr.ph54.preheader ], [ %123, %.lr.ph54.prol ]
  %.unr71 = phi double [ %130, %.lr.ph54.preheader ], [ %141, %.lr.ph54.prol ]
  %142 = icmp eq i64 %127, %.neg73
  br i1 %142, label %._crit_edge55, label %.lr.ph54

.lr.ph54:                                         ; preds = %.lr.ph54.prol.loopexit, %.lr.ph54
  %storemerge3752 = phi i64 [ %163, %.lr.ph54 ], [ %storemerge3752.unr, %.lr.ph54.prol.loopexit ]
  %143 = phi double [ %162, %.lr.ph54 ], [ %.unr71, %.lr.ph54.prol.loopexit ]
  %144 = getelementptr inbounds i64, ptr %2, i64 %storemerge3752
  %145 = load i64, ptr %144, align 8, !tbaa !14
  %146 = add nsw i64 %145, -1
  store i64 %146, ptr @pbsor_.jajj, align 8, !tbaa !14
  %147 = getelementptr inbounds double, ptr %3, i64 %storemerge3752
  %148 = load double, ptr %147, align 8, !tbaa !10
  %149 = getelementptr inbounds double, ptr %4, i64 %146
  %150 = load double, ptr %149, align 8, !tbaa !10
  %151 = fneg double %148
  %152 = tail call double @llvm.fmuladd.f64(double %151, double %150, double %143)
  store double %152, ptr @pbsor_.sum, align 8, !tbaa !10
  %153 = add nsw i64 %storemerge3752, 1
  store i64 %153, ptr @pbsor_.jj, align 8, !tbaa !14
  %154 = getelementptr inbounds i64, ptr %2, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !14
  %156 = add nsw i64 %155, -1
  store i64 %156, ptr @pbsor_.jajj, align 8, !tbaa !14
  %157 = getelementptr inbounds double, ptr %3, i64 %153
  %158 = load double, ptr %157, align 8, !tbaa !10
  %159 = getelementptr inbounds double, ptr %4, i64 %156
  %160 = load double, ptr %159, align 8, !tbaa !10
  %161 = fneg double %158
  %162 = tail call double @llvm.fmuladd.f64(double %161, double %160, double %152)
  store double %162, ptr @pbsor_.sum, align 8, !tbaa !10
  %163 = add nsw i64 %storemerge3752, 2
  store i64 %163, ptr @pbsor_.jj, align 8, !tbaa !14
  %exitcond60.not.1 = icmp eq i64 %163, %128
  br i1 %exitcond60.not.1, label %._crit_edge55, label %.lr.ph54, !llvm.loop !20

._crit_edge55:                                    ; preds = %.lr.ph54.prol.loopexit, %.lr.ph54, %.lr.ph57
  %164 = phi double [ %130, %.lr.ph57 ], [ %.lcssa.unr, %.lr.ph54.prol.loopexit ], [ %162, %.lr.ph54 ]
  %165 = load double, ptr getelementptr inbounds (i8, ptr @itcom3_, i64 56), align 8, !tbaa !5
  %166 = load double, ptr @pbsor_.omm1, align 8, !tbaa !10
  %167 = getelementptr inbounds double, ptr %4, i64 %121
  %168 = load double, ptr %167, align 8, !tbaa !10
  %169 = fneg double %166
  %170 = fmul double %168, %169
  %171 = tail call double @llvm.fmuladd.f64(double %165, double %164, double %170)
  store double %171, ptr %167, align 8, !tbaa !10
  %172 = add nuw nsw i64 %storemerge3656, 1
  store i64 %172, ptr @pbsor_.i, align 8, !tbaa !14
  %173 = load i64, ptr %0, align 8, !tbaa !14
  %174 = icmp slt i64 %172, %173
  br i1 %174, label %.lr.ph57, label %.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge55, %.preheader40, %.preheader
  ret i32 0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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" }

!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 = distinct !{!21, !16}


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