; LLVM IR from gunrock/gunrock :: include/gunrock/io/detail (mmio)

; 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.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 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: mustprogress uwtable
define dso_local i32 @mm_read_banner(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [1025 x i8], align 16
  %7 = alloca [64 x i8], align 16
  %8 = alloca [64 x i8], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca [64 x i8], align 16
  %11 = alloca [64 x i8], align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1025, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 2
  store i8 32, ptr %15, align 1, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 1
  store i8 32, ptr %17, align 1, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds [4 x i8], ptr %18, i64 0, i64 0
  store i8 32, ptr %19, align 1, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 3
  store i8 71, ptr %21, align 1, !tbaa !9
  %22 = getelementptr inbounds [1025 x i8], ptr %6, i64 0, i64 0
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call ptr @fgets(ptr noundef %22, i32 noundef 1025, ptr noundef %23)
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  store i32 12, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

27:                                               ; preds = %2
  %28 = getelementptr inbounds [1025 x i8], ptr %6, i64 0, i64 0
  %29 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %30 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
  %31 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %32 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %33 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %34 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %28, ptr noundef @.str.8, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33) #5
  %35 = icmp ne i32 %34, 5
  br i1 %35, label %36, label %37

36:                                               ; preds = %27
  store i32 12, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

37:                                               ; preds = %27
  %38 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
  store ptr %38, ptr %12, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %45, %37
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %54

44:                                               ; preds = %39
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = sext i8 %47 to i32
  %49 = call i32 @tolower(i32 noundef %48) #6
  %50 = trunc i32 %49 to i8
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 %50, ptr %51, align 1, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i32 1
  store ptr %53, ptr %12, align 8, !tbaa !5
  br label %39, !llvm.loop !10

54:                                               ; preds = %39
  %55 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  store ptr %55, ptr %12, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %62, %54
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = sext i8 %58 to i32
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %71

61:                                               ; preds = %56
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = sext i8 %64 to i32
  %66 = call i32 @tolower(i32 noundef %65) #6
  %67 = trunc i32 %66 to i8
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 %67, ptr %68, align 1, !tbaa !9
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i32 1
  store ptr %70, ptr %12, align 8, !tbaa !5
  br label %56, !llvm.loop !12

71:                                               ; preds = %56
  %72 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  store ptr %72, ptr %12, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %79, %71
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 1, !tbaa !9
  %76 = sext i8 %75 to i32
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %88

78:                                               ; preds = %73
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %82 = sext i8 %81 to i32
  %83 = call i32 @tolower(i32 noundef %82) #6
  %84 = trunc i32 %83 to i8
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 %84, ptr %85, align 1, !tbaa !9
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %12, align 8, !tbaa !5
  br label %73, !llvm.loop !13

88:                                               ; preds = %73
  %89 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  store ptr %89, ptr %12, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %96, %88
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load i8, ptr %91, align 1, !tbaa !9
  %93 = sext i8 %92 to i32
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %105

95:                                               ; preds = %90
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i8, ptr %97, align 1, !tbaa !9
  %99 = sext i8 %98 to i32
  %100 = call i32 @tolower(i32 noundef %99) #6
  %101 = trunc i32 %100 to i8
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 %101, ptr %102, align 1, !tbaa !9
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i32 1
  store ptr %104, ptr %12, align 8, !tbaa !5
  br label %90, !llvm.loop !14

105:                                              ; preds = %90
  %106 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
  %107 = call i32 @strncmp(ptr noundef %106, ptr noundef @.str.9, i64 noundef 14) #6
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %105
  store i32 14, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

110:                                              ; preds = %105
  %111 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.10) #6
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  store i32 15, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

115:                                              ; preds = %110
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds [4 x i8], ptr %116, i64 0, i64 0
  store i8 77, ptr %117, align 1, !tbaa !9
  %118 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %119 = call i32 @strcmp(ptr noundef %118, ptr noundef @.str.11) #6
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %124

121:                                              ; preds = %115
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds [4 x i8], ptr %122, i64 0, i64 1
  store i8 67, ptr %123, align 1, !tbaa !9
  br label %133

124:                                              ; preds = %115
  %125 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %126 = call i32 @strcmp(ptr noundef %125, ptr noundef @.str.12) #6
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %124
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds [4 x i8], ptr %129, i64 0, i64 1
  store i8 65, ptr %130, align 1, !tbaa !9
  br label %132

131:                                              ; preds = %124
  store i32 15, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

132:                                              ; preds = %128
  br label %133

133:                                              ; preds = %132, %121
  %134 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %135 = call i32 @strcmp(ptr noundef %134, ptr noundef @.str.13) #6
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %140

137:                                              ; preds = %133
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds [4 x i8], ptr %138, i64 0, i64 2
  store i8 82, ptr %139, align 1, !tbaa !9
  br label %165

