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

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

%class.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

declare i32 @__gxx_personality_v0(...)

; 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 nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid17GradientMagnitudeEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.R2Grid, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %class.R2Grid, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr %3) #5
  call void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %3, ptr noundef nonnull align 8 dereferenceable(208) %11)
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %3, i32 noundef 0)
          to label %12 unwind label %21

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 208, ptr %6) #5
  invoke void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %6, ptr noundef nonnull align 8 dereferenceable(208) %11)
          to label %13 unwind label %25

13:                                               ; preds = %12
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %6, i32 noundef 1)
          to label %14 unwind label %29

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %91, %14
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.R2Grid, ptr %11, i32 0, i32 6
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %33, label %20

20:                                               ; preds = %15
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %95

21:                                               ; preds = %1
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %4, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %5, align 4
  br label %98

25:                                               ; preds = %12
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %4, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %5, align 4
  br label %97

29:                                               ; preds = %13
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %4, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %5, align 4
  br label %96

33:                                               ; preds = %15
  %34 = getelementptr inbounds %class.R2Grid, ptr %11, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %35, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !18
  %40 = fcmp oeq double %39, -3.210000e+02
  br i1 %40, label %41, label %42

41:                                               ; preds = %33
  br label %91

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = invoke noundef double @_ZNK6R2Grid9GridValueEi(ptr noundef nonnull align 8 dereferenceable(208) %3, i32 noundef %43)
          to label %45 unwind label %54

45:                                               ; preds = %42
  store double %44, ptr %9, align 8, !tbaa !18
  %46 = load double, ptr %9, align 8, !tbaa !18
  %47 = fcmp oeq double %46, -3.210000e+02
  br i1 %47, label %48, label %58

48:                                               ; preds = %45
  %49 = getelementptr inbounds %class.R2Grid, ptr %11, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %50, i64 %52
  store double -3.210000e+02, ptr %53, align 8, !tbaa !18
  store i32 4, ptr %8, align 4
  br label %88

54:                                               ; preds = %42
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %4, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %5, align 4
  br label %94

58:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = invoke noundef double @_ZNK6R2Grid9GridValueEi(ptr noundef nonnull align 8 dereferenceable(208) %6, i32 noundef %59)
          to label %61 unwind label %70

61:                                               ; preds = %58
  store double %60, ptr %10, align 8, !tbaa !18
  %62 = load double, ptr %10, align 8, !tbaa !18
  %63 = fcmp oeq double %62, -3.210000e+02
  br i1 %63, label %64, label %74

64:                                               ; preds = %61
  %65 = getelementptr inbounds %class.R2Grid, ptr %11, i32 0, i32 3
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  store double -3.210000e+02, ptr %69, align 8, !tbaa !18
  store i32 4, ptr %8, align 4
  br label %87

70:                                               ; preds = %58
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %94

74:                                               ; preds = %61
  %75 = load double, ptr %9, align 8, !tbaa !18
  %76 = load double, ptr %9, align 8, !tbaa !18
  %77 = load double, ptr %10, align 8, !tbaa !18
  %78 = load double, ptr %10, align 8, !tbaa !18
  %79 = fmul double %77, %78
  %80 = call double @llvm.fmuladd.f64(double %75, double %76, double %79)
  %81 = call double @sqrt(double noundef %80) #5
  %82 = getelementptr inbounds %class.R2Grid, ptr %11, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !17
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  store double %81, ptr %86, align 8, !tbaa !18
  store i32 0, ptr %8, align 4
  br label %87

87:                                               ; preds = %74, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %88

88:                                               ; preds = %87, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %89 = load i32, ptr %8, align 4
  switch i32 %89, label %104 [
    i32 0, label %90
    i32 4, label %91
  ]

90:                                               ; preds = %88
  br label %91

91:                                               ; preds = %90, %88, %41
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %7, align 4, !tbaa !9
  br label %15, !llvm.loop !19

94:                                               ; preds = %70, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %96

95:                                               ; preds = %20
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr %6) #5
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr %3) #5
  ret void

96:                                               ; preds = %94, %29
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %6) #5
  br label %97

97:                                               ; preds = %96, %25
  call void @llvm.lifetime.end.p0(i64 208, ptr %6) #5
  br label %98

98:                                               ; preds = %97, %21
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr %3) #5
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %4, align 8
  %101 = load i32, ptr %5, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103

104:                                              ; preds = %88
  unreachable
}

declare void @_ZN6R2GridC1ERKS_(ptr, ptr)

declare void @_ZN6R2GridD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 204}
!12 = !{!"_ZTS6R2Grid", !13, i64 0, !13, i64 88, !16, i64 176, !6, i64 184, !7, i64 192, !10, i64 200, !10, i64 204}
!13 = !{!"_ZTS8R2Affine", !14, i64 0, !15, i64 8, !10, i64 80}
!14 = !{!"_ZTS16R2Transformation"}
!15 = !{!"_ZTS8R3Matrix", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!12, !6, i64 184}
!18 = !{!16, !16, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

%class.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid17GradientMagnitudeEv(ptr noundef nonnull align 8 dereferenceable(208) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.R2Grid, align 8
  %3 = alloca %class.R2Grid, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %2) #5
  call void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %2, ptr noundef nonnull align 8 dereferenceable(208) %0)
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %2, i32 noundef 0)
          to label %4 unwind label %10

4:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %3) #5
  invoke void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %3, ptr noundef nonnull align 8 dereferenceable(208) %0)
          to label %5 unwind label %12

5:                                                ; preds = %4
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %3, i32 noundef 1)
          to label %.preheader unwind label %14

.preheader:                                       ; preds = %5
  %6 = getelementptr inbounds i8, ptr %0, i64 204
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %9 = getelementptr inbounds i8, ptr %0, i64 184
  %.pre = load ptr, ptr %9, align 8, !tbaa !15
  br label %16

._crit_edge:                                      ; preds = %39, %.preheader
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %3) #5
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %2) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %2) #5
  ret void

10:                                               ; preds = %1
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %46

12:                                               ; preds = %4
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %45

14:                                               ; preds = %5
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %44

16:                                               ; preds = %.lr.ph, %39
  %17 = phi ptr [ %.pre, %.lr.ph ], [ %40, %39 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %18 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  %19 = load double, ptr %18, align 8, !tbaa !16
  %20 = fcmp oeq double %19, -3.210000e+02
  br i1 %20, label %39, label %21

21:                                               ; preds = %16
  %22 = trunc nuw nsw i64 %indvars.iv to i32
  %23 = invoke noundef double @_ZNK6R2Grid9GridValueEi(ptr noundef nonnull align 8 dereferenceable(208) %2, i32 noundef %22)
          to label %24 unwind label %26

24:                                               ; preds = %21
  %25 = fcmp oeq double %23, -3.210000e+02
  br i1 %25, label %.sink.split, label %28

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %44

28:                                               ; preds = %24
  %29 = invoke noundef double @_ZNK6R2Grid9GridValueEi(ptr noundef nonnull align 8 dereferenceable(208) %3, i32 noundef %22)
          to label %30 unwind label %32

30:                                               ; preds = %28
  %31 = fcmp oeq double %29, -3.210000e+02
  br i1 %31, label %.sink.split, label %34

32:                                               ; preds = %28
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %44

34:                                               ; preds = %30
  %35 = fmul double %29, %29
  %36 = call double @llvm.fmuladd.f64(double %23, double %23, double %35)
  %sqrt = call double @llvm.sqrt.f64(double %36)
  br label %.sink.split

.sink.split:                                      ; preds = %30, %24, %34
  %.sink = phi double [ %sqrt, %34 ], [ -3.210000e+02, %24 ], [ -3.210000e+02, %30 ]
  %37 = load ptr, ptr %9, align 8, !tbaa !15
  %38 = getelementptr inbounds double, ptr %37, i64 %indvars.iv
  store double %.sink, ptr %38, align 8, !tbaa !16
  br label %39

39:                                               ; preds = %.sink.split, %16
  %40 = phi ptr [ %17, %16 ], [ %37, %.sink.split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %16, label %._crit_edge, !llvm.loop !17

44:                                               ; preds = %26, %32, %14
  %.pn.pn = phi { ptr, i32 } [ %15, %14 ], [ %33, %32 ], [ %27, %26 ]
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %3) #5
  br label %45

45:                                               ; preds = %44, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %44 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %3) #5
  br label %46

46:                                               ; preds = %45, %10
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %45 ], [ %11, %10 ]
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %2) #5
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

declare void @_ZN6R2GridC1ERKS_(ptr, ptr) local_unnamed_addr

declare void @_ZN6R2GridD1Ev(ptr) local_unnamed_addr

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !12, i64 204}
!6 = !{!"_ZTS6R2Grid", !7, i64 0, !7, i64 88, !13, i64 176, !14, i64 184, !10, i64 192, !12, i64 200, !12, i64 204}
!7 = !{!"_ZTS8R2Affine", !8, i64 0, !9, i64 8, !12, i64 80}
!8 = !{!"_ZTS16R2Transformation"}
!9 = !{!"_ZTS8R3Matrix", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!6, !14, i64 184}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass