; LLVM IR from charcole/Z3 :: utils (touchgenerator)

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

@touch = external dso_local global [55 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 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 [1024 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  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) #5
  %13 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %13, ptr %6, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %116, %2
  %15 = load ptr, ptr %6, align 8, !tbaa !9
  %16 = call i32 @feof(ptr noundef %15) #5
  %17 = icmp ne i32 %16, 0
  %18 = xor i1 %17, true
  br i1 %18, label %19, label %117

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #5
  %20 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  %22 = call ptr @fgets(ptr noundef %20, i32 noundef 1024, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %113, %19
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %116

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1023, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %58, %29
  %31 = load i32, ptr %12, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = icmp ult i64 %32, 55
  br i1 %33, label %34, label %61

34:                                               ; preds = %30
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [55 x [3 x i32]], ptr @touch, i64 0, i64 %41
  %43 = getelementptr inbounds [3 x i32], ptr %42, i64 0, i64 0
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp eq i32 %39, %44
  br i1 %45, label %46, label %57

46:                                               ; preds = %34
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [55 x [3 x i32]], ptr @touch, i64 0, i64 %48
  %50 = getelementptr inbounds [3 x i32], ptr %49, i64 0, i64 1
  %51 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %51, ptr %9, align 4, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [55 x [3 x i32]], ptr @touch, i64 0, i64 %53
  %55 = getelementptr inbounds [3 x i32], ptr %54, i64 0, i64 2
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %10, align 4, !tbaa !5
  br label %61

57:                                               ; preds = %34
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  br label %30, !llvm.loop !12

61:                                               ; preds = %46, %30
  %62 = load i32, ptr %12, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = icmp eq i64 %63, 55
  br i1 %64, label %65, label %77

65:                                               ; preds = %61
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = sext i8 %69 to i32
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %72
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %70, i32 noundef %75)
  call void @exit(i32 noundef 1) #6
  unreachable

77:                                               ; preds = %61
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %86, %77
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 10
  br i1 %80, label %81, label %89

81:                                               ; preds = %78
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %82, i32 noundef %83, i32 noundef %84)
  br label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %12, align 4, !tbaa !5
  br label %78, !llvm.loop !14

89:                                               ; preds = %78
  store i32 0, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %98, %89
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = icmp slt i32 %91, 20
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %94, i32 noundef %95, i32 noundef %96)
  br label %98

98:                                               ; preds = %93
  %99 = load i32, ptr %12, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %12, align 4, !tbaa !5
  br label %90, !llvm.loop !15

101:                                              ; preds = %90
  store i32 1023, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %110, %101
  %103 = load i32, ptr %12, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 10
  br i1 %104, label %105, label %113

105:                                              ; preds = %102
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %106, i32 noundef %107, i32 noundef %108)
  br label %110

110:                                              ; preds = %105
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %12, align 4, !tbaa !5
  br label %102, !llvm.loop !16

113:                                              ; preds = %102
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %23, !llvm.loop !17

116:                                              ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #5
  br label %14, !llvm.loop !18

117:                                              ; preds = %14
  %118 = load ptr, ptr %6, align 8, !tbaa !9
  %119 = call i32 @fclose(ptr noundef %118)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  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 noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #3

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

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

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

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

declare i32 @fclose(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 = { "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 }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !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}
!16 = distinct !{!16, !13}
!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"

@touch = external dso_local local_unnamed_addr global [55 x [3 x i32]], align 16
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [1024 x i8], align 16
  %4 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %5 = tail call i32 @feof(ptr noundef %4) #4
  %.not55 = icmp eq i32 %5, 0
  br i1 %.not55, label %.lr.ph, label %._crit_edge59

.lr.ph:                                           ; preds = %2, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #4
  %6 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1024, ptr noundef %4)
  %7 = load i8, ptr %3, align 16, !tbaa !5
  %.not3650 = icmp eq i8 %7, 0
  br i1 %.not3650, label %._crit_edge, label %.preheader39

.preheader39:                                     ; preds = %.lr.ph, %.preheader38.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader38.preheader ], [ 0, %.lr.ph ]
  %8 = phi i8 [ %219, %.preheader38.preheader ], [ %7, %.lr.ph ]
  %9 = sext i8 %8 to i32
  %10 = load i32, ptr @touch, align 16, !tbaa !8
  %11 = icmp eq i32 %10, %9
  br i1 %11, label %.preheader38.preheader, label %12

12:                                               ; preds = %.preheader39
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 12), align 4, !tbaa !8
  %14 = icmp eq i32 %13, %9
  br i1 %14, label %.preheader38.preheader, label %15

15:                                               ; preds = %12
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 24), align 8, !tbaa !8
  %17 = icmp eq i32 %16, %9
  br i1 %17, label %.preheader38.preheader, label %18

18:                                               ; preds = %15
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 36), align 4, !tbaa !8
  %20 = icmp eq i32 %19, %9
  br i1 %20, label %.preheader38.preheader, label %21

21:                                               ; preds = %18
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 48), align 16, !tbaa !8
  %23 = icmp eq i32 %22, %9
  br i1 %23, label %.preheader38.preheader, label %24

24:                                               ; preds = %21
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 60), align 4, !tbaa !8
  %26 = icmp eq i32 %25, %9
  br i1 %26, label %.preheader38.preheader, label %27

27:                                               ; preds = %24
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 72), align 8, !tbaa !8
  %29 = icmp eq i32 %28, %9
  br i1 %29, label %.preheader38.preheader, label %30

30:                                               ; preds = %27
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 84), align 4, !tbaa !8
  %32 = icmp eq i32 %31, %9
  br i1 %32, label %.preheader38.preheader, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 96), align 16, !tbaa !8
  %35 = icmp eq i32 %34, %9
  br i1 %35, label %.preheader38.preheader, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 108), align 4, !tbaa !8
  %38 = icmp eq i32 %37, %9
  br i1 %38, label %.preheader38.preheader, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 120), align 8, !tbaa !8
  %41 = icmp eq i32 %40, %9
  br i1 %41, label %.preheader38.preheader, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 132), align 4, !tbaa !8
  %44 = icmp eq i32 %43, %9
  br i1 %44, label %.preheader38.preheader, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 144), align 16, !tbaa !8
  %47 = icmp eq i32 %46, %9
  br i1 %47, label %.preheader38.preheader, label %48

48:                                               ; preds = %45
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 156), align 4, !tbaa !8
  %50 = icmp eq i32 %49, %9
  br i1 %50, label %.preheader38.preheader, label %51

51:                                               ; preds = %48
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 168), align 8, !tbaa !8
  %53 = icmp eq i32 %52, %9
  br i1 %53, label %.preheader38.preheader, label %54

54:                                               ; preds = %51
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 180), align 4, !tbaa !8
  %56 = icmp eq i32 %55, %9
  br i1 %56, label %.preheader38.preheader, label %57

57:                                               ; preds = %54
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 192), align 16, !tbaa !8
  %59 = icmp eq i32 %58, %9
  br i1 %59, label %.preheader38.preheader, label %60

60:                                               ; preds = %57
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 204), align 4, !tbaa !8
  %62 = icmp eq i32 %61, %9
  br i1 %62, label %.preheader38.preheader, label %63

63:                                               ; preds = %60
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 216), align 8, !tbaa !8
  %65 = icmp eq i32 %64, %9
  br i1 %65, label %.preheader38.preheader, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 228), align 4, !tbaa !8
  %68 = icmp eq i32 %67, %9
  br i1 %68, label %.preheader38.preheader, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 240), align 16, !tbaa !8
  %71 = icmp eq i32 %70, %9
  br i1 %71, label %.preheader38.preheader, label %72

72:                                               ; preds = %69
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 252), align 4, !tbaa !8
  %74 = icmp eq i32 %73, %9
  br i1 %74, label %.preheader38.preheader, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 264), align 8, !tbaa !8
  %77 = icmp eq i32 %76, %9
  br i1 %77, label %.preheader38.preheader, label %78

78:                                               ; preds = %75
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 276), align 4, !tbaa !8
  %80 = icmp eq i32 %79, %9
  br i1 %80, label %.preheader38.preheader, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 288), align 16, !tbaa !8
  %83 = icmp eq i32 %82, %9
  br i1 %83, label %.preheader38.preheader, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 300), align 4, !tbaa !8
  %86 = icmp eq i32 %85, %9
  br i1 %86, label %.preheader38.preheader, label %87

87:                                               ; preds = %84
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 312), align 8, !tbaa !8
  %89 = icmp eq i32 %88, %9
  br i1 %89, label %.preheader38.preheader, label %90

90:                                               ; preds = %87
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 324), align 4, !tbaa !8
  %92 = icmp eq i32 %91, %9
  br i1 %92, label %.preheader38.preheader, label %93

93:                                               ; preds = %90
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 336), align 16, !tbaa !8
  %95 = icmp eq i32 %94, %9
  br i1 %95, label %.preheader38.preheader, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 348), align 4, !tbaa !8
  %98 = icmp eq i32 %97, %9
  br i1 %98, label %.preheader38.preheader, label %99

99:                                               ; preds = %96
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 360), align 8, !tbaa !8
  %101 = icmp eq i32 %100, %9
  br i1 %101, label %.preheader38.preheader, label %102

102:                                              ; preds = %99
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 372), align 4, !tbaa !8
  %104 = icmp eq i32 %103, %9
  br i1 %104, label %.preheader38.preheader, label %105

105:                                              ; preds = %102
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 384), align 16, !tbaa !8
  %107 = icmp eq i32 %106, %9
  br i1 %107, label %.preheader38.preheader, label %108

108:                                              ; preds = %105
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 396), align 4, !tbaa !8
  %110 = icmp eq i32 %109, %9
  br i1 %110, label %.preheader38.preheader, label %111

111:                                              ; preds = %108
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 408), align 8, !tbaa !8
  %113 = icmp eq i32 %112, %9
  br i1 %113, label %.preheader38.preheader, label %114

114:                                              ; preds = %111
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 420), align 4, !tbaa !8
  %116 = icmp eq i32 %115, %9
  br i1 %116, label %.preheader38.preheader, label %117

117:                                              ; preds = %114
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 432), align 16, !tbaa !8
  %119 = icmp eq i32 %118, %9
  br i1 %119, label %.preheader38.preheader, label %120

120:                                              ; preds = %117
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 444), align 4, !tbaa !8
  %122 = icmp eq i32 %121, %9
  br i1 %122, label %.preheader38.preheader, label %123

123:                                              ; preds = %120
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 456), align 8, !tbaa !8
  %125 = icmp eq i32 %124, %9
  br i1 %125, label %.preheader38.preheader, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 468), align 4, !tbaa !8
  %128 = icmp eq i32 %127, %9
  br i1 %128, label %.preheader38.preheader, label %129

129:                                              ; preds = %126
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 480), align 16, !tbaa !8
  %131 = icmp eq i32 %130, %9
  br i1 %131, label %.preheader38.preheader, label %132

132:                                              ; preds = %129
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 492), align 4, !tbaa !8
  %134 = icmp eq i32 %133, %9
  br i1 %134, label %.preheader38.preheader, label %135

135:                                              ; preds = %132
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 504), align 8, !tbaa !8
  %137 = icmp eq i32 %136, %9
  br i1 %137, label %.preheader38.preheader, label %138

138:                                              ; preds = %135
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 516), align 4, !tbaa !8
  %140 = icmp eq i32 %139, %9
  br i1 %140, label %.preheader38.preheader, label %141

141:                                              ; preds = %138
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 528), align 16, !tbaa !8
  %143 = icmp eq i32 %142, %9
  br i1 %143, label %.preheader38.preheader, label %144

144:                                              ; preds = %141
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 540), align 4, !tbaa !8
  %146 = icmp eq i32 %145, %9
  br i1 %146, label %.preheader38.preheader, label %147

147:                                              ; preds = %144
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 552), align 8, !tbaa !8
  %149 = icmp eq i32 %148, %9
  br i1 %149, label %.preheader38.preheader, label %150

150:                                              ; preds = %147
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 564), align 4, !tbaa !8
  %152 = icmp eq i32 %151, %9
  br i1 %152, label %.preheader38.preheader, label %153

153:                                              ; preds = %150
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 576), align 16, !tbaa !8
  %155 = icmp eq i32 %154, %9
  br i1 %155, label %.preheader38.preheader, label %156

156:                                              ; preds = %153
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 588), align 4, !tbaa !8
  %158 = icmp eq i32 %157, %9
  br i1 %158, label %.preheader38.preheader, label %159

159:                                              ; preds = %156
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 600), align 8, !tbaa !8
  %161 = icmp eq i32 %160, %9
  br i1 %161, label %.preheader38.preheader, label %162

162:                                              ; preds = %159
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 612), align 4, !tbaa !8
  %164 = icmp eq i32 %163, %9
  br i1 %164, label %.preheader38.preheader, label %165

165:                                              ; preds = %162
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 624), align 16, !tbaa !8
  %167 = icmp eq i32 %166, %9
  br i1 %167, label %.preheader38.preheader, label %168

168:                                              ; preds = %165
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 636), align 4, !tbaa !8
  %170 = icmp eq i32 %169, %9
  br i1 %170, label %.preheader38.preheader, label %171

171:                                              ; preds = %168
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @touch, i64 648), align 8, !tbaa !8
  %173 = icmp eq i32 %172, %9
  br i1 %173, label %.preheader38.preheader, label %220

.preheader38.preheader:                           ; preds = %171, %168, %165, %162, %159, %156, %153, %150, %147, %144, %141, %138, %135, %132, %129, %126, %123, %120, %117, %114, %111, %108, %105, %102, %99, %96, %93, %90, %87, %84, %81, %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %.preheader39
  %.lcssa = phi ptr [ @touch, %.preheader39 ], [ getelementptr inbounds (i8, ptr @touch, i64 12), %12 ], [ getelementptr inbounds (i8, ptr @touch, i64 24), %15 ], [ getelementptr inbounds (i8, ptr @touch, i64 36), %18 ], [ getelementptr inbounds (i8, ptr @touch, i64 48), %21 ], [ getelementptr inbounds (i8, ptr @touch, i64 60), %24 ], [ getelementptr inbounds (i8, ptr @touch, i64 72), %27 ], [ getelementptr inbounds (i8, ptr @touch, i64 84), %30 ], [ getelementptr inbounds (i8, ptr @touch, i64 96), %33 ], [ getelementptr inbounds (i8, ptr @touch, i64 108), %36 ], [ getelementptr inbounds (i8, ptr @touch, i64 120), %39 ], [ getelementptr inbounds (i8, ptr @touch, i64 132), %42 ], [ getelementptr inbounds (i8, ptr @touch, i64 144), %45 ], [ getelementptr inbounds (i8, ptr @touch, i64 156), %48 ], [ getelementptr inbounds (i8, ptr @touch, i64 168), %51 ], [ getelementptr inbounds (i8, ptr @touch, i64 180), %54 ], [ getelementptr inbounds (i8, ptr @touch, i64 192), %57 ], [ getelementptr inbounds (i8, ptr @touch, i64 204), %60 ], [ getelementptr inbounds (i8, ptr @touch, i64 216), %63 ], [ getelementptr inbounds (i8, ptr @touch, i64 228), %66 ], [ getelementptr inbounds (i8, ptr @touch, i64 240), %69 ], [ getelementptr inbounds (i8, ptr @touch, i64 252), %72 ], [ getelementptr inbounds (i8, ptr @touch, i64 264), %75 ], [ getelementptr inbounds (i8, ptr @touch, i64 276), %78 ], [ getelementptr inbounds (i8, ptr @touch, i64 288), %81 ], [ getelementptr inbounds (i8, ptr @touch, i64 300), %84 ], [ getelementptr inbounds (i8, ptr @touch, i64 312), %87 ], [ getelementptr inbounds (i8, ptr @touch, i64 324), %90 ], [ getelementptr inbounds (i8, ptr @touch, i64 336), %93 ], [ getelementptr inbounds (i8, ptr @touch, i64 348), %96 ], [ getelementptr inbounds (i8, ptr @touch, i64 360), %99 ], [ getelementptr inbounds (i8, ptr @touch, i64 372), %102 ], [ getelementptr inbounds (i8, ptr @touch, i64 384), %105 ], [ getelementptr inbounds (i8, ptr @touch, i64 396), %108 ], [ getelementptr inbounds (i8, ptr @touch, i64 408), %111 ], [ getelementptr inbounds (i8, ptr @touch, i64 420), %114 ], [ getelementptr inbounds (i8, ptr @touch, i64 432), %117 ], [ getelementptr inbounds (i8, ptr @touch, i64 444), %120 ], [ getelementptr inbounds (i8, ptr @touch, i64 456), %123 ], [ getelementptr inbounds (i8, ptr @touch, i64 468), %126 ], [ getelementptr inbounds (i8, ptr @touch, i64 480), %129 ], [ getelementptr inbounds (i8, ptr @touch, i64 492), %132 ], [ getelementptr inbounds (i8, ptr @touch, i64 504), %135 ], [ getelementptr inbounds (i8, ptr @touch, i64 516), %138 ], [ getelementptr inbounds (i8, ptr @touch, i64 528), %141 ], [ getelementptr inbounds (i8, ptr @touch, i64 540), %144 ], [ getelementptr inbounds (i8, ptr @touch, i64 552), %147 ], [ getelementptr inbounds (i8, ptr @touch, i64 564), %150 ], [ getelementptr inbounds (i8, ptr @touch, i64 576), %153 ], [ getelementptr inbounds (i8, ptr @touch, i64 588), %156 ], [ getelementptr inbounds (i8, ptr @touch, i64 600), %159 ], [ getelementptr inbounds (i8, ptr @touch, i64 612), %162 ], [ getelementptr inbounds (i8, ptr @touch, i64 624), %165 ], [ getelementptr inbounds (i8, ptr @touch, i64 636), %168 ], [ getelementptr inbounds (i8, ptr @touch, i64 648), %171 ]
  %174 = getelementptr inbounds i8, ptr %.lcssa, i64 4
  %175 = load i32, ptr %174, align 4, !tbaa !8
  %176 = getelementptr inbounds i8, ptr %.lcssa, i64 8
  %177 = load i32, ptr %176, align 4, !tbaa !8
  %178 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %195 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %201 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %204 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %205 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %206 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %207 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 0)
  %208 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %209 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %210 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %211 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %213 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %214 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %217 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %175, i32 noundef %177, i32 noundef 1023)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %218 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %indvars.iv.next
  %219 = load i8, ptr %218, align 1, !tbaa !5
  %.not36 = icmp eq i8 %219, 0
  br i1 %.not36, label %._crit_edge, label %.preheader39, !llvm.loop !10

220:                                              ; preds = %171
  %221 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %9, i32 noundef %9)
  call void @exit(i32 noundef 1) #5
  unreachable

._crit_edge:                                      ; preds = %.preheader38.preheader, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #4
  %222 = call i32 @feof(ptr noundef %4) #4
  %.not = icmp eq i32 %222, 0
  br i1 %.not, label %.lr.ph, label %._crit_edge59, !llvm.loop !12

._crit_edge59:                                    ; preds = %._crit_edge, %2
  %223 = call i32 @fclose(ptr noundef %4)
  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 noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #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 = { 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 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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