; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint Aug/Problem F/F.ll (Z6solve1ib)

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

@x = external dso_local global [301 x i32], align 16
@y = external dso_local global [301 x i32], align 16
@z = external dso_local global [301 x i32], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6solve1ib(i32 noundef %0, i1 noundef zeroext %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  %10 = zext i1 %1 to i8
  store i8 %10, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = sdiv i32 %11, 3
  store i32 %12, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %13 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %13, ptr %7, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %51, %2
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = mul nsw i32 2, %16
  %18 = icmp sle i32 %15, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %54

20:                                               ; preds = %14
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %23
  store i32 %21, ptr %24, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = mul nsw i32 2, %25
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sub nsw i32 %27, %28
  %30 = mul nsw i32 2, %29
  %31 = sub nsw i32 %26, %30
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sub nsw i32 %35, %39
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sub nsw i32 %40, %44
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %47
  store i32 %45, ptr %48, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %20
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %7, align 4, !tbaa !5
  br label %14, !llvm.loop !11

54:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %90, %54
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

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

60:                                               ; preds = %55
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = sub nsw i32 %61, %62
  %64 = sub nsw i32 %63, 1
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %66
  store i32 %64, ptr %67, align 4, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = mul nsw i32 2, %68
  %70 = add nsw i32 %69, 1
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %72
  store i32 %70, ptr %73, align 4, !tbaa !5
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sub nsw i32 %74, %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sub nsw i32 %79, %83
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %86
  store i32 %84, ptr %87, align 4, !tbaa !5
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %6, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %60
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %8, align 4, !tbaa !5
  br label %55, !llvm.loop !13

93:                                               ; preds = %59
  %94 = load i8, ptr %4, align 1, !tbaa !9, !range !14, !noundef !15
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %122

96:                                               ; preds = %93
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %97)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %118, %96
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %121

104:                                              ; preds = %99
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %108, i32 noundef %112, i32 noundef %116)
  br label %118

118:                                              ; preds = %104
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %9, align 4, !tbaa !5
  br label %99, !llvm.loop !16

121:                                              ; preds = %103
  br label %122

122:                                              ; preds = %121, %93
  %123 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret i32 %123
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !12}


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

@x = external dso_local local_unnamed_addr global [301 x i32], align 16
@y = external dso_local local_unnamed_addr global [301 x i32], align 16
@z = external dso_local local_unnamed_addr global [301 x i32], align 16
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local noundef i32 @_Z6solve1ib(i32 noundef %0, i1 noundef zeroext %1) local_unnamed_addr #0 {
  %3 = sdiv i32 %0, 3
  %4 = shl nsw i32 %3, 1
  %.not48 = icmp sgt i32 %3, %4
  br i1 %.not48, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = or disjoint i32 %4, 1
  %6 = sub i32 %5, %3
  %wide.trip.count = zext i32 %6 to i64
  %7 = shl i32 %3, 2
  %min.iters.check = icmp ult i32 %6, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.03950.ph = phi i32 [ %3, %.lr.ph ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 4294967288
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = add i32 %3, %.cast
  %.splatinsert = insertelement <4 x i32> poison, i32 %3, i64 0
  %.splat = shufflevector <4 x i32> %.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %induction = add <4 x i32> %.splat, <i32 0, i32 1, i32 2, i32 3>
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %7, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert72 = insertelement <4 x i32> poison, i32 %0, i64 0
  %broadcast.splat73 = shufflevector <4 x i32> %broadcast.splatinsert72, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ %induction, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %8 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x i32> %vec.ind, ptr %8, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %9, align 16, !tbaa !5
  %10 = shl <4 x i32> %vec.ind, <i32 1, i32 1, i32 1, i32 1>
  %11 = shl <4 x i32> %step.add, <i32 1, i32 1, i32 1, i32 1>
  %12 = sub <4 x i32> %broadcast.splat, %10
  %13 = sub <4 x i32> %broadcast.splat, %11
  %14 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store <4 x i32> %12, ptr %14, align 16, !tbaa !5
  store <4 x i32> %13, ptr %15, align 16, !tbaa !5
  %16 = add <4 x i32> %vec.ind, %12
  %17 = add <4 x i32> %step.add, %13
  %18 = sub <4 x i32> %broadcast.splat73, %16
  %19 = sub <4 x i32> %broadcast.splat73, %17
  %20 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x i32> %18, ptr %20, align 16, !tbaa !5
  store <4 x i32> %19, ptr %21, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph, %middle.block, %2
  %.040.lcssa = phi i32 [ 0, %2 ], [ %6, %middle.block ], [ %6, %scalar.ph ]
  %23 = icmp sgt i32 %0, 2
  br i1 %23, label %.lr.ph54.preheader, label %._crit_edge

.lr.ph54.preheader:                               ; preds = %.preheader
  %24 = zext i32 %.040.lcssa to i64
  %25 = add nsw i32 %3, -1
  %26 = zext i32 %25 to i64
  %27 = add nuw nsw i64 %26, 1
  %min.iters.check76 = icmp ult i32 %25, 7
  br i1 %min.iters.check76, label %.lr.ph54.preheader97, label %vector.ph77

.lr.ph54.preheader97:                             ; preds = %middle.block74, %.lr.ph54.preheader
  %indvars.iv61.ph = phi i64 [ %24, %.lr.ph54.preheader ], [ %ind.end80, %middle.block74 ]
  %.03853.ph = phi i32 [ 0, %.lr.ph54.preheader ], [ %ind.end83, %middle.block74 ]
  br label %.lr.ph54

vector.ph77:                                      ; preds = %.lr.ph54.preheader
  %n.vec79 = and i64 %27, 8589934584
  %ind.end80 = add nuw nsw i64 %n.vec79, %24
  %ind.end83 = trunc i64 %n.vec79 to i32
  %broadcast.splatinsert91 = insertelement <4 x i32> poison, i32 %3, i64 0
  %broadcast.splat92 = shufflevector <4 x i32> %broadcast.splatinsert91, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert93 = insertelement <4 x i32> poison, i32 %0, i64 0
  %broadcast.splat94 = shufflevector <4 x i32> %broadcast.splatinsert93, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body85

vector.body85:                                    ; preds = %vector.body85, %vector.ph77
  %index86 = phi i64 [ 0, %vector.ph77 ], [ %index.next95, %vector.body85 ]
  %vec.ind87 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph77 ], [ %vec.ind.next90, %vector.body85 ]
  %offset.idx = add i64 %index86, %24
  %28 = xor <4 x i32> %vec.ind87, <i32 -1, i32 -1, i32 -1, i32 -1>
  %29 = add nsw <4 x i32> %broadcast.splat92, %28
  %reass.sub = sub <4 x i32> %broadcast.splat92, %vec.ind87
  %30 = add <4 x i32> %reass.sub, <i32 -5, i32 -5, i32 -5, i32 -5>
  %31 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %offset.idx
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <4 x i32> %29, ptr %31, align 4, !tbaa !5
  store <4 x i32> %30, ptr %32, align 4, !tbaa !5
  %33 = shl nuw nsw <4 x i32> %vec.ind87, <i32 1, i32 1, i32 1, i32 1>
  %step.add88 = shl <4 x i32> %vec.ind87, <i32 1, i32 1, i32 1, i32 1>
  %34 = or disjoint <4 x i32> %33, <i32 1, i32 1, i32 1, i32 1>
  %35 = add <4 x i32> %step.add88, <i32 9, i32 9, i32 9, i32 9>
  %36 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %offset.idx
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x i32> %34, ptr %36, align 4, !tbaa !5
  store <4 x i32> %35, ptr %37, align 4, !tbaa !5
  %38 = add nsw <4 x i32> %29, %34
  %39 = add nsw <4 x i32> %30, %35
  %40 = sub <4 x i32> %broadcast.splat94, %38
  %41 = sub <4 x i32> %broadcast.splat94, %39
  %42 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %offset.idx
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <4 x i32> %40, ptr %42, align 4, !tbaa !5
  store <4 x i32> %41, ptr %43, align 4, !tbaa !5
  %index.next95 = add nuw i64 %index86, 8
  %vec.ind.next90 = add <4 x i32> %vec.ind87, <i32 8, i32 8, i32 8, i32 8>
  %44 = icmp eq i64 %index.next95, %n.vec79
  br i1 %44, label %middle.block74, label %vector.body85, !llvm.loop !13

middle.block74:                                   ; preds = %vector.body85
  %cmp.n96 = icmp eq i64 %27, %n.vec79
  br i1 %cmp.n96, label %._crit_edge.loopexit, label %.lr.ph54.preheader97

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.03950 = phi i32 [ %52, %scalar.ph ], [ %.03950.ph, %scalar.ph.preheader ]
  %45 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %indvars.iv
  store i32 %.03950, ptr %45, align 4, !tbaa !5
  %46 = shl i32 %.03950, 1
  %47 = sub i32 %7, %46
  %48 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %indvars.iv
  store i32 %47, ptr %48, align 4, !tbaa !5
  %49 = add i32 %.03950, %47
  %50 = sub i32 %0, %49
  %51 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %indvars.iv
  store i32 %50, ptr %51, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = add nsw i32 %.03950, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %scalar.ph, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.lr.ph54, %middle.block74
  %indvars.iv.next62.lcssa = phi i64 [ %ind.end80, %middle.block74 ], [ %indvars.iv.next62, %.lr.ph54 ]
  %53 = trunc nuw i64 %indvars.iv.next62.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.1.lcssa = phi i32 [ %.040.lcssa, %.preheader ], [ %53, %._crit_edge.loopexit ]
  br i1 %1, label %64, label %.loopexit

.lr.ph54:                                         ; preds = %.lr.ph54.preheader97, %.lr.ph54
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.lr.ph54 ], [ %indvars.iv61.ph, %.lr.ph54.preheader97 ]
  %.03853 = phi i32 [ %63, %.lr.ph54 ], [ %.03853.ph, %.lr.ph54.preheader97 ]
  %54 = xor i32 %.03853, -1
  %55 = add nsw i32 %3, %54
  %56 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %indvars.iv61
  store i32 %55, ptr %56, align 4, !tbaa !5
  %57 = shl nuw nsw i32 %.03853, 1
  %58 = or disjoint i32 %57, 1
  %59 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %indvars.iv61
  store i32 %58, ptr %59, align 4, !tbaa !5
  %60 = add nsw i32 %55, %58
  %61 = sub i32 %0, %60
  %62 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %indvars.iv61
  store i32 %61, ptr %62, align 4, !tbaa !5
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %63 = add nuw nsw i32 %.03853, 1
  %exitcond64.not = icmp eq i32 %63, %3
  br i1 %exitcond64.not, label %._crit_edge.loopexit, label %.lr.ph54, !llvm.loop !15

64:                                               ; preds = %._crit_edge
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.1.lcssa)
  %.not = icmp eq i32 %.1.lcssa, 0
  br i1 %.not, label %.loopexit, label %.lr.ph58.preheader

.lr.ph58.preheader:                               ; preds = %64
  %wide.trip.count68 = zext i32 %.1.lcssa to i64
  br label %.lr.ph58

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %.lr.ph58
  %indvars.iv65 = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next66, %.lr.ph58 ]
  %66 = getelementptr inbounds [301 x i32], ptr @x, i64 0, i64 %indvars.iv65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = getelementptr inbounds [301 x i32], ptr @y, i64 0, i64 %indvars.iv65
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = getelementptr inbounds [301 x i32], ptr @z, i64 0, i64 %indvars.iv65
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %67, i32 noundef %69, i32 noundef %71)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count68
  br i1 %exitcond69.not, label %.loopexit, label %.lr.ph58, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph58, %64, %._crit_edge
  ret i32 %.1.lcssa
}

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

attributes #0 = { mustprogress nofree 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" }

!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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10}


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