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

@unscal_.di = external hidden global double, align 8
@unscal_.ii = external hidden global i64, align 8
@unscal_.jj = external hidden global i64, align 8
@unscal_.is = external hidden global i64, align 8
@unscal_.jajj = external hidden global i64, align 8
@unscal_.ibgn = external hidden global i64, align 8
@unscal_.iend = external hidden global i64, align 8
@unscal_.jjpi = external hidden global i64, align 8
@unscal_.inew = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @unscal_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %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
  %14 = 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
  store ptr %6, ptr %14, align 8, !tbaa !5
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !9
  br label %15

15:                                               ; preds = %41, %7
  %16 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = icmp slt i64 %16, %18
  br i1 %19, label %20, label %44

20:                                               ; preds = %15
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  %22 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %23 = getelementptr inbounds double, ptr %21, i64 %22
  %24 = load double, ptr %23, align 8, !tbaa !11
  store double %24, ptr @unscal_.di, align 8, !tbaa !11
  %25 = load double, ptr @unscal_.di, align 8, !tbaa !11
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  %27 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %28 = getelementptr inbounds double, ptr %26, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = fdiv double %29, %25
  store double %30, ptr %28, align 8, !tbaa !11
  %31 = load double, ptr @unscal_.di, align 8, !tbaa !11
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %32, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fmul double %35, %31
  store double %36, ptr %34, align 8, !tbaa !11
  %37 = load double, ptr @unscal_.di, align 8, !tbaa !11
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %40 = getelementptr inbounds double, ptr %38, i64 %39
  store double %37, ptr %40, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %20
  %42 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr @unscal_.ii, align 8, !tbaa !9
  br label %15, !llvm.loop !13

44:                                               ; preds = %15
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %92, %44
  %46 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp slt i64 %46, %48
  br i1 %49, label %50, label %95

50:                                               ; preds = %45
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %53 = getelementptr inbounds i64, ptr %51, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = sub nsw i64 %54, 1
  store i64 %55, ptr @unscal_.ibgn, align 8, !tbaa !9
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %58 = add nsw i64 %57, 1
  %59 = getelementptr inbounds i64, ptr %56, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = sub nsw i64 %60, 1
  store i64 %61, ptr @unscal_.iend, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  store double %65, ptr @unscal_.di, align 8, !tbaa !11
  %66 = load i64, ptr @unscal_.ibgn, align 8, !tbaa !9
  store i64 %66, ptr @unscal_.jj, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %88, %50
  %68 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %69 = load i64, ptr @unscal_.iend, align 8, !tbaa !9
  %70 = icmp slt i64 %68, %69
  br i1 %70, label %71, label %91

71:                                               ; preds = %67
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %74 = getelementptr inbounds i64, ptr %72, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !9
  store i64 %75, ptr @unscal_.jajj, align 8, !tbaa !9
  %76 = load double, ptr @unscal_.di, align 8, !tbaa !11
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load i64, ptr @unscal_.jajj, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fmul double %76, %81
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = fmul double %86, %82
  store double %87, ptr %85, align 8, !tbaa !11
  br label %88

88:                                               ; preds = %71
  %89 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr @unscal_.jj, align 8, !tbaa !9
  br label %67, !llvm.loop !15

91:                                               ; preds = %67
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr @unscal_.ii, align 8, !tbaa !9
  br label %45, !llvm.loop !16

95:                                               ; preds = %45
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %175, %95
  %97 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp slt i64 %97, %99
  br i1 %100, label %101, label %178

101:                                              ; preds = %96
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %104 = getelementptr inbounds i64, ptr %102, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = sub nsw i64 %105, 1
  store i64 %106, ptr @unscal_.ibgn, align 8, !tbaa !9
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  %110 = getelementptr inbounds i64, ptr %107, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = sub nsw i64 %111, 1
  store i64 %112, ptr @unscal_.iend, align 8, !tbaa !9
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %116 = sub nsw i64 %114, %115
  %117 = sub nsw i64 %116, 1
  store i64 %117, ptr @unscal_.is, align 8, !tbaa !9
  %118 = load i64, ptr @unscal_.ibgn, align 8, !tbaa !9
  %119 = load i64, ptr @unscal_.is, align 8, !tbaa !9
  %120 = sub nsw i64 %118, %119
  %121 = sub nsw i64 %120, 1
  store i64 %121, ptr @unscal_.inew, align 8, !tbaa !9
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fmul double %125, %129
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load i64, ptr @unscal_.inew, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double %130, ptr %133, align 8, !tbaa !11
  %134 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i64, ptr @unscal_.inew, align 8, !tbaa !9
  %138 = getelementptr inbounds i64, ptr %136, i64 %137
  store i64 %135, ptr %138, align 8, !tbaa !9
  %139 = load i64, ptr @unscal_.is, align 8, !tbaa !9
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %169

141:                                              ; preds = %101
  %142 = load i64, ptr @unscal_.ibgn, align 8, !tbaa !9
  store i64 %142, ptr @unscal_.jj, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %165, %141
  %144 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %145 = load i64, ptr @unscal_.iend, align 8, !tbaa !9
  %146 = icmp slt i64 %144, %145
  br i1 %146, label %147, label %168

147:                                              ; preds = %143
  %148 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %149 = load i64, ptr @unscal_.is, align 8, !tbaa !9
  %150 = sub nsw i64 %148, %149
  store i64 %150, ptr @unscal_.jjpi, align 8, !tbaa !9
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load i64, ptr @unscal_.jjpi, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  store double %154, ptr %157, align 8, !tbaa !11
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %160 = getelementptr inbounds i64, ptr %158, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i64, ptr @unscal_.jjpi, align 8, !tbaa !9
  %164 = getelementptr inbounds i64, ptr %162, i64 %163
  store i64 %161, ptr %164, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %147
  %166 = load i64, ptr @unscal_.jj, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr @unscal_.jj, align 8, !tbaa !9
  br label %143, !llvm.loop !17

168:                                              ; preds = %143
  br label %169

169:                                              ; preds = %168, %101
  %170 = load i64, ptr @unscal_.inew, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %174 = getelementptr inbounds i64, ptr %172, i64 %173
  store i64 %171, ptr %174, align 8, !tbaa !9
  br label %175

175:                                              ; preds = %169
  %176 = load i64, ptr @unscal_.ii, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr @unscal_.ii, align 8, !tbaa !9
  br label %96, !llvm.loop !18

178:                                              ; preds = %96
  ret i32 0
}

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

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