140:                                              ; preds = %133
  %141 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %142 = call i32 @strcmp(ptr noundef %141, ptr noundef @.str.14) #6
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %147

144:                                              ; preds = %140
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds [4 x i8], ptr %145, i64 0, i64 2
  store i8 67, ptr %146, align 1, !tbaa !9
  br label %164

147:                                              ; preds = %140
  %148 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %149 = call i32 @strcmp(ptr noundef %148, ptr noundef @.str.15) #6
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %154

151:                                              ; preds = %147
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds [4 x i8], ptr %152, i64 0, i64 2
  store i8 80, ptr %153, align 1, !tbaa !9
  br label %163

154:                                              ; preds = %147
  %155 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %156 = call i32 @strcmp(ptr noundef %155, ptr noundef @.str.16) #6
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %161

158:                                              ; preds = %154
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds [4 x i8], ptr %159, i64 0, i64 2
  store i8 73, ptr %160, align 1, !tbaa !9
  br label %162

161:                                              ; preds = %154
  store i32 15, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

162:                                              ; preds = %158
  br label %163

163:                                              ; preds = %162, %151
  br label %164

164:                                              ; preds = %163, %144
  br label %165

165:                                              ; preds = %164, %137
  %166 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %167 = call i32 @strcmp(ptr noundef %166, ptr noundef @.str.17) #6
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %172

169:                                              ; preds = %165
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds [4 x i8], ptr %170, i64 0, i64 3
  store i8 71, ptr %171, align 1, !tbaa !9
  br label %197

172:                                              ; preds = %165
  %173 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %174 = call i32 @strcmp(ptr noundef %173, ptr noundef @.str.18) #6
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %179

176:                                              ; preds = %172
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds [4 x i8], ptr %177, i64 0, i64 3
  store i8 83, ptr %178, align 1, !tbaa !9
  br label %196

179:                                              ; preds = %172
  %180 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %181 = call i32 @strcmp(ptr noundef %180, ptr noundef @.str.19) #6
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %186

183:                                              ; preds = %179
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds [4 x i8], ptr %184, i64 0, i64 3
  store i8 72, ptr %185, align 1, !tbaa !9
  br label %195

186:                                              ; preds = %179
  %187 = getelementptr inbounds [64 x i8], ptr %11, i64 0, i64 0
  %188 = call i32 @strcmp(ptr noundef %187, ptr noundef @.str.20) #6
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %193

190:                                              ; preds = %186
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds [4 x i8], ptr %191, i64 0, i64 3
  store i8 75, ptr %192, align 1, !tbaa !9
  br label %194

193:                                              ; preds = %186
  store i32 15, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

194:                                              ; preds = %190
  br label %195

195:                                              ; preds = %194, %183
  br label %196

196:                                              ; preds = %195, %176
  br label %197

197:                                              ; preds = %196, %169
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %198

198:                                              ; preds = %197, %193, %161, %131, %114, %109, %36, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1025, ptr %6) #5
  %199 = load i32, ptr %3, align 4
  ret i32 %199
}

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 "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 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


; 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.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 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 nofree nounwind uwtable
define dso_local range(i32 0, 16) i32 @mm_read_banner(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #1 {
  %3 = alloca [1025 x i8], align 16
  %4 = alloca [64 x i8], align 16
  %5 = alloca [64 x i8], align 16
  %6 = alloca [64 x i8], align 16
  %7 = alloca [64 x i8], align 16
  %8 = alloca [64 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1025, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  %9 = getelementptr inbounds i8, ptr %1, i64 2
  %10 = getelementptr inbounds i8, ptr %1, i64 1
  %11 = getelementptr inbounds i8, ptr %1, i64 3
  store <4 x i8> <i8 32, i8 32, i8 32, i8 71>, ptr %1, align 1, !tbaa !5
  %12 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1025, ptr noundef %0)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %77, label %14

14:                                               ; preds = %2
  %15 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #5
  %.not = icmp eq i32 %15, 5
  br i1 %.not, label %.preheader45, label %77

.preheader45:                                     ; preds = %14
  %16 = load i8, ptr %5, align 16, !tbaa !5
  %.not3746 = icmp eq i8 %16, 0
  br i1 %.not3746, label %.preheader44, label %.lr.ph

.preheader44:                                     ; preds = %.lr.ph, %.preheader45
  %17 = load i8, ptr %6, align 16, !tbaa !5
  %.not3848 = icmp eq i8 %17, 0
  br i1 %.not3848, label %.preheader43, label %.lr.ph50

.lr.ph:                                           ; preds = %.preheader45, %.lr.ph
  %18 = phi i8 [ %23, %.lr.ph ], [ %16, %.preheader45 ]
  %.047 = phi ptr [ %22, %.lr.ph ], [ %5, %.preheader45 ]
  %19 = sext i8 %18 to i32
  %20 = call i32 @tolower(i32 noundef %19) #6
  %21 = trunc i32 %20 to i8
  store i8 %21, ptr %.047, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %.047, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %.not37 = icmp eq i8 %23, 0
  br i1 %.not37, label %.preheader44, label %.lr.ph, !llvm.loop !8

.preheader43:                                     ; preds = %.lr.ph50, %.preheader44
  %24 = load i8, ptr %7, align 16, !tbaa !5
  %.not3951 = icmp eq i8 %24, 0
  br i1 %.not3951, label %.preheader, label %.lr.ph53

.lr.ph50:                                         ; preds = %.preheader44, %.lr.ph50
  %25 = phi i8 [ %30, %.lr.ph50 ], [ %17, %.preheader44 ]
  %.149 = phi ptr [ %29, %.lr.ph50 ], [ %6, %.preheader44 ]
  %26 = sext i8 %25 to i32
  %27 = call i32 @tolower(i32 noundef %26) #6
  %28 = trunc i32 %27 to i8
  store i8 %28, ptr %.149, align 1, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %.149, i64 1
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %.not38 = icmp eq i8 %30, 0
  br i1 %.not38, label %.preheader43, label %.lr.ph50, !llvm.loop !10

.preheader:                                       ; preds = %.lr.ph53, %.preheader43
  %31 = load i8, ptr %8, align 16, !tbaa !5
  %.not4054 = icmp eq i8 %31, 0
  br i1 %.not4054, label %._crit_edge, label %.lr.ph56

.lr.ph53:                                         ; preds = %.preheader43, %.lr.ph53
  %32 = phi i8 [ %37, %.lr.ph53 ], [ %24, %.preheader43 ]
  %.252 = phi ptr [ %36, %.lr.ph53 ], [ %7, %.preheader43 ]
  %33 = sext i8 %32 to i32
  %34 = call i32 @tolower(i32 noundef %33) #6
  %35 = trunc i32 %34 to i8
  store i8 %35, ptr %.252, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %.252, i64 1
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %.not39 = icmp eq i8 %37, 0
  br i1 %.not39, label %.preheader, label %.lr.ph53, !llvm.loop !11

.lr.ph56:                                         ; preds = %.preheader, %.lr.ph56
  %38 = phi i8 [ %43, %.lr.ph56 ], [ %31, %.preheader ]
  %.355 = phi ptr [ %42, %.lr.ph56 ], [ %8, %.preheader ]
  %39 = sext i8 %38 to i32
  %40 = call i32 @tolower(i32 noundef %39) #6
  %41 = trunc i32 %40 to i8
  store i8 %41, ptr %.355, align 1, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %.355, i64 1
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %.not40 = icmp eq i8 %43, 0
  br i1 %.not40, label %._crit_edge, label %.lr.ph56, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph56, %.preheader
  %44 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.9, i64 noundef 14) #6
  %.not41 = icmp eq i32 %44, 0
  br i1 %.not41, label %45, label %77

45:                                               ; preds = %._crit_edge
  %46 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.10) #6
  %.not42 = icmp eq i32 %46, 0
  br i1 %.not42, label %47, label %77

47:                                               ; preds = %45
  store i8 77, ptr %1, align 1, !tbaa !5
  %48 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.11) #6
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.12) #6
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %77

53:                                               ; preds = %50, %47
  %storemerge = phi i8 [ 67, %47 ], [ 65, %50 ]
  store i8 %storemerge, ptr %10, align 1, !tbaa !5
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.13) #6
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %65, label %56

56:                                               ; preds = %53
  %57 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.14) #6
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %65, label %59

59:                                               ; preds = %56
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.15) #6
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.16) #6
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %77

65:                                               ; preds = %62, %59, %56, %53
  %.sink = phi i8 [ 82, %53 ], [ 67, %56 ], [ 80, %59 ], [ 73, %62 ]
  store i8 %.sink, ptr %9, align 1, !tbaa !5
  %66 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.17) #6
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %.sink.split, label %68

68:                                               ; preds = %65
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.18) #6
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %.sink.split, label %71

71:                                               ; preds = %68
  %72 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.19) #6
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %.sink.split, label %74

74:                                               ; preds = %71
  %75 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.20) #6
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %.sink.split, label %77

.sink.split:                                      ; preds = %74, %71, %68, %65
  %.sink57 = phi i8 [ 71, %65 ], [ 83, %68 ], [ 72, %71 ], [ 75, %74 ]
  store i8 %.sink57, ptr %11, align 1, !tbaa !5
  br label %77

77:                                               ; preds = %.sink.split, %74, %62, %50, %45, %._crit_edge, %14, %2
  %.032 = phi i32 [ 12, %2 ], [ 12, %14 ], [ 14, %._crit_edge ], [ 15, %45 ], [ 15, %50 ], [ 15, %62 ], [ 15, %74 ], [ 0, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1025, ptr nonnull %3) #5
  ret i32 %.032
}

; 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 ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nofree 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = distinct !{!12, !9}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass