; LLVM IR from mesbahamin/star-sim :: src (sim)

; 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.SimState = type { i32, %struct.SimBounds, %struct.SimView, ptr, [100 x %struct.Star] }
%struct.SimBounds = type { float, float, float, float }
%struct.SimView = type { float, float, float }
%struct.Star = type { float, float, float, float, float, float, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @sim_init(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %3
  br label %155

18:                                               ; preds = %3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SimState, ptr %19, i32 0, i32 0
  store i32 100, ptr %20, align 8, !tbaa !11
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = sdiv i32 %21, 2
  %23 = sitofp i32 %22 to float
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SimState, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct.SimBounds, ptr %25, i32 0, i32 0
  store float %23, ptr %26, align 4, !tbaa !16
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sdiv i32 %27, 2
  %29 = sitofp i32 %28 to float
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SimState, ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %struct.SimBounds, ptr %31, i32 0, i32 1
  store float %29, ptr %32, align 4, !tbaa !17
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.SimState, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %struct.SimBounds, ptr %34, i32 0, i32 2
  store float 0.000000e+00, ptr %35, align 4, !tbaa !18
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.SimState, ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds %struct.SimBounds, ptr %37, i32 0, i32 3
  store float 0.000000e+00, ptr %38, align 4, !tbaa !19
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SimState, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds %struct.SimView, ptr %40, i32 0, i32 0
  store float 0.000000e+00, ptr %41, align 4, !tbaa !20
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SimState, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct.SimView, ptr %43, i32 0, i32 1
  store float 0.000000e+00, ptr %44, align 4, !tbaa !21
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SimState, ptr %45, i32 0, i32 2
  %47 = getelementptr inbounds %struct.SimView, ptr %46, i32 0, i32 2
  store float 1.000000e+00, ptr %47, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = sdiv i32 %48, 2
  %50 = sitofp i32 %49 to float
  store float %50, ptr %7, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = sdiv i32 %51, 2
  %53 = sitofp i32 %52 to float
  store float %53, ptr %8, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = sdiv i32 %54, 2
  %56 = sitofp i32 %55 to float
  store float %56, ptr %9, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = sdiv i32 %57, 2
  %59 = sitofp i32 %58 to float
  store float %59, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %142, %18
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SimState, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !11
  %65 = icmp slt i32 %61, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %145

67:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %68 = call i32 @rand() #4
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = srem i32 %68, %69
  store i32 %70, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %71 = call i32 @rand() #4
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = srem i32 %71, %72
  store i32 %73, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.SimState, ptr %74, i32 0, i32 4
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100 x %struct.Star], ptr %75, i64 0, i64 %77
  store ptr %78, ptr %14, align 8, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = sitofp i32 %79 to float
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Star, ptr %81, i32 0, i32 4
  store float %80, ptr %82, align 4, !tbaa !24
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = sitofp i32 %83 to float
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Star, ptr %85, i32 0, i32 5
  store float %84, ptr %86, align 4, !tbaa !26
  %87 = call i32 @rand() #4
  %88 = sitofp i32 %87 to float
  %89 = fdiv float %88, 0x41E0000000000000
  %90 = fmul float %89, 2.000000e+00
  %91 = fpext float %90 to double
  %92 = fmul double %91, 0x400921FB54442D18
  %93 = fptrunc double %92 to float
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Star, ptr %94, i32 0, i32 0
  store float %93, ptr %95, align 4, !tbaa !27
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Star, ptr %96, i32 0, i32 1
  store float 0.000000e+00, ptr %97, align 4, !tbaa !28
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Star, ptr %98, i32 0, i32 2
  store float 5.000000e+00, ptr %99, align 4, !tbaa !29
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Star, ptr %100, i32 0, i32 2
  %102 = load float, ptr %101, align 4, !tbaa !29
  %103 = call float @star_calc_size(float noundef %102)
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Star, ptr %104, i32 0, i32 3
  store float %103, ptr %105, align 4, !tbaa !30
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Star, ptr %106, i32 0, i32 6
  store i32 16777215, ptr %107, align 4, !tbaa !31
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = sitofp i32 %108 to float
  %110 = load float, ptr %7, align 4, !tbaa !23
  %111 = fcmp ole float %109, %110
  br i1 %111, label %112, label %115

112:                                              ; preds = %67
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = sitofp i32 %113 to float
  store float %114, ptr %7, align 4, !tbaa !23
  br label %124

115:                                              ; preds = %67
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = sitofp i32 %116 to float
  %118 = load float, ptr %8, align 4, !tbaa !23
  %119 = fcmp oge float %117, %118
  br i1 %119, label %120, label %123

120:                                              ; preds = %115
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = sitofp i32 %121 to float
  store float %122, ptr %8, align 4, !tbaa !23
  br label %123

123:                                              ; preds = %120, %115
  br label %124

124:                                              ; preds = %123, %112
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = sitofp i32 %125 to float
  %127 = load float, ptr %9, align 4, !tbaa !23
  %128 = fcmp ole float %126, %127
  br i1 %128, label %129, label %132

129:                                              ; preds = %124
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = sitofp i32 %130 to float
  store float %131, ptr %9, align 4, !tbaa !23
  br label %141

132:                                              ; preds = %124
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sitofp i32 %133 to float
  %135 = load float, ptr %10, align 4, !tbaa !23
  %136 = fcmp oge float %134, %135
  br i1 %136, label %137, label %140

137:                                              ; preds = %132
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = sitofp i32 %138 to float
  store float %139, ptr %10, align 4, !tbaa !23
  br label %140

140:                                              ; preds = %137, %132
  br label %141

141:                                              ; preds = %140, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %11, align 4, !tbaa !9
  br label %60, !llvm.loop !32

145:                                              ; preds = %66
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.SimState, ptr %146, i32 0, i32 1
  %148 = load float, ptr %7, align 4, !tbaa !23
  %149 = load float, ptr %9, align 4, !tbaa !23
  %150 = load float, ptr %8, align 4, !tbaa !23
  %151 = load float, ptr %10, align 4, !tbaa !23
  call void @sim_bounding_box_update(ptr noundef %147, float noundef %148, float noundef %149, float noundef %150, float noundef %151)
  %152 = call ptr @quad_tree_init()
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.SimState, ptr %153, i32 0, i32 3
  store ptr %152, ptr %154, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %155

155:                                              ; preds = %145, %17
  ret void
}

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

; Function Attrs: nounwind
declare i32 @rand() #2

declare float @star_calc_size(float noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @sim_bounding_box_update(ptr noundef, float noundef, float noundef, float noundef, float noundef) #0

declare ptr @quad_tree_init() #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"SimState", !10, i64 0, !13, i64 4, !15, i64 20, !6, i64 32, !7, i64 40}
!13 = !{!"SimBounds", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!14 = !{!"float", !7, i64 0}
!15 = !{!"SimView", !14, i64 0, !14, i64 4, !14, i64 8}
!16 = !{!12, !14, i64 4}
!17 = !{!12, !14, i64 8}
!18 = !{!12, !14, i64 12}
!19 = !{!12, !14, i64 16}
!20 = !{!12, !14, i64 20}
!21 = !{!12, !14, i64 24}
!22 = !{!12, !14, i64 28}
!23 = !{!14, !14, i64 0}
!24 = !{!25, !14, i64 16}
!25 = !{!"Star", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !10, i64 24}
!26 = !{!25, !14, i64 20}
!27 = !{!25, !14, i64 0}
!28 = !{!25, !14, i64 4}
!29 = !{!25, !14, i64 8}
!30 = !{!25, !14, i64 12}
!31 = !{!25, !10, i64 24}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!12, !6, i64 32}


; 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.Star = type { float, float, float, float, float, float, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @sim_init(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %50, label %.lr.ph

.lr.ph:                                           ; preds = %3
  store i32 100, ptr %0, align 8, !tbaa !5
  %4 = insertelement <2 x i32> poison, i32 %1, i64 0
  %5 = insertelement <2 x i32> %4, i32 %2, i64 1
  %6 = sdiv <2 x i32> %5, <i32 2, i32 2>
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = sitofp <2 x i32> %6 to <2 x float>
  store <2 x float> %8, ptr %7, align 4, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %10, align 4, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = extractelement <2 x float> %8, i64 0
  %13 = extractelement <2 x float> %8, i64 1
  br label %16

._crit_edge:                                      ; preds = %46
  tail call void @sim_bounding_box_update(ptr noundef nonnull %7, float noundef %.1, float noundef %.152, float noundef %.150, float noundef %.155)
  %14 = tail call ptr @quad_tree_init() #4
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !16
  br label %50

16:                                               ; preds = %.lr.ph, %46
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %46 ]
  %.065 = phi float [ %12, %.lr.ph ], [ %.1, %46 ]
  %.04964 = phi float [ %12, %.lr.ph ], [ %.150, %46 ]
  %.05163 = phi float [ %13, %.lr.ph ], [ %.152, %46 ]
  %.05461 = phi float [ %13, %.lr.ph ], [ %.155, %46 ]
  %17 = tail call i32 @rand() #4
  %18 = srem i32 %17, %1
  %19 = tail call i32 @rand() #4
  %20 = srem i32 %19, %2
  %21 = getelementptr inbounds [100 x %struct.Star], ptr %11, i64 0, i64 %indvars.iv
  %22 = sitofp i32 %18 to float
  %23 = getelementptr inbounds i8, ptr %21, i64 16
  store float %22, ptr %23, align 4, !tbaa !17
  %24 = sitofp i32 %20 to float
  %25 = getelementptr inbounds i8, ptr %21, i64 20
  store float %24, ptr %25, align 4, !tbaa !19
  %26 = tail call i32 @rand() #4
  %27 = sitofp i32 %26 to float
  %28 = fmul float %27, 0x3E00000000000000
  %29 = fmul float %28, 2.000000e+00
  %30 = fpext float %29 to double
  %31 = fmul double %30, 0x400921FB54442D18
  %32 = fptrunc double %31 to float
  store float %32, ptr %21, align 4, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %21, i64 4
  store <2 x float> <float 0.000000e+00, float 5.000000e+00>, ptr %33, align 4, !tbaa !14
  %34 = tail call float @star_calc_size(float noundef 5.000000e+00) #4
  %35 = getelementptr inbounds i8, ptr %21, i64 12
  store float %34, ptr %35, align 4, !tbaa !21
  %36 = getelementptr inbounds i8, ptr %21, i64 24
  store i32 16777215, ptr %36, align 4, !tbaa !22
  %37 = fcmp ult float %.065, %22
  br i1 %37, label %38, label %41

38:                                               ; preds = %16
  %39 = fcmp ugt float %.04964, %22
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %16, %38, %40
  %.150 = phi float [ %22, %40 ], [ %.04964, %38 ], [ %.04964, %16 ]
  %.1 = phi float [ %.065, %40 ], [ %.065, %38 ], [ %22, %16 ]
  %42 = fcmp ult float %.05163, %24
  br i1 %42, label %43, label %46

43:                                               ; preds = %41
  %44 = fcmp ugt float %.05461, %24
  br i1 %44, label %46, label %45

45:                                               ; preds = %43
  br label %46

46:                                               ; preds = %41, %43, %45
  %.155 = phi float [ %24, %45 ], [ %.05461, %43 ], [ %.05461, %41 ]
  %.152 = phi float [ %.05163, %45 ], [ %.05163, %43 ], [ %24, %41 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr %0, align 8, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next, %48
  br i1 %49, label %16, label %._crit_edge, !llvm.loop !23

50:                                               ; preds = %3, %._crit_edge
  ret void
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

declare float @star_calc_size(float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sim_bounding_box_update(ptr noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

declare ptr @quad_tree_init() local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"SimState", !7, i64 0, !10, i64 4, !12, i64 20, !13, i64 32, !8, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"SimBounds", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"float", !8, i64 0}
!12 = !{!"SimView", !11, i64 0, !11, i64 4, !11, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !11, i64 28}
!16 = !{!6, !13, i64 32}
!17 = !{!18, !11, i64 16}
!18 = !{!"Star", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24}
!19 = !{!18, !11, i64 20}
!20 = !{!18, !11, i64 0}
!21 = !{!18, !11, i64 12}
!22 = !{!18, !7, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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