@unscal_.di = external hidden local_unnamed_addr global double, align 8
@unscal_.ii = external hidden local_unnamed_addr global i64, align 8
@unscal_.jj = external hidden local_unnamed_addr global i64, align 8
@unscal_.is = external hidden local_unnamed_addr global i64, align 8
@unscal_.jajj = external hidden local_unnamed_addr global i64, align 8
@unscal_.ibgn = external hidden local_unnamed_addr global i64, align 8
@unscal_.iend = external hidden local_unnamed_addr global i64, align 8
@unscal_.jjpi = external hidden local_unnamed_addr global i64, align 8
@unscal_.inew = 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 @unscal_(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !5
  %8 = load i64, ptr %0, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %.preheader33

.preheader33:                                     ; preds = %.lr.ph, %7
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !5
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph38, label %.preheader

.lr.ph38:                                         ; preds = %.preheader33
  %invariant.gep = getelementptr i8, ptr %6, i64 -8
  br label %28

.lr.ph:                                           ; preds = %7, %.lr.ph
  %storemerge34 = phi i64 [ %23, %.lr.ph ], [ 0, %7 ]
  %12 = getelementptr inbounds double, ptr %3, i64 %storemerge34
  %13 = load double, ptr %12, align 8, !tbaa !9
  store double %13, ptr @unscal_.di, align 8, !tbaa !9
  %14 = getelementptr inbounds double, ptr %5, i64 %storemerge34
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = fdiv double %15, %13
  store double %16, ptr %14, align 8, !tbaa !9
  %17 = load double, ptr @unscal_.di, align 8, !tbaa !9
  %18 = getelementptr inbounds double, ptr %4, i64 %storemerge34
  %19 = load double, ptr %18, align 8, !tbaa !9
  %20 = fmul double %17, %19
  store double %20, ptr %18, align 8, !tbaa !9
  %21 = load double, ptr @unscal_.di, align 8, !tbaa !9
  %22 = getelementptr inbounds double, ptr %6, i64 %storemerge34
  store double %21, ptr %22, align 8, !tbaa !9
  %23 = add nuw nsw i64 %storemerge34, 1
  store i64 %23, ptr @unscal_.ii, align 8, !tbaa !5
  %24 = load i64, ptr %0, align 8, !tbaa !5
  %25 = icmp slt i64 %23, %24
  br i1 %25, label %.lr.ph, label %.preheader33, !llvm.loop !11

.preheader:                                       ; preds = %._crit_edge, %.preheader33
  store i64 0, ptr @unscal_.ii, align 8, !tbaa !5
  %26 = load i64, ptr %0, align 8, !tbaa !5
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.lr.ph43, label %._crit_edge44

28:                                               ; preds = %.lr.ph38, %._crit_edge
  %storemerge2937 = phi i64 [ 0, %.lr.ph38 ], [ %66, %._crit_edge ]
  %29 = getelementptr inbounds i64, ptr %1, i64 %storemerge2937
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = add nsw i64 %30, -1
  store i64 %31, ptr @unscal_.ibgn, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %29, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = add i64 %33, -1
  store i64 %34, ptr @unscal_.iend, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %6, i64 %storemerge2937
  %36 = load double, ptr %35, align 8, !tbaa !9
  store double %36, ptr @unscal_.di, align 8, !tbaa !9
  store i64 %31, ptr @unscal_.jj, align 8, !tbaa !5
  %37 = icmp slt i64 %30, %33
  br i1 %37, label %.lr.ph36.preheader, label %._crit_edge

.lr.ph36.preheader:                               ; preds = %28
  %38 = sub i64 %33, %30
  %.neg = add i64 %30, 1
  %xtraiter = and i64 %38, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph36.prol.loopexit, label %.lr.ph36.prol

.lr.ph36.prol:                                    ; preds = %.lr.ph36.preheader
  %39 = getelementptr inbounds i64, ptr %2, i64 %31
  %40 = load i64, ptr %39, align 8, !tbaa !5
  store i64 %40, ptr @unscal_.jajj, align 8, !tbaa !5
  %41 = load double, ptr @unscal_.di, align 8, !tbaa !9
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %40
  %42 = load double, ptr %gep.prol, align 8, !tbaa !9
  %43 = fmul double %41, %42
  %44 = getelementptr inbounds double, ptr %3, i64 %31
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fmul double %45, %43
  store double %46, ptr %44, align 8, !tbaa !9
  store i64 %30, ptr @unscal_.jj, align 8, !tbaa !5
  br label %.lr.ph36.prol.loopexit

.lr.ph36.prol.loopexit:                           ; preds = %.lr.ph36.prol, %.lr.ph36.preheader
  %storemerge3235.unr = phi i64 [ %31, %.lr.ph36.preheader ], [ %30, %.lr.ph36.prol ]
  %47 = icmp eq i64 %33, %.neg
  br i1 %47, label %._crit_edge, label %.lr.ph36

.lr.ph36:                                         ; preds = %.lr.ph36.prol.loopexit, %.lr.ph36
  %storemerge3235 = phi i64 [ %65, %.lr.ph36 ], [ %storemerge3235.unr, %.lr.ph36.prol.loopexit ]
  %48 = getelementptr inbounds i64, ptr %2, i64 %storemerge3235
  %49 = load i64, ptr %48, align 8, !tbaa !5
  store i64 %49, ptr @unscal_.jajj, align 8, !tbaa !5
  %50 = load double, ptr @unscal_.di, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %49
  %51 = load double, ptr %gep, align 8, !tbaa !9
  %52 = fmul double %50, %51
  %53 = getelementptr inbounds double, ptr %3, i64 %storemerge3235
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fmul double %54, %52
  store double %55, ptr %53, align 8, !tbaa !9
  %56 = add nsw i64 %storemerge3235, 1
  store i64 %56, ptr @unscal_.jj, align 8, !tbaa !5
  %57 = getelementptr inbounds i64, ptr %2, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !5
  store i64 %58, ptr @unscal_.jajj, align 8, !tbaa !5
  %59 = load double, ptr @unscal_.di, align 8, !tbaa !9
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %58
  %60 = load double, ptr %gep.1, align 8, !tbaa !9
  %61 = fmul double %59, %60
  %62 = getelementptr inbounds double, ptr %3, i64 %56
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = fmul double %63, %61
  store double %64, ptr %62, align 8, !tbaa !9
  %65 = add nsw i64 %storemerge3235, 2
  store i64 %65, ptr @unscal_.jj, align 8, !tbaa !5
  %exitcond.not.1 = icmp eq i64 %65, %34
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph36, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph36.prol.loopexit, %.lr.ph36, %28
  %66 = add nuw nsw i64 %storemerge2937, 1
  store i64 %66, ptr @unscal_.ii, align 8, !tbaa !5
  %67 = load i64, ptr %0, align 8, !tbaa !5
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %28, label %.preheader, !llvm.loop !14

.lr.ph43:                                         ; preds = %.preheader, %.loopexit
  %storemerge3042 = phi i64 [ %108, %.loopexit ], [ 0, %.preheader ]
  %69 = getelementptr inbounds i64, ptr %1, i64 %storemerge3042
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = add nsw i64 %70, -1
  store i64 %71, ptr @unscal_.ibgn, align 8, !tbaa !5
  %72 = getelementptr i8, ptr %69, i64 8
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = add nsw i64 %73, -1
  store i64 %74, ptr @unscal_.iend, align 8, !tbaa !5
  %75 = load i64, ptr %0, align 8, !tbaa !5
  %76 = xor i64 %storemerge3042, -1
  %77 = add i64 %75, %76
  store i64 %77, ptr @unscal_.is, align 8, !tbaa !5
  %78 = sub i64 %storemerge3042, %75
  %79 = add i64 %78, %71
  store i64 %79, ptr @unscal_.inew, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %6, i64 %storemerge3042
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fmul double %81, %81
  %83 = getelementptr inbounds double, ptr %3, i64 %79
  store double %82, ptr %83, align 8, !tbaa !9
  %84 = add nsw i64 %storemerge3042, 1
  %85 = getelementptr inbounds i64, ptr %2, i64 %79
  store i64 %84, ptr %85, align 8, !tbaa !5
  %86 = load i64, ptr @unscal_.is, align 8, !tbaa !5
  %.not = icmp eq i64 %86, 0
  br i1 %.not, label %.loopexit, label %87

87:                                               ; preds = %.lr.ph43
  %88 = load i64, ptr @unscal_.ibgn, align 8, !tbaa !5
  store i64 %88, ptr @unscal_.jj, align 8, !tbaa !5
  %89 = load i64, ptr @unscal_.iend, align 8, !tbaa !5
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %.lr.ph41, label %.loopexit

.lr.ph41:                                         ; preds = %87, %.lr.ph41
  %storemerge3139 = phi i64 [ %100, %.lr.ph41 ], [ %88, %87 ]
  %91 = load i64, ptr @unscal_.is, align 8, !tbaa !5
  %92 = sub nsw i64 %storemerge3139, %91
  store i64 %92, ptr @unscal_.jjpi, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %3, i64 %storemerge3139
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %3, i64 %92
  store double %94, ptr %95, align 8, !tbaa !9
  %96 = getelementptr inbounds i64, ptr %2, i64 %storemerge3139
  %97 = load i64, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds i64, ptr %2, i64 %92
  store i64 %97, ptr %98, align 8, !tbaa !5
  %99 = load i64, ptr @unscal_.jj, align 8, !tbaa !5
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr @unscal_.jj, align 8, !tbaa !5
  %101 = load i64, ptr @unscal_.iend, align 8, !tbaa !5
  %102 = icmp slt i64 %100, %101
  br i1 %102, label %.lr.ph41, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph41, %87, %.lr.ph43
  %103 = load i64, ptr @unscal_.inew, align 8, !tbaa !5
  %104 = add nsw i64 %103, 1
  %105 = load i64, ptr @unscal_.ii, align 8, !tbaa !5
  %106 = getelementptr inbounds i64, ptr %1, i64 %105
  store i64 %104, ptr %106, align 8, !tbaa !5
  %107 = load i64, ptr @unscal_.ii, align 8, !tbaa !5
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr @unscal_.ii, align 8, !tbaa !5
  %109 = load i64, ptr %0, align 8, !tbaa !5
  %110 = icmp slt i64 %108, %109
  br i1 %110, label %.lr.ph43, label %._crit_edge44, !llvm.loop !16

._crit_edge44:                                    ; preds = %.loopexit, %.preheader
  ret i32 0
}

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

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass