; LLVM IR from lzyrapx/Competitive-Programming :: FZU (2230（博弈）)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@mp = external dso_local global [12 x [12 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 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 %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %14

14:                                               ; preds = %104, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr %2, align 4, !tbaa !5
  %17 = icmp ne i32 %15, 0
  br i1 %17, label %18, label %105

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

19:                                               ; preds = %40, %18
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 4
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %43

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

24:                                               ; preds = %36, %23
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 8
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %39

28:                                               ; preds = %24
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [12 x [12 x i8]], ptr @mp, i64 0, i64 %30
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [12 x i8], ptr %31, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %34)
  br label %36

36:                                               ; preds = %28
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %9, align 4, !tbaa !5
  br label %24, !llvm.loop !9

39:                                               ; preds = %27
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !5
  br label %19, !llvm.loop !11

43:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %84, %43
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 4
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 10, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %87

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %80, %48
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 8
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 13, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %83

53:                                               ; preds = %49
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [12 x [12 x i8]], ptr @mp, i64 0, i64 %55
  %57 = load i32, ptr %11, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [12 x i8], ptr %56, i64 0, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !12
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 46
  br i1 %62, label %63, label %66

63:                                               ; preds = %53
  %64 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %64, ptr %3, align 4, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %65, ptr %4, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %63, %53
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [12 x [12 x i8]], ptr @mp, i64 0, i64 %68
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [12 x i8], ptr %69, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !12
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 42
  br i1 %75, label %76, label %79

76:                                               ; preds = %66
  %77 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %77, ptr %5, align 4, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %78, ptr %6, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %76, %66
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %11, align 4, !tbaa !5
  br label %49, !llvm.loop !13

83:                                               ; preds = %52
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !5
  br label %44, !llvm.loop !14

87:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sub nsw i32 %88, %89
  %91 = call i32 @llvm.abs.i32(i32 %90, i1 true)
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sub nsw i32 %92, %93
  %95 = call i32 @llvm.abs.i32(i32 %94, i1 true)
  %96 = add nsw i32 %91, %95
  store i32 %96, ptr %12, align 4, !tbaa !5
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = srem i32 %97, 2
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %100, label %102

100:                                              ; preds = %87
  %101 = call i32 @puts(ptr noundef @.str)
  br label %104

102:                                              ; preds = %87
  %103 = call i32 @puts(ptr noundef @.str.1)
  br label %104

104:                                              ; preds = %102, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #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 %14, !llvm.loop !15

105:                                              ; preds = %14
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %106 = load i32, ptr %1, align 4
  ret i32 %106
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #3

declare i32 @puts(ptr noundef) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@mp = external dso_local global [12 x [12 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr %1, align 4, !tbaa !5
  %.not57 = icmp eq i32 %3, 0
  br i1 %.not57, label %._crit_edge, label %.preheader44

.preheader44:                                     ; preds = %0, %.preheader44
  %.02761 = phi i32 [ %.3.7.3, %.preheader44 ], [ undef, %0 ]
  %.02860 = phi i32 [ %.331.7.3, %.preheader44 ], [ undef, %0 ]
  %.03259 = phi i32 [ %spec.select41.7.3, %.preheader44 ], [ undef, %0 ]
  %.03658 = phi i32 [ %spec.select.7.3, %.preheader44 ], [ undef, %0 ]
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) @mp)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 1))
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 2))
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 3))
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 4))
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 5))
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 6))
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 7))
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 12))
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 13))
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 14))
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 15))
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 16))
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 17))
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 18))
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 19))
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 24))
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 25))
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 26))
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 27))
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 28))
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 29))
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 30))
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 31))
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 36))
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 37))
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 38))
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 39))
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 40))
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 41))
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 42))
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) getelementptr inbounds (i8, ptr @mp, i64 43))
  %37 = load i8, ptr @mp, align 16, !tbaa !9
  %38 = icmp eq i8 %37, 46
  %spec.select41 = select i1 %38, i32 0, i32 %.03259
  %39 = icmp eq i8 %37, 42
  %.3 = select i1 %39, i32 0, i32 %.02761
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 1), align 1, !tbaa !9
  %41 = icmp eq i8 %40, 46
  %spec.select41.1 = select i1 %41, i32 1, i32 %spec.select41
  %42 = icmp eq i8 %40, 42
  %.3.1 = select i1 %42, i32 1, i32 %.3
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 2), align 2, !tbaa !9
  %44 = icmp eq i8 %43, 46
  %spec.select41.2 = select i1 %44, i32 2, i32 %spec.select41.1
  %45 = icmp eq i8 %43, 42
  %.3.2 = select i1 %45, i32 2, i32 %.3.1
  %46 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 3), align 1, !tbaa !9
  %47 = icmp eq i8 %46, 46
  %spec.select41.3 = select i1 %47, i32 3, i32 %spec.select41.2
  %48 = icmp eq i8 %46, 42
  %.3.3 = select i1 %48, i32 3, i32 %.3.2
  %49 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 4), align 4, !tbaa !9
  %50 = icmp eq i8 %49, 46
  %spec.select41.4 = select i1 %50, i32 4, i32 %spec.select41.3
  %51 = icmp eq i8 %49, 42
  %.3.4 = select i1 %51, i32 4, i32 %.3.3
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 5), align 1, !tbaa !9
  %53 = icmp eq i8 %52, 46
  %spec.select41.5 = select i1 %53, i32 5, i32 %spec.select41.4
  %54 = icmp eq i8 %52, 42
  %.3.5 = select i1 %54, i32 5, i32 %.3.4
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 6), align 2, !tbaa !9
  %56 = icmp eq i8 %55, 46
  %spec.select41.6 = select i1 %56, i32 6, i32 %spec.select41.5
  %57 = icmp eq i8 %55, 42
  %.3.6 = select i1 %57, i32 6, i32 %.3.5
  %58 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 7), align 1, !tbaa !9
  %59 = icmp eq i8 %58, 46
  %60 = select i1 %59, i1 true, i1 %56
  %61 = select i1 %60, i1 true, i1 %53
  %62 = select i1 %61, i1 true, i1 %50
  %63 = select i1 %62, i1 true, i1 %47
  %64 = select i1 %63, i1 true, i1 %44
  %65 = select i1 %64, i1 true, i1 %41
  %66 = select i1 %65, i1 true, i1 %38
  %spec.select.7 = select i1 %66, i32 0, i32 %.03658
  %spec.select41.7 = select i1 %59, i32 7, i32 %spec.select41.6
  %67 = icmp eq i8 %58, 42
  %68 = select i1 %67, i1 true, i1 %57
  %69 = select i1 %68, i1 true, i1 %54
  %70 = select i1 %69, i1 true, i1 %51
  %71 = select i1 %70, i1 true, i1 %48
  %72 = select i1 %71, i1 true, i1 %45
  %73 = select i1 %72, i1 true, i1 %42
  %74 = select i1 %73, i1 true, i1 %39
  %.331.7 = select i1 %74, i32 0, i32 %.02860
  %.3.7 = select i1 %67, i32 7, i32 %.3.6
  %75 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 12), align 4, !tbaa !9
  %76 = icmp eq i8 %75, 46
  %spec.select41.167 = select i1 %76, i32 0, i32 %spec.select41.7
  %77 = icmp eq i8 %75, 42
  %.3.169 = select i1 %77, i32 0, i32 %.3.7
  %78 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 13), align 1, !tbaa !9
  %79 = icmp eq i8 %78, 46
  %spec.select41.1.1 = select i1 %79, i32 1, i32 %spec.select41.167
  %80 = icmp eq i8 %78, 42
  %.3.1.1 = select i1 %80, i32 1, i32 %.3.169
  %81 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 14), align 2, !tbaa !9
  %82 = icmp eq i8 %81, 46
  %spec.select41.2.1 = select i1 %82, i32 2, i32 %spec.select41.1.1
  %83 = icmp eq i8 %81, 42
  %.3.2.1 = select i1 %83, i32 2, i32 %.3.1.1
  %84 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 15), align 1, !tbaa !9
  %85 = icmp eq i8 %84, 46
  %spec.select41.3.1 = select i1 %85, i32 3, i32 %spec.select41.2.1
  %86 = icmp eq i8 %84, 42
  %.3.3.1 = select i1 %86, i32 3, i32 %.3.2.1
  %87 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 16), align 16, !tbaa !9
  %88 = icmp eq i8 %87, 46
  %spec.select41.4.1 = select i1 %88, i32 4, i32 %spec.select41.3.1
  %89 = icmp eq i8 %87, 42
  %.3.4.1 = select i1 %89, i32 4, i32 %.3.3.1
  %90 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 17), align 1, !tbaa !9
  %91 = icmp eq i8 %90, 46
  %spec.select41.5.1 = select i1 %91, i32 5, i32 %spec.select41.4.1
  %92 = icmp eq i8 %90, 42
  %.3.5.1 = select i1 %92, i32 5, i32 %.3.4.1
  %93 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 18), align 2, !tbaa !9
  %94 = icmp eq i8 %93, 46
  %spec.select41.6.1 = select i1 %94, i32 6, i32 %spec.select41.5.1
  %95 = icmp eq i8 %93, 42
  %.3.6.1 = select i1 %95, i32 6, i32 %.3.5.1
  %96 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 19), align 1, !tbaa !9
  %97 = icmp eq i8 %96, 46
  %98 = select i1 %97, i1 true, i1 %94
  %99 = select i1 %98, i1 true, i1 %91
  %100 = select i1 %99, i1 true, i1 %88
  %101 = select i1 %100, i1 true, i1 %85
  %102 = select i1 %101, i1 true, i1 %82
  %103 = select i1 %102, i1 true, i1 %79
  %104 = select i1 %103, i1 true, i1 %76
  %spec.select.7.1 = select i1 %104, i32 1, i32 %spec.select.7
  %spec.select41.7.1 = select i1 %97, i32 7, i32 %spec.select41.6.1
  %105 = icmp eq i8 %96, 42
  %106 = select i1 %105, i1 true, i1 %95
  %107 = select i1 %106, i1 true, i1 %92
  %108 = select i1 %107, i1 true, i1 %89
  %109 = select i1 %108, i1 true, i1 %86
  %110 = select i1 %109, i1 true, i1 %83
  %111 = select i1 %110, i1 true, i1 %80
  %112 = select i1 %111, i1 true, i1 %77
  %.331.7.1 = select i1 %112, i32 1, i32 %.331.7
  %.3.7.1 = select i1 %105, i32 7, i32 %.3.6.1
  %113 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 24), align 8, !tbaa !9
  %114 = icmp eq i8 %113, 46
  %spec.select41.271 = select i1 %114, i32 0, i32 %spec.select41.7.1
  %115 = icmp eq i8 %113, 42
  %.3.273 = select i1 %115, i32 0, i32 %.3.7.1
  %116 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 25), align 1, !tbaa !9
  %117 = icmp eq i8 %116, 46
  %spec.select41.1.2 = select i1 %117, i32 1, i32 %spec.select41.271
  %118 = icmp eq i8 %116, 42
  %.3.1.2 = select i1 %118, i32 1, i32 %.3.273
  %119 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 26), align 2, !tbaa !9
  %120 = icmp eq i8 %119, 46
  %spec.select41.2.2 = select i1 %120, i32 2, i32 %spec.select41.1.2
  %121 = icmp eq i8 %119, 42
  %.3.2.2 = select i1 %121, i32 2, i32 %.3.1.2
  %122 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 27), align 1, !tbaa !9
  %123 = icmp eq i8 %122, 46
  %spec.select41.3.2 = select i1 %123, i32 3, i32 %spec.select41.2.2
  %124 = icmp eq i8 %122, 42
  %.3.3.2 = select i1 %124, i32 3, i32 %.3.2.2
  %125 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 28), align 4, !tbaa !9
  %126 = icmp eq i8 %125, 46
  %spec.select41.4.2 = select i1 %126, i32 4, i32 %spec.select41.3.2
  %127 = icmp eq i8 %125, 42
  %.3.4.2 = select i1 %127, i32 4, i32 %.3.3.2
  %128 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 29), align 1, !tbaa !9
  %129 = icmp eq i8 %128, 46
  %spec.select41.5.2 = select i1 %129, i32 5, i32 %spec.select41.4.2
  %130 = icmp eq i8 %128, 42
  %.3.5.2 = select i1 %130, i32 5, i32 %.3.4.2
  %131 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 30), align 2, !tbaa !9
  %132 = icmp eq i8 %131, 46
  %spec.select41.6.2 = select i1 %132, i32 6, i32 %spec.select41.5.2
  %133 = icmp eq i8 %131, 42
  %.3.6.2 = select i1 %133, i32 6, i32 %.3.5.2
  %134 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 31), align 1, !tbaa !9
  %135 = icmp eq i8 %134, 46
  %136 = select i1 %135, i1 true, i1 %132
  %137 = select i1 %136, i1 true, i1 %129
  %138 = select i1 %137, i1 true, i1 %126
  %139 = select i1 %138, i1 true, i1 %123
  %140 = select i1 %139, i1 true, i1 %120
  %141 = select i1 %140, i1 true, i1 %117
  %142 = select i1 %141, i1 true, i1 %114
  %spec.select.7.2 = select i1 %142, i32 2, i32 %spec.select.7.1
  %spec.select41.7.2 = select i1 %135, i32 7, i32 %spec.select41.6.2
  %143 = icmp eq i8 %134, 42
  %144 = select i1 %143, i1 true, i1 %133
  %145 = select i1 %144, i1 true, i1 %130
  %146 = select i1 %145, i1 true, i1 %127
  %147 = select i1 %146, i1 true, i1 %124
  %148 = select i1 %147, i1 true, i1 %121
  %149 = select i1 %148, i1 true, i1 %118
  %150 = select i1 %149, i1 true, i1 %115
  %.331.7.2 = select i1 %150, i32 2, i32 %.331.7.1
  %.3.7.2 = select i1 %143, i32 7, i32 %.3.6.2
  %151 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 36), align 4, !tbaa !9
  %152 = icmp eq i8 %151, 46
  %spec.select41.375 = select i1 %152, i32 0, i32 %spec.select41.7.2
  %153 = icmp eq i8 %151, 42
  %.3.377 = select i1 %153, i32 0, i32 %.3.7.2
  %154 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 37), align 1, !tbaa !9
  %155 = icmp eq i8 %154, 46
  %spec.select41.1.3 = select i1 %155, i32 1, i32 %spec.select41.375
  %156 = icmp eq i8 %154, 42
  %.3.1.3 = select i1 %156, i32 1, i32 %.3.377
  %157 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 38), align 2, !tbaa !9
  %158 = icmp eq i8 %157, 46
  %spec.select41.2.3 = select i1 %158, i32 2, i32 %spec.select41.1.3
  %159 = icmp eq i8 %157, 42
  %.3.2.3 = select i1 %159, i32 2, i32 %.3.1.3
  %160 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 39), align 1, !tbaa !9
  %161 = icmp eq i8 %160, 46
  %spec.select41.3.3 = select i1 %161, i32 3, i32 %spec.select41.2.3
  %162 = icmp eq i8 %160, 42
  %.3.3.3 = select i1 %162, i32 3, i32 %.3.2.3
  %163 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 40), align 8, !tbaa !9
  %164 = icmp eq i8 %163, 46
  %spec.select41.4.3 = select i1 %164, i32 4, i32 %spec.select41.3.3
  %165 = icmp eq i8 %163, 42
  %.3.4.3 = select i1 %165, i32 4, i32 %.3.3.3
  %166 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 41), align 1, !tbaa !9
  %167 = icmp eq i8 %166, 46
  %spec.select41.5.3 = select i1 %167, i32 5, i32 %spec.select41.4.3
  %168 = icmp eq i8 %166, 42
  %.3.5.3 = select i1 %168, i32 5, i32 %.3.4.3
  %169 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 42), align 2, !tbaa !9
  %170 = icmp eq i8 %169, 46
  %spec.select41.6.3 = select i1 %170, i32 6, i32 %spec.select41.5.3
  %171 = icmp eq i8 %169, 42
  %.3.6.3 = select i1 %171, i32 6, i32 %.3.5.3
  %172 = load i8, ptr getelementptr inbounds (i8, ptr @mp, i64 43), align 1, !tbaa !9
  %173 = icmp eq i8 %172, 46
  %174 = select i1 %173, i1 true, i1 %170
  %175 = select i1 %174, i1 true, i1 %167
  %176 = select i1 %175, i1 true, i1 %164
  %177 = select i1 %176, i1 true, i1 %161
  %178 = select i1 %177, i1 true, i1 %158
  %179 = select i1 %178, i1 true, i1 %155
  %180 = select i1 %179, i1 true, i1 %152
  %spec.select.7.3 = select i1 %180, i32 3, i32 %spec.select.7.2
  %spec.select41.7.3 = select i1 %173, i32 7, i32 %spec.select41.6.3
  %181 = icmp eq i8 %172, 42
  %182 = select i1 %181, i1 true, i1 %171
  %183 = select i1 %182, i1 true, i1 %168
  %184 = select i1 %183, i1 true, i1 %165
  %185 = select i1 %184, i1 true, i1 %162
  %186 = select i1 %185, i1 true, i1 %159
  %187 = select i1 %186, i1 true, i1 %156
  %188 = select i1 %187, i1 true, i1 %153
  %.331.7.3 = select i1 %188, i32 3, i32 %.331.7.2
  %.3.7.3 = select i1 %181, i32 7, i32 %.3.6.3
  %189 = add i32 %spec.select41.7.3, %spec.select.7.3
  %190 = sub i32 %.331.7.3, %189
  %191 = add i32 %190, %.3.7.3
  %192 = and i32 %191, 1
  %.not40 = icmp eq i32 %192, 0
  %.str.1..str = select i1 %.not40, ptr @.str.1, ptr @.str
  %193 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.1..str)
  %194 = load i32, ptr %1, align 4, !tbaa !5
  %195 = add nsw i32 %194, -1
  store i32 %195, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %194, 0
  br i1 %.not, label %._crit_edge, label %.preheader44, !llvm.loop !10

._crit_edge:                                      ; preds = %.preheader44, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

; 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 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress 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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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