; LLVM IR from ANL-CESAR/XSBench :: openmp-threading (Simulation)

; 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.Inputs = type { i32, i64, i64, i32, ptr, i32, i32, i32, i32, i32, i32 }
%struct.SimulationData = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i32, i32, ptr, i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @run_event_based_simulation(ptr noundef byval(%struct.Inputs) align 8 %0, ptr noundef byval(%struct.SimulationData) align 8 %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca [5 x double], align 16
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 %2, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %3
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %23

23:                                               ; preds = %21, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %94, %23
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %29, label %97

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %30 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store ptr %31, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %32 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  store ptr %33, ptr %8, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %34 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  store ptr %35, ptr %9, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %36 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  store ptr %37, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %38 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  store ptr %39, ptr %11, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 1070, ptr %12, align 8, !tbaa !22
  %40 = load i64, ptr %12, align 8, !tbaa !22
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = mul nsw i32 2, %41
  %43 = sext i32 %42 to i64
  %44 = call i64 @fast_forward_LCG(i64 noundef %40, i64 noundef %43)
  store i64 %44, ptr %12, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %45 = call double @LCG_random_double(ptr noundef %12)
  store double %45, ptr %13, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %46 = call i32 @pick_mat(ptr noundef %12)
  store i32 %46, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #4
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 40, i1 false)
  %47 = load double, ptr %13, align 8, !tbaa !23
  %48 = load i32, ptr %14, align 4, !tbaa !5
  %49 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 1
  %50 = load i64, ptr %49, align 8, !tbaa !25
  %51 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 2
  %52 = load i64, ptr %51, align 8, !tbaa !26
  %53 = load ptr, ptr %7, align 8, !tbaa !17
  %54 = load ptr, ptr %8, align 8, !tbaa !17
  %55 = load ptr, ptr %9, align 8, !tbaa !17
  %56 = load ptr, ptr %10, align 8, !tbaa !17
  %57 = load ptr, ptr %11, align 8, !tbaa !17
  %58 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  %60 = getelementptr inbounds [5 x double], ptr %15, i64 0, i64 0
  %61 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 5
  %62 = load i32, ptr %61, align 8, !tbaa !28
  %63 = getelementptr inbounds %struct.Inputs, ptr %0, i32 0, i32 6
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = getelementptr inbounds %struct.SimulationData, ptr %1, i32 0, i32 12
  %66 = load i32, ptr %65, align 4, !tbaa !30
  call void @calculate_macro_xs(double noundef %47, i32 noundef %48, i64 noundef %50, i64 noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %59, ptr noundef %60, i32 noundef %62, i32 noundef %64, i32 noundef %66)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store double -1.000000e+00, ptr %16, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %85, %29
  %68 = load i32, ptr %18, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 5
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %88

71:                                               ; preds = %67
  %72 = load i32, ptr %18, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [5 x double], ptr %15, i64 0, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = load double, ptr %16, align 8, !tbaa !23
  %77 = fcmp ogt double %75, %76
  br i1 %77, label %78, label %84

78:                                               ; preds = %71
  %79 = load i32, ptr %18, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [5 x double], ptr %15, i64 0, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !23
  store double %82, ptr %16, align 8, !tbaa !23
  %83 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %83, ptr %17, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %78, %71
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %18, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %18, align 4, !tbaa !5
  br label %67, !llvm.loop !31

88:                                               ; preds = %70
  %89 = load i32, ptr %17, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = load i64, ptr %5, align 8, !tbaa !9
  %93 = add i64 %92, %91
  store i64 %93, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %94

94:                                               ; preds = %88
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %6, align 4, !tbaa !5
  br label %24, !llvm.loop !33

97:                                               ; preds = %24
  %98 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i64 %98
}

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @fast_forward_LCG(i64 noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @LCG_random_double(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @pick_mat(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @calculate_macro_xs(double noundef, i32 noundef, i64 noundef, i64 noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

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 = { "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 willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !14, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60}
!13 = !{!"long", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !13, i64 64, !6, i64 72, !6, i64 76, !14, i64 80, !6, i64 88, !14, i64 96, !6, i64 104}
!17 = !{!14, !14, i64 0}
!18 = !{!16, !14, i64 8}
!19 = !{!16, !14, i64 24}
!20 = !{!16, !14, i64 32}
!21 = !{!16, !14, i64 40}
!22 = !{!13, !13, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = !{!12, !13, i64 8}
!26 = !{!12, !13, i64 16}
!27 = !{!16, !14, i64 16}
!28 = !{!12, !6, i64 40}
!29 = !{!12, !6, i64 44}
!30 = !{!16, !6, i64 76}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !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.Inputs = type { i32, i64, i64, i32, ptr, i32, i32, i32, i32, i32, i32 }
%struct.SimulationData = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i32, i32, ptr, i32, ptr, i32 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @run_event_based_simulation(ptr nocapture noundef readonly byval(%struct.Inputs) align 8 %0, ptr nocapture noundef readonly byval(%struct.SimulationData) align 8 %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i64, align 8
  %5 = alloca [5 x double], align 16
  %6 = icmp eq i32 %2, 0
  br i1 %6, label %7, label %9

7:                                                ; preds = %3
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %9

9:                                                ; preds = %7, %3
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %13 = load ptr, ptr %1, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %1, i64 32
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %1, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  %27 = load ptr, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i32, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr %0, i64 44
  %31 = load i32, ptr %30, align 4
  %32 = getelementptr inbounds i8, ptr %1, i64 76
  %33 = load i32, ptr %32, align 4
  %wide.trip.count = zext nneg i32 %11 to i64
  %34 = getelementptr inbounds i8, ptr %5, i64 8
  %35 = getelementptr inbounds i8, ptr %5, i64 16
  %36 = getelementptr inbounds i8, ptr %5, i64 24
  %37 = getelementptr inbounds i8, ptr %5, i64 32
  br label %38

38:                                               ; preds = %.lr.ph, %38
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %38 ]
  %.02229 = phi i64 [ 0, %.lr.ph ], [ %57, %38 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store i64 1070, ptr %4, align 8, !tbaa !18
  %39 = shl nuw nsw i64 %indvars.iv, 1
  %40 = call i64 @fast_forward_LCG(i64 noundef 1070, i64 noundef %39)
  store i64 %40, ptr %4, align 8, !tbaa !18
  %41 = call double @LCG_random_double(ptr noundef nonnull %4)
  %42 = call i32 @pick_mat(ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %5, i8 0, i64 40, i1 false)
  call void @calculate_macro_xs(double noundef %41, i32 noundef %42, i64 noundef %23, i64 noundef %25, ptr noundef %13, ptr noundef %15, ptr noundef %17, ptr noundef %19, ptr noundef %21, ptr noundef %27, ptr noundef nonnull %5, i32 noundef %29, i32 noundef %31, i32 noundef %33)
  %43 = load double, ptr %5, align 16, !tbaa !19
  %44 = fcmp ogt double %43, -1.000000e+00
  %.121 = select i1 %44, double %43, double -1.000000e+00
  %45 = load double, ptr %34, align 8, !tbaa !19
  %46 = fcmp ogt double %45, %.121
  %.121.1 = select i1 %46, double %45, double %.121
  %47 = load double, ptr %35, align 16, !tbaa !19
  %48 = fcmp ogt double %47, %.121.1
  %.121.2 = select i1 %48, double %47, double %.121.1
  %49 = load double, ptr %36, align 8, !tbaa !19
  %50 = fcmp ogt double %49, %.121.2
  %.121.3 = select i1 %50, double %49, double %.121.2
  %51 = select i1 %46, i64 2, i64 1
  %52 = load double, ptr %37, align 16, !tbaa !19
  %53 = fcmp ogt double %52, %.121.3
  %54 = select i1 %48, i64 3, i64 %51
  %55 = select i1 %50, i64 4, i64 %54
  %56 = select i1 %53, i64 5, i64 %55
  %57 = add i64 %.02229, %56
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %38, !llvm.loop !21

._crit_edge:                                      ; preds = %38, %9
  %.022.lcssa = phi i64 [ 0, %9 ], [ %57, %38 ]
  ret i64 %.022.lcssa
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @fast_forward_LCG(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @LCG_random_double(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @pick_mat(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @calculate_macro_xs(double noundef, i32 noundef, i64 noundef, i64 noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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 = { nofree 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 24}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !7, i64 72, !7, i64 76, !11, i64 80, !7, i64 88, !11, i64 96, !7, i64 104}
!14 = !{!13, !11, i64 8}
!15 = !{!13, !11, i64 24}
!16 = !{!13, !11, i64 32}
!17 = !{!13, !11, i64 40}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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