; LLVM IR from jingweizhanghuai/Morn :: src/util (morn_time)

; 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.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }

@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [2 x i8], align 1

; 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

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

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

; Function Attrs: nounwind
declare i64 @mktime(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @mCalendar(i32 noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca [14 x i32], align 16
  %4 = alloca %struct.tm, align 8
  %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
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i32 noundef %16)
  call void @llvm.lifetime.start.p0(i64 56, ptr %3) #5
  store i32 31, ptr %3, align 4, !tbaa !5
  %18 = getelementptr inbounds i32, ptr %3, i64 1
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = srem i32 %19, 4
  %21 = icmp ne i32 %20, 0
  %22 = zext i1 %21 to i64
  %23 = select i1 %21, i32 28, i32 29
  store i32 %23, ptr %18, align 4, !tbaa !5
  %24 = getelementptr inbounds i32, ptr %3, i64 2
  store i32 31, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i32, ptr %3, i64 3
  store i32 30, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i32, ptr %3, i64 4
  store i32 31, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %3, i64 5
  store i32 30, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds i32, ptr %3, i64 6
  store i32 31, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds i32, ptr %3, i64 7
  store i32 31, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %3, i64 8
  store i32 30, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds i32, ptr %3, i64 9
  store i32 31, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds i32, ptr %3, i64 10
  store i32 30, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %3, i64 11
  store i32 31, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds i32, ptr %3, i64 12
  store i32 0, ptr %34, align 4, !tbaa !5
  %35 = getelementptr inbounds i32, ptr %3, i64 13
  store i32 0, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #5
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 56, i1 false)
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sub nsw i32 %36, 1900
  %38 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 5
  store i32 %37, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %39 = call i64 @mktime(ptr noundef %4) #5
  %40 = sdiv i64 %39, 3600
  %41 = sdiv i64 %40, 24
  %42 = add nsw i64 %41, 6
  %43 = srem i64 %42, 7
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 0
  %47 = load i32, ptr %46, align 16, !tbaa !5
  %48 = add nsw i32 %45, %47
  %49 = srem i32 %48, 7
  store i32 %49, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 1
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %50, %52
  %54 = srem i32 %53, 7
  store i32 %54, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %55

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

58:                                               ; preds = %55
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %211

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sub nsw i32 1, %60
  store i32 %61, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = sub nsw i32 1, %62
  store i32 %63, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = sub nsw i32 1, %64
  store i32 %65, ptr %12, align 4, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = add nsw i32 %68, 2
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 3
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.51, i32 noundef %67, i32 noundef %69, i32 noundef %71)
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
  br label %74

74:                                               ; preds = %181, %59
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp sle i32 %75, %79
  br i1 %80, label %97, label %81

81:                                               ; preds = %74
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp sle i32 %82, %87
  br i1 %88, label %97, label %89

89:                                               ; preds = %81
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = add nsw i32 %91, 2
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp sle i32 %90, %95
  br label %97

97:                                               ; preds = %89, %81, %74
  %98 = phi i1 [ true, %81 ], [ true, %74 ], [ %96, %89 ]
  br i1 %98, label %99, label %183

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

100:                                              ; preds = %120, %99
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 7
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %125

104:                                              ; preds = %100
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %107, label %114

107:                                              ; preds = %104
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp sle i32 %108, %112
  br label %114

114:                                              ; preds = %107, %104
  %115 = phi i1 [ false, %104 ], [ %113, %107 ]
  %116 = zext i1 %115 to i64
  %117 = select i1 %115, ptr @.str.53, ptr @.str.54
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = call i32 (ptr, ...) @printf(ptr noundef %117, i32 noundef %118)
  br label %120

120:                                              ; preds = %114
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %13, align 4, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %10, align 4, !tbaa !5
  br label %100, !llvm.loop !13

125:                                              ; preds = %103
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %148, %125
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = icmp slt i32 %128, 7
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %153

131:                                              ; preds = %127
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %131
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = icmp sle i32 %135, %140
  br label %142

142:                                              ; preds = %134, %131
  %143 = phi i1 [ false, %131 ], [ %141, %134 ]
  %144 = zext i1 %143 to i64
  %145 = select i1 %143, ptr @.str.53, ptr @.str.54
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = call i32 (ptr, ...) @printf(ptr noundef %145, i32 noundef %146)
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %14, align 4, !tbaa !5
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %11, align 4, !tbaa !5
  br label %127, !llvm.loop !15

153:                                              ; preds = %130
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %176, %153
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = icmp slt i32 %156, 7
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %181

159:                                              ; preds = %155
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %162, label %170

162:                                              ; preds = %159
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = load i32, ptr %8, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp sle i32 %163, %168
  br label %170

170:                                              ; preds = %162, %159
  %171 = phi i1 [ false, %159 ], [ %169, %162 ]
  %172 = zext i1 %171 to i64
  %173 = select i1 %171, ptr @.str.53, ptr @.str.54
  %174 = load i32, ptr %12, align 4, !tbaa !5
  %175 = call i32 (ptr, ...) @printf(ptr noundef %173, i32 noundef %174)
  br label %176

176:                                              ; preds = %170
  %177 = load i32, ptr %15, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %15, align 4, !tbaa !5
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %12, align 4, !tbaa !5
  br label %155, !llvm.loop !16

181:                                              ; preds = %158
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.56)
  br label %74, !llvm.loop !17

183:                                              ; preds = %97
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = load i32, ptr %8, align 4, !tbaa !5
  %186 = add nsw i32 %185, 2
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = add nsw i32 %184, %189
  %191 = srem i32 %190, 7
  store i32 %191, ptr %5, align 4, !tbaa !5
  %192 = load i32, ptr %5, align 4, !tbaa !5
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = add nsw i32 %193, 3
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = add nsw i32 %192, %197
  %199 = srem i32 %198, 7
  store i32 %199, ptr %6, align 4, !tbaa !5
  %200 = load i32, ptr %6, align 4, !tbaa !5
  %201 = load i32, ptr %8, align 4, !tbaa !5
  %202 = add nsw i32 %201, 4
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = add nsw i32 %200, %205
  %207 = srem i32 %206, 7
  store i32 %207, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %208

208:                                              ; preds = %183
  %209 = load i32, ptr %8, align 4, !tbaa !5
  %210 = add nsw i32 %209, 3
  store i32 %210, ptr %8, align 4, !tbaa !5
  br label %55, !llvm.loop !18

211:                                              ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %3) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 20}
!10 = !{!"tm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !11, i64 40, !12, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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"

%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }

@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [2 x i8], align 1

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare noundef i64 @mktime(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind uwtable
define dso_local void @mCalendar(i32 noundef %0) local_unnamed_addr #4 {
  %2 = alloca [14 x i32], align 16
  %3 = alloca %struct.tm, align 8
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #5
  store i32 31, ptr %2, align 16, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = and i32 %0, 3
  %.not = icmp eq i32 %6, 0
  %7 = select i1 %.not, i32 29, i32 28
  store i32 %7, ptr %5, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  store <4 x i32> <i32 31, i32 30, i32 31, i32 30>, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %2, i64 24
  store <4 x i32> <i32 31, i32 31, i32 30, i32 31>, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %2, i64 40
  store <4 x i32> <i32 30, i32 31, i32 0, i32 0>, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %3, i8 0, i64 56, i1 false)
  %11 = add nsw i32 %0, -1900
  %12 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %11, ptr %12, align 4, !tbaa !9
  %13 = call i64 @mktime(ptr noundef nonnull %3) #5
  %14 = sdiv i64 %13, 86400
  %15 = add nsw i64 %14, 6
  %16 = srem i64 %15, 7
  %17 = trunc nsw i64 %16 to i32
  %18 = trunc nsw i64 %16 to i8
  %.lhs.trunc = add nsw i8 %18, 31
  %19 = urem i8 %.lhs.trunc, 7
  %.zext = zext nneg i8 %19 to i32
  %20 = trunc nuw nsw i32 %7 to i8
  %.05476.lhs.trunc = add nuw nsw i8 %19, %20
  %.0547685 = urem i8 %.05476.lhs.trunc, 7
  %.05476.zext = zext nneg i8 %.0547685 to i32
  br label %22

21:                                               ; preds = %189
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #5
  ret void

