; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R2Shapes/R2Grid.ll (ZN6R2Grid17RasterizeGridSpanEPKiS1_ddi)

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef, double noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid17RasterizeGridSpanEPKiS1_ddi(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca [2 x i32], align 4
  %14 = alloca [2 x i32], align 4
  %15 = alloca [2 x i32], align 4
  %16 = alloca [2 x i32], align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca [2 x i32], align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  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 double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !11
  %25 = load ptr, ptr %7, align 8
  %26 = load double, ptr %10, align 8, !tbaa !9
  %27 = fcmp oeq double %26, -3.210000e+02
  br i1 %27, label %28, label %29

28:                                               ; preds = %6
  br label %202

29:                                               ; preds = %6
  %30 = load double, ptr %11, align 8, !tbaa !9
  %31 = fcmp oeq double %30, -3.210000e+02
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  br label %202

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %90, %33
  %35 = load i32, ptr %17, align 4, !tbaa !11
  %36 = icmp slt i32 %35, 2
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %93

38:                                               ; preds = %34
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load i32, ptr %17, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %39, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i32, ptr %17, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %44, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %49 = sub nsw i32 %43, %48
  %50 = load i32, ptr %17, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !11
  %53 = load i32, ptr %17, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %70

58:                                               ; preds = %38
  %59 = load i32, ptr %17, align 4, !tbaa !11
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !11
  %63 = sub nsw i32 0, %62
  %64 = load i32, ptr %17, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %65
  store i32 %63, ptr %66, align 4, !tbaa !11
  %67 = load i32, ptr %17, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %68
  store i32 -1, ptr %69, align 4, !tbaa !11
  br label %81

70:                                               ; preds = %38
  %71 = load i32, ptr %17, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = load i32, ptr %17, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !11
  %78 = load i32, ptr %17, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %79
  store i32 1, ptr %80, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %70, %58
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %17, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !11
  %87 = load i32, ptr %17, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 %88
  store i32 %86, ptr %89, align 4, !tbaa !11
  br label %90

90:                                               ; preds = %81
  %91 = load i32, ptr %17, align 4, !tbaa !11
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %17, align 4, !tbaa !11
  br label %34, !llvm.loop !13

93:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !11
  %94 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 1
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = load i32, ptr %18, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !11
  %100 = icmp sgt i32 %95, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %93
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %101, %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %103 = load i32, ptr %18, align 4, !tbaa !11
  %104 = add nsw i32 %103, 1
  %105 = srem i32 %104, 2
  store i32 %105, ptr %19, align 4, !tbaa !11
  %106 = load i32, ptr %18, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !11
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %122

111:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %112 = load double, ptr %10, align 8, !tbaa !9
  %113 = load double, ptr %11, align 8, !tbaa !9
  %114 = fadd double %112, %113
  %115 = fmul double 5.000000e-01, %114
  store double %115, ptr %20, align 8, !tbaa !9
  %116 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %119 = load i32, ptr %118, align 4, !tbaa !11
  %120 = load double, ptr %20, align 8, !tbaa !9
  %121 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208) %25, i32 noundef %117, i32 noundef %119, double noundef %120, i32 noundef %121)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %201

122:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %123 = load double, ptr %10, align 8, !tbaa !9
  store double %123, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %124 = load double, ptr %11, align 8, !tbaa !9
  %125 = load double, ptr %10, align 8, !tbaa !9
  %126 = fsub double %124, %125
  %127 = load i32, ptr %18, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !11
  %131 = sitofp i32 %130 to double
  %132 = fdiv double %126, %131
  store double %132, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %133

133:                                              ; preds = %197, %122
  %134 = load i32, ptr %24, align 4, !tbaa !11
  %135 = load i32, ptr %18, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !11
  %139 = icmp sle i32 %134, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %200

141:                                              ; preds = %133
  %142 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %143 = load i32, ptr %142, align 4, !tbaa !11
  %144 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = load double, ptr %22, align 8, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208) %25, i32 noundef %143, i32 noundef %145, double noundef %146, i32 noundef %147)
  %148 = load i32, ptr %19, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !11
  %152 = load i32, ptr %19, align 4, !tbaa !11
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [2 x i32], ptr %21, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = add nsw i32 %155, %151
  store i32 %156, ptr %154, align 4, !tbaa !11
  %157 = load i32, ptr %18, align 4, !tbaa !11
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !11
  %161 = load i32, ptr %18, align 4, !tbaa !11
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = add nsw i32 %164, %160
  store i32 %165, ptr %163, align 4, !tbaa !11
  %166 = load i32, ptr %19, align 4, !tbaa !11
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !11
  %170 = load i32, ptr %19, align 4, !tbaa !11
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2 x i32], ptr %21, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = mul nsw i32 %169, %173
  %175 = load i32, ptr %18, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !11
  %179 = sdiv i32 %174, %178
  %180 = load i32, ptr %19, align 4, !tbaa !11
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !11
  %184 = add nsw i32 %183, %179
  store i32 %184, ptr %182, align 4, !tbaa !11
  %185 = load i32, ptr %18, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !11
  %189 = load i32, ptr %19, align 4, !tbaa !11
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [2 x i32], ptr %21, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !11
  %193 = srem i32 %192, %188
  store i32 %193, ptr %191, align 4, !tbaa !11
  %194 = load double, ptr %23, align 8, !tbaa !9
  %195 = load double, ptr %22, align 8, !tbaa !9
  %196 = fadd double %195, %194
  store double %196, ptr %22, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %141
  %198 = load i32, ptr %24, align 4, !tbaa !11
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %24, align 4, !tbaa !11
  br label %133, !llvm.loop !15

200:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  br label %201

201:                                              ; preds = %200, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %202

202:                                              ; preds = %201, %32, %28
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef, double noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid17RasterizeGridSpanEPKiS1_ddi(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, double noundef %3, double noundef %4, i32 noundef %5) local_unnamed_addr #1 align 2 {
  %7 = alloca [2 x i32], align 8
  %8 = alloca [2 x i32], align 4
  %9 = alloca [2 x i32], align 8
  %10 = alloca [2 x i32], align 8
  %11 = fcmp oeq double %3, -3.210000e+02
  %12 = fcmp oeq double %4, -3.210000e+02
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %64, label %13

13:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %14 = load i64, ptr %1, align 4, !tbaa !5
  store i64 %14, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %8, i64 4
  %16 = load <2 x i32>, ptr %2, align 4, !tbaa !5
  %.cast = bitcast i64 %14 to <2 x i32>
  %17 = sub nsw <2 x i32> %16, %.cast
  %18 = tail call <2 x i32> @llvm.abs.v2i32(<2 x i32> %17, i1 true)
  %19 = extractelement <2 x i32> %18, i64 0
  store i32 %19, ptr %8, align 4
  %20 = icmp sgt <2 x i32> %17, <i32 -1, i32 -1>
  %21 = select <2 x i1> %20, <2 x i32> <i32 1, i32 1>, <2 x i32> <i32 -1, i32 -1>
  %22 = extractelement <2 x i32> %18, i64 1
  store i32 %22, ptr %15, align 4
  store <2 x i32> %21, ptr %9, align 8
  %23 = icmp ugt i32 %22, %19
  %not. = xor i1 %23, true
  %24 = zext i1 %23 to i64
  %25 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %34

28:                                               ; preds = %13
  %29 = fadd double %3, %4
  %30 = fmul double %29, 5.000000e-01
  %31 = load i32, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %7, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !5
  tail call void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %31, i32 noundef %33, double noundef %30, i32 noundef %5)
  br label %63

34:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  store i64 0, ptr %10, align 8
  %35 = fsub double %4, %3
  %36 = sitofp i32 %26 to double
  %37 = fdiv double %35, %36
  %.not54 = icmp slt i32 %26, 0
  br i1 %.not54, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %34
  %38 = getelementptr inbounds i8, ptr %7, i64 4
  %39 = zext i1 %not. to i64
  %40 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %39
  %41 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 %39
  %42 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 %24
  %43 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 %24
  %44 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 %39
  %45 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 %39
  br label %46

._crit_edge:                                      ; preds = %46, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  br label %63

46:                                               ; preds = %.lr.ph, %46
  %.056 = phi i32 [ 0, %.lr.ph ], [ %62, %46 ]
  %.04955 = phi double [ %3, %.lr.ph ], [ %61, %46 ]
  %47 = load i32, ptr %7, align 8, !tbaa !5
  %48 = load i32, ptr %38, align 4, !tbaa !5
  tail call void @_ZN6R2Grid18RasterizeGridValueEiidi(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %47, i32 noundef %48, double noundef %.04955, i32 noundef %5)
  %49 = load i32, ptr %40, align 4, !tbaa !5
  %50 = load i32, ptr %41, align 4, !tbaa !5
  %51 = add nsw i32 %50, %49
  %52 = load i32, ptr %42, align 4, !tbaa !5
  %53 = load i32, ptr %43, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr %43, align 4, !tbaa !5
  %55 = load i32, ptr %44, align 4, !tbaa !5
  %56 = mul nsw i32 %55, %51
  %57 = sdiv i32 %56, %26
  %58 = load i32, ptr %45, align 4, !tbaa !5
  %59 = add nsw i32 %58, %57
  store i32 %59, ptr %45, align 4, !tbaa !5
  %60 = srem i32 %51, %26
  store i32 %60, ptr %41, align 4, !tbaa !5
  %61 = fadd double %37, %.04955
  %62 = add nuw i32 %.056, 1
  %exitcond.not = icmp eq i32 %.056, %26
  br i1 %exitcond.not, label %._crit_edge, label %46, !llvm.loop !9

63:                                               ; preds = %._crit_edge, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %64

64:                                               ; preds = %6, %63
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.abs.v2i32(<2 x i32>, i1 immarg) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass