; LLVM IR from holzschu/ios_system :: awk-awk-35/src (maketab)

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

@.str.81 = external hidden unnamed_addr constant [1 x i8], align 1
@proc = external dso_local global [66 x %struct.xx], align 16
@.str.82 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [27 x i8], align 1
@stderr = external global ptr, align 8
@.str.85 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [20 x i8], align 1
@names = external dso_local global [98 x ptr], align 16
@.str.93 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [5 x i8], align 1
@table = external dso_local global [98 x ptr], align 16
@.str.96 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [3 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 ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca [200 x i8], align 16
  %13 = alloca [200 x i8], align 16
  %14 = alloca [200 x i8], align 16
  %15 = 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 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.82)
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.83)
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.84)
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp ne i32 %19, 2
  br i1 %20, label %21, label %24

21:                                               ; preds = %2
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.85) #6
  call void @exit(i32 noundef 1) #7
  unreachable

24:                                               ; preds = %2
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call noalias ptr @fopen(ptr noundef %27, ptr noundef @.str.86)
  store ptr %28, ptr %11, align 8, !tbaa !9
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %36

30:                                               ; preds = %24
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.87, ptr noundef %34) #6
  call void @exit(i32 noundef 1) #7
  unreachable

36:                                               ; preds = %24
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.88, i32 noundef 98)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %108, %104, %90, %83, %77, %65, %36
  %39 = getelementptr inbounds [200 x i8], ptr %12, i64 0, i64 0
  %40 = load ptr, ptr %11, align 8, !tbaa !9
  %41 = call ptr @fgets(ptr noundef %39, i32 noundef 200, ptr noundef %40)
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %114

43:                                               ; preds = %38
  %44 = load i32, ptr %15, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 1
  br i1 %45, label %46, label %68

46:                                               ; preds = %43
  %47 = getelementptr inbounds [200 x i8], ptr %12, i64 0, i64 0
  %48 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
  %49 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %50 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %47, ptr noundef @.str.89, ptr noundef %10, ptr noundef %48, ptr noundef %49, ptr noundef %9) #6
  store i32 %50, ptr %8, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 4
  br i1 %52, label %53, label %62

53:                                               ; preds = %46
  %54 = load i8, ptr %10, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 35
  br i1 %56, label %57, label %62

57:                                               ; preds = %53
  %58 = getelementptr inbounds [200 x i8], ptr %14, i64 0, i64 0
  %59 = call i32 @strcmp(ptr noundef %58, ptr noundef @.str.90) #8
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  store i32 2, ptr %15, align 4, !tbaa !5
  br label %67

62:                                               ; preds = %57, %53, %46
  %63 = load i32, ptr %15, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  br label %38, !llvm.loop !12

66:                                               ; preds = %62
  br label %67

67:                                               ; preds = %66, %61
  br label %68

68:                                               ; preds = %67, %43
  %69 = load i32, ptr %15, align 4, !tbaa !5
  %70 = icmp ne i32 %69, 2
  br i1 %70, label %71, label %79

71:                                               ; preds = %68
  %72 = getelementptr inbounds [200 x i8], ptr %12, i64 0, i64 0
  %73 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %74 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %72, ptr noundef @.str.91, ptr noundef %73, ptr noundef %9) #6
  store i32 %74, ptr %8, align 4, !tbaa !5
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 2
  br i1 %76, label %77, label %78

77:                                               ; preds = %71
  br label %38, !llvm.loop !12

78:                                               ; preds = %71
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %78, %68
  %80 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %81 = call i32 @strcmp(ptr noundef %80, ptr noundef @.str.92) #8
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %38, !llvm.loop !12

84:                                               ; preds = %79
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = icmp slt i32 %85, 258
  br i1 %86, label %90, label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = icmp sgt i32 %88, 355
  br i1 %89, label %90, label %91

90:                                               ; preds = %87, %84
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %38, !llvm.loop !12

91:                                               ; preds = %87
  %92 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %93 = call noalias ptr @strdup(ptr noundef %92) #6
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = sub nsw i32 %94, 258
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %96
  store ptr %93, ptr %97, align 8, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = sub nsw i32 %98, 258
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %108

104:                                              ; preds = %91
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.93, ptr noundef %106) #6
  br label %38, !llvm.loop !12

108:                                              ; preds = %91
  %109 = getelementptr inbounds [200 x i8], ptr %13, i64 0, i64 0
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.94, ptr noundef %109, i32 noundef %110)
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %38, !llvm.loop !12

114:                                              ; preds = %38
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.95)
  store ptr @proc, ptr %6, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %131, %114
  %117 = load ptr, ptr %6, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.xx, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !14
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %134