22:                                               ; preds = %1, %189
  %23 = phi i32 [ 31, %1 ], [ %193, %189 ]
  %indvars.iv = phi i64 [ 0, %1 ], [ %indvars.iv.next, %189 ]
  %.05480 = phi i32 [ %.05476.zext, %1 ], [ %.054, %189 ]
  %.05578 = phi i32 [ %.zext, %1 ], [ %195, %189 ]
  %.05677 = phi i32 [ %17, %1 ], [ %191, %189 ]
  %indvars84 = trunc i64 %indvars.iv to i32
  %24 = sub nsw i32 1, %.05677
  %25 = sub nsw i32 1, %.05578
  %26 = sub nsw i32 1, %.05480
  %27 = add nuw nsw i64 %indvars.iv, 1
  %28 = add nuw nsw i64 %indvars.iv, 2
  %29 = add nuw nsw i32 %indvars84, 2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 3
  %indvars = trunc i64 %indvars.iv.next to i32
  %30 = trunc nuw nsw i64 %27 to i32
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, i32 noundef %30, i32 noundef %29, i32 noundef %indvars)
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  %33 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 %28
  %.fr = freeze i32 %23
  %34 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 %27
  br label %35

35:                                               ; preds = %.thread66.6, %22
  %.051 = phi i32 [ %24, %22 ], [ %187, %.thread66.6 ]
  %.049 = phi i32 [ %25, %22 ], [ %133, %.thread66.6 ]
  %.048 = phi i32 [ %26, %22 ], [ %186, %.thread66.6 ]
  %.not58 = icmp sgt i32 %.051, %.fr
  br i1 %.not58, label %36, label %.critedge

36:                                               ; preds = %35
  %37 = load i32, ptr %34, align 4, !tbaa !5
  %.not59 = icmp sgt i32 %.049, %37
  br i1 %.not59, label %38, label %.critedge

38:                                               ; preds = %36
  %39 = load i32, ptr %33, align 4, !tbaa !5
  %.not60 = icmp sgt i32 %.048, %39
  br i1 %.not60, label %189, label %.critedge

.critedge:                                        ; preds = %36, %35, %38
  %40 = icmp sgt i32 %.051, 0
  %41 = icmp sle i32 %.051, %.fr
  %42 = and i1 %40, %41
  %43 = select i1 %42, ptr @.str.53, ptr @.str.54
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %43, i32 noundef %.051)
  %45 = add nsw i32 %.051, 1
  %46 = icmp sgt i32 %.051, -1
  %47 = icmp slt i32 %.051, %.fr
  %48 = and i1 %46, %47
  %49 = select i1 %48, ptr @.str.53, ptr @.str.54
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %49, i32 noundef %45)
  %51 = add nsw i32 %.051, 2
  %52 = icmp sgt i32 %.051, -2
  %53 = icmp sle i32 %51, %.fr
  %54 = and i1 %52, %53
  %55 = select i1 %54, ptr @.str.53, ptr @.str.54
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %55, i32 noundef %51)
  %57 = add nsw i32 %.051, 3
  %58 = icmp sgt i32 %.051, -3
  %59 = icmp sle i32 %57, %.fr
  %60 = and i1 %58, %59
  %61 = select i1 %60, ptr @.str.53, ptr @.str.54
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %61, i32 noundef %57)
  %63 = add nsw i32 %.051, 4
  %64 = icmp sgt i32 %.051, -4
  %65 = icmp sle i32 %63, %.fr
  %66 = and i1 %64, %65
  %67 = select i1 %66, ptr @.str.53, ptr @.str.54
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %67, i32 noundef %63)
  %69 = add nsw i32 %.051, 5
  %70 = icmp sgt i32 %.051, -5
  %71 = icmp sle i32 %69, %.fr
  %72 = and i1 %70, %71
  %73 = select i1 %72, ptr @.str.53, ptr @.str.54
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %73, i32 noundef %69)
  %75 = add nsw i32 %.051, 6
  %76 = icmp sgt i32 %.051, -6
  %77 = icmp sle i32 %75, %.fr
  %78 = and i1 %76, %77
  %79 = select i1 %78, ptr @.str.53, ptr @.str.54
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %79, i32 noundef %75)
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55)
  %82 = icmp sgt i32 %.049, 0
  br i1 %82, label %.thread63.thread, label %.thread63

