; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/spell (main)

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@stdout = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [12 x [31 x i8]], align 16
  %7 = alloca [31 x i8], align 16
  %8 = alloca [31 x i8], align 16
  %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
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 372, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 31, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 31, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %17 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 0
  %18 = getelementptr inbounds [31 x i8], ptr %17, i64 0, i64 0
  %19 = call ptr @strcpy(ptr noundef %18, ptr noundef @.str) #7
  %20 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 1
  %21 = getelementptr inbounds [31 x i8], ptr %20, i64 0, i64 0
  %22 = call ptr @strcpy(ptr noundef %21, ptr noundef @.str.1) #7
  %23 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 2
  %24 = getelementptr inbounds [31 x i8], ptr %23, i64 0, i64 0
  %25 = call ptr @strcpy(ptr noundef %24, ptr noundef @.str.2) #7
  %26 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 3
  %27 = getelementptr inbounds [31 x i8], ptr %26, i64 0, i64 0
  %28 = call ptr @strcpy(ptr noundef %27, ptr noundef @.str.3) #7
  %29 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 4
  %30 = getelementptr inbounds [31 x i8], ptr %29, i64 0, i64 0
  %31 = call ptr @strcpy(ptr noundef %30, ptr noundef @.str.4) #7
  %32 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 5
  %33 = getelementptr inbounds [31 x i8], ptr %32, i64 0, i64 0
  %34 = call ptr @strcpy(ptr noundef %33, ptr noundef @.str.5) #7
  %35 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 6
  %36 = getelementptr inbounds [31 x i8], ptr %35, i64 0, i64 0
  %37 = call ptr @strcpy(ptr noundef %36, ptr noundef @.str.6) #7
  %38 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 7
  %39 = getelementptr inbounds [31 x i8], ptr %38, i64 0, i64 0
  %40 = call ptr @strcpy(ptr noundef %39, ptr noundef @.str.7) #7
  %41 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 8
  %42 = getelementptr inbounds [31 x i8], ptr %41, i64 0, i64 0
  %43 = call ptr @strcpy(ptr noundef %42, ptr noundef @.str.8) #7
  %44 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 9
  %45 = getelementptr inbounds [31 x i8], ptr %44, i64 0, i64 0
  %46 = call ptr @strcpy(ptr noundef %45, ptr noundef @.str.9) #7
  %47 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 10
  %48 = getelementptr inbounds [31 x i8], ptr %47, i64 0, i64 0
  %49 = call ptr @strcpy(ptr noundef %48, ptr noundef @.str.10) #7
  %50 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 11
  %51 = getelementptr inbounds [31 x i8], ptr %50, i64 0, i64 0
  %52 = call ptr @strcpy(ptr noundef %51, ptr noundef @.str.11) #7
  %53 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 0
  %54 = call i32 @issort(ptr noundef %53, i32 noundef 12, i32 noundef 31, ptr noundef @compare_str)
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %187

57:                                               ; preds = %2
  %58 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %59 = call ptr @strcpy(ptr noundef %58, ptr noundef @.str.12) #7
  %60 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %60, i8 0, i64 31, i1 false)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %84, %57
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %65 = call i64 @strlen(ptr noundef %64) #8
  %66 = icmp ult i64 %63, %65
  br i1 %66, label %67, label %87

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %68 = call ptr @__ctype_toupper_loc() #9
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %69, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %77, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %78, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = trunc i32 %79 to i8
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 %82
  store i8 %80, ptr %83, align 1, !tbaa !11
  br label %84

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

87:                                               ; preds = %61
  %88 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 0
  %89 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  %90 = call i32 @spell(ptr noundef %88, i32 noundef 12, ptr noundef %89)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %96

92:                                               ; preds = %87
  %93 = load ptr, ptr @stdout, align 8, !tbaa !9
  %94 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.13, ptr noundef %94) #7
  br label %100

96:                                               ; preds = %87
  %97 = load ptr, ptr @stdout, align 8, !tbaa !9
  %98 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.14, ptr noundef %98) #7
  br label %100

100:                                              ; preds = %96, %92
  %101 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %102 = call ptr @strcpy(ptr noundef %101, ptr noundef @.str.15) #7
  %103 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %103, i8 0, i64 31, i1 false)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %127, %100
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %108 = call i64 @strlen(ptr noundef %107) #8
  %109 = icmp ult i64 %106, %108
  br i1 %109, label %110, label %130

110:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %111 = call ptr @__ctype_toupper_loc() #9
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = sext i8 %116 to i32
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %112, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  store i32 %120, ptr %13, align 4, !tbaa !5
  %121 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %121, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = trunc i32 %122 to i8
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 %125
  store i8 %123, ptr %126, align 1, !tbaa !11
  br label %127

127:                                              ; preds = %110
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %9, align 4, !tbaa !5
  br label %104, !llvm.loop !14

130:                                              ; preds = %104
  %131 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 0
  %132 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  %133 = call i32 @spell(ptr noundef %131, i32 noundef 12, ptr noundef %132)
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %139

135:                                              ; preds = %130
  %136 = load ptr, ptr @stdout, align 8, !tbaa !9
  %137 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13, ptr noundef %137) #7
  br label %143

139:                                              ; preds = %130
  %140 = load ptr, ptr @stdout, align 8, !tbaa !9
  %141 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.14, ptr noundef %141) #7
  br label %143

143:                                              ; preds = %139, %135
  %144 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %145 = call ptr @strcpy(ptr noundef %144, ptr noundef @.str.16) #7
  %146 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %146, i8 0, i64 31, i1 false)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %170, %143
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %151 = call i64 @strlen(ptr noundef %150) #8
  %152 = icmp ult i64 %149, %151
  br i1 %152, label %153, label %173

153:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %154 = call ptr @__ctype_toupper_loc() #9
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !11
  %160 = sext i8 %159 to i32
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %155, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  store i32 %163, ptr %15, align 4, !tbaa !5
  %164 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %164, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  %165 = load i32, ptr %16, align 4, !tbaa !5
  %166 = trunc i32 %165 to i8
  %167 = load i32, ptr %9, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 %168
  store i8 %166, ptr %169, align 1, !tbaa !11
  br label %170

170:                                              ; preds = %153
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !5
  br label %147, !llvm.loop !15

173:                                              ; preds = %147
  %174 = getelementptr inbounds [12 x [31 x i8]], ptr %6, i64 0, i64 0
  %175 = getelementptr inbounds [31 x i8], ptr %8, i64 0, i64 0
  %176 = call i32 @spell(ptr noundef %174, i32 noundef 12, ptr noundef %175)
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %182

178:                                              ; preds = %173
  %179 = load ptr, ptr @stdout, align 8, !tbaa !9
  %180 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.13, ptr noundef %180) #7
  br label %186

182:                                              ; preds = %173
  %183 = load ptr, ptr @stdout, align 8, !tbaa !9
  %184 = getelementptr inbounds [31 x i8], ptr %7, i64 0, i64 0
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.14, ptr noundef %184) #7
  br label %186

186:                                              ; preds = %182, %178
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %187

187:                                              ; preds = %186, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 372, ptr %6) #7
  %188 = load i32, ptr %3, align 4
  ret i32 %188
}

; 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 ptr @strcpy(ptr noundef, ptr noundef) #2

declare i32 @issort(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_str(ptr noundef, 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) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() #6

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

declare i32 @spell(ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind willreturn memory(read) "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 #6 = { nounwind willreturn memory(none) "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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind willreturn memory(none) }

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [12 x [31 x i8]], align 16
  %4 = alloca [31 x i8], align 16
  %5 = alloca [31 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 372, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 31, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 31, ptr nonnull %5) #8
  %6 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #8
  %7 = getelementptr inbounds i8, ptr %3, i64 31
  %8 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.1) #8
  %9 = getelementptr inbounds i8, ptr %3, i64 62
  %10 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.2) #8
  %11 = getelementptr inbounds i8, ptr %3, i64 93
  %12 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.3) #8
  %13 = getelementptr inbounds i8, ptr %3, i64 124
  %14 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.4) #8
  %15 = getelementptr inbounds i8, ptr %3, i64 155
  %16 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.5) #8
  %17 = getelementptr inbounds i8, ptr %3, i64 186
  %18 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.6) #8
  %19 = getelementptr inbounds i8, ptr %3, i64 217
  %20 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.7) #8
  %21 = getelementptr inbounds i8, ptr %3, i64 248
  %22 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.8) #8
  %23 = getelementptr inbounds i8, ptr %3, i64 279
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.9) #8
  %25 = getelementptr inbounds i8, ptr %3, i64 310
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.10) #8
  %27 = getelementptr inbounds i8, ptr %3, i64 341
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.11) #8
  %29 = call i32 @issort(ptr noundef nonnull %3, i32 noundef 12, i32 noundef 31, ptr noundef nonnull @compare_str) #8
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %30, label %170

30:                                               ; preds = %2
  %31 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.12) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(31) %5, i8 0, i64 31, i1 false)
  %32 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #9
  %.not35 = icmp eq i64 %32, 0
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %33 = tail call ptr @__ctype_toupper_loc() #10
  %.pre = load ptr, ptr %33, align 8, !tbaa !5
  %xtraiter = and i64 %32, 3
  %34 = icmp ult i64 %32, 4
  br i1 %34, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %32, -4
  br label %35

35:                                               ; preds = %35, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %35 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %35 ]
  %36 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv
  %37 = load i8, ptr %36, align 4, !tbaa !9
  %38 = sext i8 %37 to i64
  %39 = getelementptr inbounds i32, ptr %.pre, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !10
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv
  store i8 %41, ptr %42, align 4, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %43 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = sext i8 %44 to i64
  %46 = getelementptr inbounds i32, ptr %.pre, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !10
  %48 = trunc i32 %47 to i8
  %49 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next
  store i8 %48, ptr %49, align 1, !tbaa !9
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %50 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next.1
  %51 = load i8, ptr %50, align 2, !tbaa !9
  %52 = sext i8 %51 to i64
  %53 = getelementptr inbounds i32, ptr %.pre, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !10
  %55 = trunc i32 %54 to i8
  %56 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next.1
  store i8 %55, ptr %56, align 2, !tbaa !9
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %57 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next.2
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = sext i8 %58 to i64
  %60 = getelementptr inbounds i32, ptr %.pre, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !10
  %62 = trunc i32 %61 to i8
  %63 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next.2
  store i8 %62, ptr %63, align 1, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %35, !llvm.loop !12

._crit_edge.loopexit.unr-lcssa:                   ; preds = %35, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %35 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %64 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.epil
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = sext i8 %65 to i64
  %67 = getelementptr inbounds i32, ptr %.pre, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !10
  %69 = trunc i32 %68 to i8
  %70 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.epil
  store i8 %69, ptr %70, align 1, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %30
  %71 = call i32 @spell(ptr noundef nonnull %3, i32 noundef 12, ptr noundef nonnull %5) #8
  %.not23 = icmp eq i32 %71, 0
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.14..str.13 = select i1 %.not23, ptr @.str.14, ptr @.str.13
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull %.str.14..str.13, ptr noundef nonnull %4) #8
  %74 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.15) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(31) %5, i8 0, i64 31, i1 false)
  %75 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #9
  %.not36 = icmp eq i64 %75, 0
  br i1 %.not36, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %._crit_edge
  %76 = tail call ptr @__ctype_toupper_loc() #10
  %xtraiter51 = and i64 %75, 3
  %77 = icmp ult i64 %75, 4
  br i1 %77, label %._crit_edge30.loopexit.unr-lcssa, label %.lr.ph29.new

.lr.ph29.new:                                     ; preds = %.lr.ph29
  %unroll_iter54 = and i64 %75, -4
  br label %78

78:                                               ; preds = %78, %.lr.ph29.new
  %indvars.iv39 = phi i64 [ 0, %.lr.ph29.new ], [ %indvars.iv.next40.3, %78 ]
  %niter55 = phi i64 [ 0, %.lr.ph29.new ], [ %niter55.next.3, %78 ]
  %79 = load ptr, ptr %76, align 8, !tbaa !5
  %80 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv39
  %81 = load i8, ptr %80, align 4, !tbaa !9
  %82 = sext i8 %81 to i64
  %83 = getelementptr inbounds i32, ptr %79, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !10
  %85 = trunc i32 %84 to i8
  %86 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv39
  store i8 %85, ptr %86, align 4, !tbaa !9
  %indvars.iv.next40 = or disjoint i64 %indvars.iv39, 1
  %87 = load ptr, ptr %76, align 8, !tbaa !5
  %88 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next40
  %89 = load i8, ptr %88, align 1, !tbaa !9
  %90 = sext i8 %89 to i64
  %91 = getelementptr inbounds i32, ptr %87, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !10
  %93 = trunc i32 %92 to i8
  %94 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next40
  store i8 %93, ptr %94, align 1, !tbaa !9
  %indvars.iv.next40.1 = or disjoint i64 %indvars.iv39, 2
  %95 = load ptr, ptr %76, align 8, !tbaa !5
  %96 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next40.1
  %97 = load i8, ptr %96, align 2, !tbaa !9
  %98 = sext i8 %97 to i64
  %99 = getelementptr inbounds i32, ptr %95, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !10
  %101 = trunc i32 %100 to i8
  %102 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next40.1
  store i8 %101, ptr %102, align 2, !tbaa !9
  %indvars.iv.next40.2 = or disjoint i64 %indvars.iv39, 3
  %103 = load ptr, ptr %76, align 8, !tbaa !5
  %104 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next40.2
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = sext i8 %105 to i64
  %107 = getelementptr inbounds i32, ptr %103, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !10
  %109 = trunc i32 %108 to i8
  %110 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next40.2
  store i8 %109, ptr %110, align 1, !tbaa !9
  %indvars.iv.next40.3 = add nuw nsw i64 %indvars.iv39, 4
  %niter55.next.3 = add i64 %niter55, 4
  %niter55.ncmp.3 = icmp eq i64 %niter55.next.3, %unroll_iter54
  br i1 %niter55.ncmp.3, label %._crit_edge30.loopexit.unr-lcssa, label %78, !llvm.loop !16

._crit_edge30.loopexit.unr-lcssa:                 ; preds = %78, %.lr.ph29
  %indvars.iv39.unr = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next40.3, %78 ]
  %lcmp.mod53.not = icmp eq i64 %xtraiter51, 0
  br i1 %lcmp.mod53.not, label %._crit_edge30, label %.epil.preheader50

.epil.preheader50:                                ; preds = %._crit_edge30.loopexit.unr-lcssa, %.epil.preheader50
  %indvars.iv39.epil = phi i64 [ %indvars.iv.next40.epil, %.epil.preheader50 ], [ %indvars.iv39.unr, %._crit_edge30.loopexit.unr-lcssa ]
  %epil.iter52 = phi i64 [ %epil.iter52.next, %.epil.preheader50 ], [ 0, %._crit_edge30.loopexit.unr-lcssa ]
  %111 = load ptr, ptr %76, align 8, !tbaa !5
  %112 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv39.epil
  %113 = load i8, ptr %112, align 1, !tbaa !9
  %114 = sext i8 %113 to i64
  %115 = getelementptr inbounds i32, ptr %111, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !10
  %117 = trunc i32 %116 to i8
  %118 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv39.epil
  store i8 %117, ptr %118, align 1, !tbaa !9
  %indvars.iv.next40.epil = add nuw nsw i64 %indvars.iv39.epil, 1
  %epil.iter52.next = add i64 %epil.iter52, 1
  %epil.iter52.cmp.not = icmp eq i64 %epil.iter52.next, %xtraiter51
  br i1 %epil.iter52.cmp.not, label %._crit_edge30, label %.epil.preheader50, !llvm.loop !17

._crit_edge30:                                    ; preds = %._crit_edge30.loopexit.unr-lcssa, %.epil.preheader50, %._crit_edge
  %119 = call i32 @spell(ptr noundef nonnull %3, i32 noundef 12, ptr noundef nonnull %5) #8
  %.not24 = icmp eq i32 %119, 0
  %120 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.14..str.1348 = select i1 %.not24, ptr @.str.14, ptr @.str.13
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull %.str.14..str.1348, ptr noundef nonnull %4) #8
  %122 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.16) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(31) %5, i8 0, i64 31, i1 false)
  %123 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #9
  %.not37 = icmp eq i64 %123, 0
  br i1 %.not37, label %._crit_edge34, label %.lr.ph33

.lr.ph33:                                         ; preds = %._crit_edge30
  %124 = tail call ptr @__ctype_toupper_loc() #10
  %xtraiter57 = and i64 %123, 3
  %125 = icmp ult i64 %123, 4
  br i1 %125, label %._crit_edge34.loopexit.unr-lcssa, label %.lr.ph33.new

.lr.ph33.new:                                     ; preds = %.lr.ph33
  %unroll_iter60 = and i64 %123, -4
  br label %126

126:                                              ; preds = %126, %.lr.ph33.new
  %indvars.iv43 = phi i64 [ 0, %.lr.ph33.new ], [ %indvars.iv.next44.3, %126 ]
  %niter61 = phi i64 [ 0, %.lr.ph33.new ], [ %niter61.next.3, %126 ]
  %127 = load ptr, ptr %124, align 8, !tbaa !5
  %128 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv43
  %129 = load i8, ptr %128, align 4, !tbaa !9
  %130 = sext i8 %129 to i64
  %131 = getelementptr inbounds i32, ptr %127, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !10
  %133 = trunc i32 %132 to i8
  %134 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv43
  store i8 %133, ptr %134, align 4, !tbaa !9
  %indvars.iv.next44 = or disjoint i64 %indvars.iv43, 1
  %135 = load ptr, ptr %124, align 8, !tbaa !5
  %136 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next44
  %137 = load i8, ptr %136, align 1, !tbaa !9
  %138 = sext i8 %137 to i64
  %139 = getelementptr inbounds i32, ptr %135, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !10
  %141 = trunc i32 %140 to i8
  %142 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next44
  store i8 %141, ptr %142, align 1, !tbaa !9
  %indvars.iv.next44.1 = or disjoint i64 %indvars.iv43, 2
  %143 = load ptr, ptr %124, align 8, !tbaa !5
  %144 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next44.1
  %145 = load i8, ptr %144, align 2, !tbaa !9
  %146 = sext i8 %145 to i64
  %147 = getelementptr inbounds i32, ptr %143, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !10
  %149 = trunc i32 %148 to i8
  %150 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next44.1
  store i8 %149, ptr %150, align 2, !tbaa !9
  %indvars.iv.next44.2 = or disjoint i64 %indvars.iv43, 3
  %151 = load ptr, ptr %124, align 8, !tbaa !5
  %152 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv.next44.2
  %153 = load i8, ptr %152, align 1, !tbaa !9
  %154 = sext i8 %153 to i64
  %155 = getelementptr inbounds i32, ptr %151, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !10
  %157 = trunc i32 %156 to i8
  %158 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv.next44.2
  store i8 %157, ptr %158, align 1, !tbaa !9
  %indvars.iv.next44.3 = add nuw nsw i64 %indvars.iv43, 4
  %niter61.next.3 = add i64 %niter61, 4
  %niter61.ncmp.3 = icmp eq i64 %niter61.next.3, %unroll_iter60
  br i1 %niter61.ncmp.3, label %._crit_edge34.loopexit.unr-lcssa, label %126, !llvm.loop !18

._crit_edge34.loopexit.unr-lcssa:                 ; preds = %126, %.lr.ph33
  %indvars.iv43.unr = phi i64 [ 0, %.lr.ph33 ], [ %indvars.iv.next44.3, %126 ]
  %lcmp.mod59.not = icmp eq i64 %xtraiter57, 0
  br i1 %lcmp.mod59.not, label %._crit_edge34, label %.epil.preheader56

.epil.preheader56:                                ; preds = %._crit_edge34.loopexit.unr-lcssa, %.epil.preheader56
  %indvars.iv43.epil = phi i64 [ %indvars.iv.next44.epil, %.epil.preheader56 ], [ %indvars.iv43.unr, %._crit_edge34.loopexit.unr-lcssa ]
  %epil.iter58 = phi i64 [ %epil.iter58.next, %.epil.preheader56 ], [ 0, %._crit_edge34.loopexit.unr-lcssa ]
  %159 = load ptr, ptr %124, align 8, !tbaa !5
  %160 = getelementptr inbounds [31 x i8], ptr %4, i64 0, i64 %indvars.iv43.epil
  %161 = load i8, ptr %160, align 1, !tbaa !9
  %162 = sext i8 %161 to i64
  %163 = getelementptr inbounds i32, ptr %159, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !10
  %165 = trunc i32 %164 to i8
  %166 = getelementptr inbounds [31 x i8], ptr %5, i64 0, i64 %indvars.iv43.epil
  store i8 %165, ptr %166, align 1, !tbaa !9
  %indvars.iv.next44.epil = add nuw nsw i64 %indvars.iv43.epil, 1
  %epil.iter58.next = add i64 %epil.iter58, 1
  %epil.iter58.cmp.not = icmp eq i64 %epil.iter58.next, %xtraiter57
  br i1 %epil.iter58.cmp.not, label %._crit_edge34, label %.epil.preheader56, !llvm.loop !19

._crit_edge34:                                    ; preds = %._crit_edge34.loopexit.unr-lcssa, %.epil.preheader56, %._crit_edge30
  %167 = call i32 @spell(ptr noundef nonnull %3, i32 noundef 12, ptr noundef nonnull %5) #8
  %.not25 = icmp eq i32 %167, 0
  %168 = load ptr, ptr @stdout, align 8, !tbaa !5
  %.str.14..str.1349 = select i1 %.not25, ptr @.str.14, ptr @.str.13
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef nonnull %.str.14..str.1349, ptr noundef nonnull %4) #8
  br label %170

170:                                              ; preds = %._crit_edge34, %2
  %.0 = phi i32 [ 1, %2 ], [ 0, %._crit_edge34 ]
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 372, ptr nonnull %3) #8
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

declare i32 @issort(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_str(ptr noundef, ptr noundef) #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #6

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

declare i32 @spell(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind willreturn memory(none) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !15}


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