121:                                              ; preds = %116
  %122 = load ptr, ptr %6, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.xx, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = load ptr, ptr %6, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.xx, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !14
  %128 = sub nsw i32 %127, 258
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [98 x ptr], ptr @table, i64 0, i64 %129
  store ptr %124, ptr %130, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %121
  %132 = load ptr, ptr %6, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.xx, ptr %132, i32 1
  store ptr %133, ptr %6, align 8, !tbaa !9
  br label %116, !llvm.loop !17

134:                                              ; preds = %116
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.96, i32 noundef 98)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %167, %134
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = icmp slt i32 %137, 98
  br i1 %138, label %139, label %170

139:                                              ; preds = %136
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [98 x ptr], ptr @table, i64 0, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %150

145:                                              ; preds = %139
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [98 x ptr], ptr @table, i64 0, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  br label %151

150:                                              ; preds = %139
  br label %151

151:                                              ; preds = %150, %145
  %152 = phi ptr [ %149, %145 ], [ @.str.98, %150 ]
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %163

158:                                              ; preds = %151
  %159 = load i32, ptr %7, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  br label %164

163:                                              ; preds = %151
  br label %164

164:                                              ; preds = %163, %158
  %165 = phi ptr [ %162, %158 ], [ @.str.81, %163 ]
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, ptr noundef %152, ptr noundef %165)
  br label %167

167:                                              ; preds = %164
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %7, align 4, !tbaa !5
  br label %136, !llvm.loop !18

170:                                              ; preds = %136
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.95)
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.99)
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.100)
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.101)
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.102)
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.103)
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.104)
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.105)
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.106)
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.107)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i32 0
}

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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 @strcmp(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #3

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

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 = { "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 = { noreturn 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 #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 }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"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 = !{!15, !6, i64 0}
!15 = !{!"xx", !6, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!15, !10, i64 8}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !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"

%struct.xx = type { i32, ptr, ptr }

@.str.81 = external hidden unnamed_addr constant [1 x i8], align 1
@proc = external dso_local local_unnamed_addr global [66 x %struct.xx], align 16
@.str.82 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [27 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.85 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [20 x i8], align 1
@names = external dso_local local_unnamed_addr global [98 x ptr], align 16
@.str.93 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [5 x i8], align 1
@table = external dso_local local_unnamed_addr global [98 x ptr], align 16
@.str.96 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca [200 x i8], align 16
  %6 = alloca [200 x i8], align 16
  %7 = alloca [200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %7) #6
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.82)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.83)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.84)
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %14, label %11

11:                                               ; preds = %2
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.85) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call noalias ptr @fopen(ptr noundef %16, ptr noundef nonnull @.str.86)
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %23

19:                                               ; preds = %14
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = load ptr, ptr %15, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.87, ptr noundef %21) #7
  tail call void @exit(i32 noundef 1) #8
  unreachable

23:                                               ; preds = %14
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88, i32 noundef 98)
  br label %.outer41.outer

.outer41.outer:                                   ; preds = %.outer41.outer.backedge, %23
  %.0.ph42.ph = phi i32 [ 0, %23 ], [ %.0.ph42.ph.be, %.outer41.outer.backedge ]
  br label %.outer41

.outer41:                                         ; preds = %.outer41.outer, %.split44.us
  %25 = call ptr @fgets(ptr noundef nonnull %5, i32 noundef 200, ptr noundef nonnull %17)
  %.not3048 = icmp eq ptr %25, null
  switch i32 %.0.ph42.ph, label %.outer41.split.split [
    i32 1, label %.outer41.split.us
    i32 0, label %.outer41.split.split.us
  ]

.outer41.split.us:                                ; preds = %.outer41
  br i1 %.not3048, label %.split.us, label %.split44.us

.outer41.split.split.us:                          ; preds = %.outer41
  br i1 %.not3048, label %.split.us, label %26

26:                                               ; preds = %.outer41.split.split.us
  %27 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %5, ptr noundef nonnull @.str.89, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef nonnull %3) #6
  %28 = icmp eq i32 %27, 4
  %29 = load i8, ptr %4, align 1
  %30 = icmp eq i8 %29, 35
  %or.cond.us = select i1 %28, i1 %30, i1 false
  br i1 %or.cond.us, label %31, label %.split44.us

31:                                               ; preds = %26
  %32 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.90) #9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %.loopexit, label %.split44.us

.outer41.split.split:                             ; preds = %.outer41
  br i1 %.not3048, label %.split.us, label %.lr.ph

.lr.ph:                                           ; preds = %.outer41.split.split, %41
  %34 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %5, ptr noundef nonnull @.str.89, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef nonnull %3) #6
  %35 = icmp eq i32 %34, 4
  %36 = load i8, ptr %4, align 1
  %37 = icmp eq i8 %36, 35
  %or.cond = select i1 %35, i1 %37, i1 false
  br i1 %or.cond, label %38, label %41

38:                                               ; preds = %.lr.ph
  %39 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.90) #9
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %38, %.lr.ph
  %42 = call ptr @fgets(ptr noundef nonnull %5, i32 noundef 200, ptr noundef nonnull %17)
  %.not30 = icmp eq ptr %42, null
  br i1 %.not30, label %.split.us, label %.lr.ph

.split44.us:                                      ; preds = %26, %31, %.outer41.split.us
  %43 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %5, ptr noundef nonnull @.str.91, ptr noundef nonnull %6, ptr noundef nonnull %3) #6
  %.not37 = icmp eq i32 %43, 2
  br i1 %.not37, label %.loopexit, label %.outer41, !llvm.loop !9

.loopexit:                                        ; preds = %31, %.split44.us, %38
  %.2 = phi i32 [ 2, %38 ], [ 2, %31 ], [ 1, %.split44.us ]
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.92) #9
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %.outer41.outer.backedge, label %46

46:                                               ; preds = %.loopexit
  %47 = load i32, ptr %3, align 4
  %48 = add i32 %47, -356
  %or.cond4 = icmp ult i32 %48, -98
  br i1 %or.cond4, label %.outer41.outer.backedge, label %49

49:                                               ; preds = %46
  %50 = call noalias ptr @strdup(ptr noundef nonnull %6) #6
  %51 = add nsw i32 %47, -258
  %52 = zext nneg i32 %51 to i64
  %53 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %52
  store ptr %50, ptr %53, align 8, !tbaa !5
  %54 = icmp eq ptr %50, null
  br i1 %54, label %55, label %58

55:                                               ; preds = %49
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.93, ptr noundef nonnull %6) #7
  br label %.outer41.outer.backedge

58:                                               ; preds = %49
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.94, ptr noundef nonnull %6, i32 noundef %47)
  br label %.outer41.outer.backedge

.outer41.outer.backedge:                          ; preds = %58, %46, %.loopexit, %55
  %.0.ph42.ph.be = phi i32 [ %.2, %55 ], [ 0, %.loopexit ], [ 0, %46 ], [ %.2, %58 ]
  br label %.outer41.outer, !llvm.loop !9

.split.us:                                        ; preds = %.outer41.split.split.us, %.outer41.split.us, %.outer41.split.split, %41
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95)
  %61 = load i32, ptr @proc, align 16, !tbaa !11
  %.not3149 = icmp eq i32 %61, 0
  br i1 %.not3149, label %._crit_edge, label %.lr.ph51

.lr.ph51:                                         ; preds = %.split.us, %.lr.ph51
  %62 = phi i32 [ %69, %.lr.ph51 ], [ %61, %.split.us ]
  %.02350 = phi ptr [ %68, %.lr.ph51 ], [ @proc, %.split.us ]
  %63 = getelementptr inbounds i8, ptr %.02350, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = add nsw i32 %62, -258
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [98 x ptr], ptr @table, i64 0, i64 %66
  store ptr %64, ptr %67, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %.02350, i64 24
  %69 = load i32, ptr %68, align 8, !tbaa !11
  %.not31 = icmp eq i32 %69, 0
  br i1 %.not31, label %._crit_edge, label %.lr.ph51, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph51, %.split.us
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.96, i32 noundef 98)
  br label %71

71:                                               ; preds = %._crit_edge, %71
  %indvars.iv = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next, %71 ]
  %72 = getelementptr inbounds [98 x ptr], ptr @table, i64 0, i64 %indvars.iv
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %.not32 = icmp eq ptr %73, null
  %spec.select = select i1 %.not32, ptr @.str.98, ptr %73
  %74 = getelementptr inbounds [98 x ptr], ptr @names, i64 0, i64 %indvars.iv
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %.not33 = icmp eq ptr %75, null
  %76 = select i1 %.not33, ptr @.str.81, ptr %75
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.97, ptr noundef nonnull %spec.select, ptr noundef nonnull %76)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 98
  br i1 %exitcond.not, label %78, label %71, !llvm.loop !16

78:                                               ; preds = %71
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95)
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.99)
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.100)
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.101)
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.102)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.103)
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.104)
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.105)
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.106)
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.107)
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; 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(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #5

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

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 = { 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 = { noreturn 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 = { 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"xx", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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