.thread63.thread:                                 ; preds = %.critedge
  %83 = load i32, ptr %34, align 4, !tbaa !5
  %84 = icmp sle i32 %.049, %83
  %cond.fr62 = freeze i1 %84
  %spec.select68 = select i1 %cond.fr62, ptr @.str.53, ptr @.str.54
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68, i32 noundef %.049)
  %86 = add nuw nsw i32 %.049, 1
  br label %.thread63.1.thread

.thread63:                                        ; preds = %.critedge
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %.049)
  %88 = icmp sgt i32 %.049, -1
  br i1 %88, label %.thread63.1.thread, label %.thread63.1

.thread63.1.thread:                               ; preds = %.thread63, %.thread63.thread
  %89 = phi i32 [ %86, %.thread63.thread ], [ 1, %.thread63 ]
  %90 = load i32, ptr %34, align 4, !tbaa !5
  %91 = icmp slt i32 %.049, %90
  %cond.fr62.1 = freeze i1 %91
  %spec.select68.1 = select i1 %cond.fr62.1, ptr @.str.53, ptr @.str.54
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68.1, i32 noundef %89)
  %93 = add nuw nsw i32 %.049, 2
  br label %.thread63.2.thread

.thread63.1:                                      ; preds = %.thread63
  %94 = add nsw i32 %.049, 1
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %94)
  %96 = icmp eq i32 %.049, -1
  br i1 %96, label %.thread63.2.thread, label %.thread63.2

.thread63.2.thread:                               ; preds = %.thread63.1, %.thread63.1.thread
  %97 = phi i32 [ %93, %.thread63.1.thread ], [ 1, %.thread63.1 ]
  %98 = load i32, ptr %34, align 4, !tbaa !5
  %.fr86 = freeze i32 %98
  %.not87 = icmp sgt i32 %97, %.fr86
  %spec.select68.2 = select i1 %.not87, ptr @.str.54, ptr @.str.53
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68.2, i32 noundef %97)
  %100 = add nsw i32 %.049, 3
  br label %.thread63.3.thread

.thread63.2:                                      ; preds = %.thread63.1
  %101 = add nsw i32 %.049, 2
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %101)
  %103 = icmp eq i32 %.049, -2
  br i1 %103, label %.thread63.3.thread, label %.thread63.3

.thread63.3.thread:                               ; preds = %.thread63.2, %.thread63.2.thread
  %104 = phi i32 [ %100, %.thread63.2.thread ], [ 1, %.thread63.2 ]
  %105 = load i32, ptr %34, align 4, !tbaa !5
  %.fr88 = freeze i32 %105
  %.not89 = icmp sgt i32 %104, %.fr88
  %spec.select68.3 = select i1 %.not89, ptr @.str.54, ptr @.str.53
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68.3, i32 noundef %104)
  %107 = add nsw i32 %.049, 4
  br label %.thread63.4.thread

.thread63.3:                                      ; preds = %.thread63.2
  %108 = add nsw i32 %.049, 3
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %108)
  %110 = icmp ugt i32 %.049, -4
  br i1 %110, label %.thread63.4.thread, label %.thread63.4

.thread63.4.thread:                               ; preds = %.thread63.3, %.thread63.3.thread
  %111 = phi i32 [ %107, %.thread63.3.thread ], [ 1, %.thread63.3 ]
  %112 = load i32, ptr %34, align 4, !tbaa !5
  %.fr90 = freeze i32 %112
  %.not91 = icmp sgt i32 %111, %.fr90
  %spec.select68.4 = select i1 %.not91, ptr @.str.54, ptr @.str.53
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68.4, i32 noundef %111)
  %114 = add nsw i32 %.049, 5
  br label %.thread63.5.thread

.thread63.4:                                      ; preds = %.thread63.3
  %115 = add nsw i32 %.049, 4
  %116 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %115)
  %117 = icmp eq i32 %.049, -4
  br i1 %117, label %.thread63.5.thread, label %.thread63.5

.thread63.5.thread:                               ; preds = %.thread63.4, %.thread63.4.thread
  %118 = phi i32 [ %114, %.thread63.4.thread ], [ 1, %.thread63.4 ]
  %119 = load i32, ptr %34, align 4, !tbaa !5
  %.fr92 = freeze i32 %119
  %.not93 = icmp sgt i32 %118, %.fr92
  %spec.select68.5 = select i1 %.not93, ptr @.str.54, ptr @.str.53
  %120 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select68.5, i32 noundef %118)
  %121 = add nsw i32 %.049, 6
  br label %126

.thread63.5:                                      ; preds = %.thread63.4
  %122 = add nsw i32 %.049, 5
  %123 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %122)
  %124 = add nsw i32 %.049, 6
  %125 = icmp ugt i32 %.049, -6
  br i1 %125, label %126, label %.thread63.6

126:                                              ; preds = %.thread63.5.thread, %.thread63.5
  %127 = phi i32 [ %121, %.thread63.5.thread ], [ 1, %.thread63.5 ]
  %128 = load i32, ptr %34, align 4, !tbaa !5
  %129 = icmp sle i32 %127, %128
  %cond.fr62.6 = freeze i1 %129
  %spec.select68.6 = select i1 %cond.fr62.6, ptr @.str.53, ptr @.str.54
  br label %.thread63.6

.thread63.6:                                      ; preds = %126, %.thread63.5
  %130 = phi i32 [ %124, %.thread63.5 ], [ %127, %126 ]
  %131 = phi ptr [ @.str.54, %.thread63.5 ], [ %spec.select68.6, %126 ]
  %132 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %131, i32 noundef %130)
  %133 = add nsw i32 %.049, 7
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55)
  %135 = icmp sgt i32 %.048, 0
  br i1 %135, label %.thread66.thread, label %.thread66

.thread66.thread:                                 ; preds = %.thread63.6
  %136 = load i32, ptr %34, align 4, !tbaa !5
  %137 = icmp sle i32 %.048, %136
  %cond.fr65 = freeze i1 %137
  %spec.select69 = select i1 %cond.fr65, ptr @.str.53, ptr @.str.54
  %138 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69, i32 noundef %.048)
  %139 = add nuw nsw i32 %.048, 1
  br label %.thread66.1.thread

.thread66:                                        ; preds = %.thread63.6
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %.048)
  %141 = icmp sgt i32 %.048, -1
  br i1 %141, label %.thread66.1.thread, label %.thread66.1

.thread66.1.thread:                               ; preds = %.thread66, %.thread66.thread
  %142 = phi i32 [ %139, %.thread66.thread ], [ 1, %.thread66 ]
  %143 = load i32, ptr %34, align 4, !tbaa !5
  %144 = icmp slt i32 %.048, %143
  %cond.fr65.1 = freeze i1 %144
  %spec.select69.1 = select i1 %cond.fr65.1, ptr @.str.53, ptr @.str.54
  %145 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69.1, i32 noundef %142)
  %146 = add nuw nsw i32 %.048, 2
  br label %.thread66.2.thread

.thread66.1:                                      ; preds = %.thread66
  %147 = add nsw i32 %.048, 1
  %148 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %147)
  %149 = icmp eq i32 %.048, -1
  br i1 %149, label %.thread66.2.thread, label %.thread66.2

.thread66.2.thread:                               ; preds = %.thread66.1, %.thread66.1.thread
  %150 = phi i32 [ %146, %.thread66.1.thread ], [ 1, %.thread66.1 ]
  %151 = load i32, ptr %34, align 4, !tbaa !5
  %.fr94 = freeze i32 %151
  %.not95 = icmp sgt i32 %150, %.fr94
  %spec.select69.2 = select i1 %.not95, ptr @.str.54, ptr @.str.53
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69.2, i32 noundef %150)
  %153 = add nsw i32 %.048, 3
  br label %.thread66.3.thread

.thread66.2:                                      ; preds = %.thread66.1
  %154 = add nsw i32 %.048, 2
  %155 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %154)
  %156 = icmp eq i32 %.048, -2
  br i1 %156, label %.thread66.3.thread, label %.thread66.3

.thread66.3.thread:                               ; preds = %.thread66.2, %.thread66.2.thread
  %157 = phi i32 [ %153, %.thread66.2.thread ], [ 1, %.thread66.2 ]
  %158 = load i32, ptr %34, align 4, !tbaa !5
  %.fr96 = freeze i32 %158
  %.not97 = icmp sgt i32 %157, %.fr96
  %spec.select69.3 = select i1 %.not97, ptr @.str.54, ptr @.str.53
  %159 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69.3, i32 noundef %157)
  %160 = add nsw i32 %.048, 4
  br label %.thread66.4.thread

.thread66.3:                                      ; preds = %.thread66.2
  %161 = add nsw i32 %.048, 3
  %162 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %161)
  %163 = icmp ugt i32 %.048, -4
  br i1 %163, label %.thread66.4.thread, label %.thread66.4

.thread66.4.thread:                               ; preds = %.thread66.3, %.thread66.3.thread
  %164 = phi i32 [ %160, %.thread66.3.thread ], [ 1, %.thread66.3 ]
  %165 = load i32, ptr %34, align 4, !tbaa !5
  %.fr98 = freeze i32 %165
  %.not99 = icmp sgt i32 %164, %.fr98
  %spec.select69.4 = select i1 %.not99, ptr @.str.54, ptr @.str.53
  %166 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69.4, i32 noundef %164)
  %167 = add nsw i32 %.048, 5
  br label %.thread66.5.thread

.thread66.4:                                      ; preds = %.thread66.3
  %168 = add nsw i32 %.048, 4
  %169 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %168)
  %170 = icmp eq i32 %.048, -4
  br i1 %170, label %.thread66.5.thread, label %.thread66.5

.thread66.5.thread:                               ; preds = %.thread66.4, %.thread66.4.thread
  %171 = phi i32 [ %167, %.thread66.4.thread ], [ 1, %.thread66.4 ]
  %172 = load i32, ptr %34, align 4, !tbaa !5
  %.fr100 = freeze i32 %172
  %.not101 = icmp sgt i32 %171, %.fr100
  %spec.select69.5 = select i1 %.not101, ptr @.str.54, ptr @.str.53
  %173 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %spec.select69.5, i32 noundef %171)
  %174 = add nsw i32 %.048, 6
  br label %179

.thread66.5:                                      ; preds = %.thread66.4
  %175 = add nsw i32 %.048, 5
  %176 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %175)
  %177 = add nsw i32 %.048, 6
  %178 = icmp ugt i32 %.048, -6
  br i1 %178, label %179, label %.thread66.6

179:                                              ; preds = %.thread66.5.thread, %.thread66.5
  %180 = phi i32 [ %174, %.thread66.5.thread ], [ 1, %.thread66.5 ]
  %181 = load i32, ptr %34, align 4, !tbaa !5
  %182 = icmp sle i32 %180, %181
  %cond.fr65.6 = freeze i1 %182
  %spec.select69.6 = select i1 %cond.fr65.6, ptr @.str.53, ptr @.str.54
  br label %.thread66.6

.thread66.6:                                      ; preds = %179, %.thread66.5
  %183 = phi i32 [ %177, %.thread66.5 ], [ %180, %179 ]
  %184 = phi ptr [ @.str.54, %.thread66.5 ], [ %spec.select69.6, %179 ]
  %185 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %184, i32 noundef %183)
  %186 = add nsw i32 %.048, 7
  %187 = add nsw i32 %.051, 7
  %188 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.56)
  br label %35, !llvm.loop !13

189:                                              ; preds = %38
  %190 = add nsw i32 %39, %.05480
  %191 = srem i32 %190, 7
  %192 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 %indvars.iv.next
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = add nsw i32 %193, %191
  %195 = srem i32 %194, 7
  %196 = add nuw nsw i64 %indvars.iv, 4
  %197 = getelementptr inbounds [14 x i32], ptr %2, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %195, %198
  %.054 = srem i32 %199, 7
  %200 = icmp ult i64 %indvars.iv, 9
  br i1 %200, label %22, label %21, !llvm.loop !15
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nofree nounwind willreturn "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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 20}
!10 = !{!"tm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !11, i64 40, !12, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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