; LLVM IR from tangjz/acm-icpc :: lydsy (3109)

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

@lbt = external dso_local global [513 x i32], align 16
@up = external dso_local global [9 x [9 x i8]], align 16
@lft = external dso_local global [9 x [9 x i8]], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [3 x i8], align 1
  %9 = alloca i32, align 4
  %10 = alloca [3 x i8], align 1
  store i32 0, ptr %1, align 4
  store i32 -1, ptr @lbt, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %32, %0
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 512
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %35

15:                                               ; preds = %11
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = and i32 %16, 1
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  br label %27

20:                                               ; preds = %15
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = ashr i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [513 x i32], ptr @lbt, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  br label %27

27:                                               ; preds = %20, %19
  %28 = phi i32 [ 0, %19 ], [ %26, %20 ]
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [513 x i32], ptr @lbt, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %27
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %11, !llvm.loop !9

35:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %107, %35
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 3
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %112

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %103, %40
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 5
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %106

45:                                               ; preds = %41
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = and i32 %46, 1
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %74

49:                                               ; preds = %45
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %70, %49
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 9
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %73

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 3, ptr %8) #4
  %57 = getelementptr inbounds [3 x i8], ptr %8, i64 0, i64 0
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %57)
  %59 = getelementptr inbounds [3 x i8], ptr %8, i64 0, i64 0
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 94
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %64
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [9 x i8], ptr %65, i64 0, i64 %67
  %69 = zext i1 %62 to i8
  store i8 %69, ptr %68, align 1, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 3, ptr %8) #4
  br label %70

70:                                               ; preds = %56
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !5
  br label %52, !llvm.loop !14

73:                                               ; preds = %55
  br label %102

74:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %98, %74
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 9
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %75
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = srem i32 %80, 3
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  br label %98

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 3, ptr %10) #4
  %85 = getelementptr inbounds [3 x i8], ptr %10, i64 0, i64 0
  %86 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %85)
  %87 = getelementptr inbounds [3 x i8], ptr %10, i64 0, i64 0
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = icmp eq i32 %89, 60
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %92
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [9 x i8], ptr %93, i64 0, i64 %95
  %97 = zext i1 %90 to i8
  store i8 %97, ptr %96, align 1, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 3, ptr %10) #4
  br label %98

98:                                               ; preds = %84, %83
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  br label %75, !llvm.loop !15

101:                                              ; preds = %78
  br label %102

102:                                              ; preds = %101, %73
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %6, align 4, !tbaa !5
  br label %41, !llvm.loop !16

106:                                              ; preds = %44
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %3, align 4, !tbaa !5
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %4, align 4, !tbaa !5
  br label %36, !llvm.loop !17

112:                                              ; preds = %39
  call void @_Z3dfsi(i32 noundef 0)
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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

@lbt = external dso_local local_unnamed_addr global [513 x i32], align 16
@up = external dso_local local_unnamed_addr global [9 x [9 x i8]], align 16
@lft = external dso_local local_unnamed_addr global [9 x [9 x i8]], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca [3 x i8], align 1
  %2 = alloca [3 x i8], align 1
  store i32 -1, ptr @lbt, align 16, !tbaa !5
  br label %3

3:                                                ; preds = %5, %0
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next.1, %5 ]
  %4 = getelementptr inbounds [513 x i32], ptr @lbt, i64 0, i64 %indvars.iv
  store i32 0, ptr %4, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 512
  br i1 %exitcond.not, label %.preheader28, label %5, !llvm.loop !9

5:                                                ; preds = %3
  %6 = lshr exact i64 %indvars.iv.next, 1
  %7 = getelementptr inbounds [513 x i32], ptr @lbt, i64 0, i64 %6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  %10 = getelementptr inbounds [513 x i32], ptr @lbt, i64 0, i64 %indvars.iv.next
  store i32 %9, ptr %10, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %3

.preheader28:                                     ; preds = %3, %12
  %.02336 = phi i32 [ %14, %12 ], [ 0, %3 ]
  %.02435 = phi i32 [ %13, %12 ], [ 0, %3 ]
  br label %15

11:                                               ; preds = %12
  call void @_Z3dfsi(i32 noundef 0)
  ret i32 0

12:                                               ; preds = %.loopexit
  %13 = add nuw nsw i32 %.02435, 1
  %14 = add nsw i32 %.2, 1
  %exitcond48.not = icmp eq i32 %13, 3
  br i1 %exitcond48.not, label %11, label %.preheader28, !llvm.loop !11

15:                                               ; preds = %.preheader28, %.loopexit
  %.02234 = phi i32 [ 0, %.preheader28 ], [ %95, %.loopexit ]
  %.133 = phi i32 [ %.02336, %.preheader28 ], [ %.2, %.loopexit ]
  %16 = and i32 %.02234, 1
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.loopexit.loopexit, label %.loopexit.loopexit37

.loopexit.loopexit37:                             ; preds = %15
  %17 = add nsw i32 %.133, 1
  %18 = sext i32 %17 to i64
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %20 = load i8, ptr %1, align 1, !tbaa !12
  %21 = icmp eq i8 %20, 94
  %22 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 0
  %23 = zext i1 %21 to i8
  store i8 %23, ptr %22, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %25 = load i8, ptr %1, align 1, !tbaa !12
  %26 = icmp eq i8 %25, 94
  %27 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 1
  %28 = zext i1 %26 to i8
  store i8 %28, ptr %27, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %30 = load i8, ptr %1, align 1, !tbaa !12
  %31 = icmp eq i8 %30, 94
  %32 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 2
  %33 = zext i1 %31 to i8
  store i8 %33, ptr %32, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %35 = load i8, ptr %1, align 1, !tbaa !12
  %36 = icmp eq i8 %35, 94
  %37 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 3
  %38 = zext i1 %36 to i8
  store i8 %38, ptr %37, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %40 = load i8, ptr %1, align 1, !tbaa !12
  %41 = icmp eq i8 %40, 94
  %42 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 4
  %43 = zext i1 %41 to i8
  store i8 %43, ptr %42, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %45 = load i8, ptr %1, align 1, !tbaa !12
  %46 = icmp eq i8 %45, 94
  %47 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 5
  %48 = zext i1 %46 to i8
  store i8 %48, ptr %47, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %50 = load i8, ptr %1, align 1, !tbaa !12
  %51 = icmp eq i8 %50, 94
  %52 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 6
  %53 = zext i1 %51 to i8
  store i8 %53, ptr %52, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %54 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %55 = load i8, ptr %1, align 1, !tbaa !12
  %56 = icmp eq i8 %55, 94
  %57 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 7
  %58 = zext i1 %56 to i8
  store i8 %58, ptr %57, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %1) #4
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1)
  %60 = load i8, ptr %1, align 1, !tbaa !12
  %61 = icmp eq i8 %60, 94
  %62 = getelementptr inbounds [9 x [9 x i8]], ptr @up, i64 0, i64 %18, i64 8
  %63 = zext i1 %61 to i8
  store i8 %63, ptr %62, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %1) #4
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %15
  %64 = sext i32 %.133 to i64
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %65 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %66 = load i8, ptr %2, align 1, !tbaa !12
  %67 = icmp eq i8 %66, 60
  %68 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 1
  %69 = zext i1 %67 to i8
  store i8 %69, ptr %68, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %70 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %71 = load i8, ptr %2, align 1, !tbaa !12
  %72 = icmp eq i8 %71, 60
  %73 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 2
  %74 = zext i1 %72 to i8
  store i8 %74, ptr %73, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %75 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %76 = load i8, ptr %2, align 1, !tbaa !12
  %77 = icmp eq i8 %76, 60
  %78 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 4
  %79 = zext i1 %77 to i8
  store i8 %79, ptr %78, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %80 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %81 = load i8, ptr %2, align 1, !tbaa !12
  %82 = icmp eq i8 %81, 60
  %83 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 5
  %84 = zext i1 %82 to i8
  store i8 %84, ptr %83, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %85 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %86 = load i8, ptr %2, align 1, !tbaa !12
  %87 = icmp eq i8 %86, 60
  %88 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 7
  %89 = zext i1 %87 to i8
  store i8 %89, ptr %88, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %2) #4
  %90 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %2)
  %91 = load i8, ptr %2, align 1, !tbaa !12
  %92 = icmp eq i8 %91, 60
  %93 = getelementptr inbounds [9 x [9 x i8]], ptr @lft, i64 0, i64 %64, i64 8
  %94 = zext i1 %92 to i8
  store i8 %94, ptr %93, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %2) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit37, %.loopexit.loopexit
  %.2 = phi i32 [ %.133, %.loopexit.loopexit ], [ %17, %.loopexit.loopexit37 ]
  %95 = add nuw nsw i32 %.02234, 1
  %exitcond47.not = icmp eq i32 %95, 5
  br i1 %exitcond47.not, label %12, label %15, !llvm.loop !15
}

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 #3 = { 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 #4 = { 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass