; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (1993)

; 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.face = type { i8, i32 }
%class.state = type { [4 x %class.face], %class.face }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@cube = external dso_local global [6 x %class.face], align 16
@P = external dso_local global [6 x %class.state], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4Find5state(ptr noundef byval(%class.state) align 8) #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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.state, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca %class.state, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %22 = call i32 @getchar()
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %194, %0
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %198

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %48, %28
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 6
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %34 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %8, ptr noundef %9)
          to label %35 unwind label %51

35:                                               ; preds = %33
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %9, align 4, !tbaa !5
  %38 = load i8, ptr %8, align 1, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [6 x %class.face], ptr @cube, i64 0, i64 %40
  %42 = getelementptr inbounds %class.face, ptr %41, i32 0, i32 0
  store i8 %38, ptr %42, align 8, !tbaa !10
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [6 x %class.face], ptr @cube, i64 0, i64 %45
  %47 = getelementptr inbounds %class.face, ptr %46, i32 0, i32 1
  store i32 %43, ptr %47, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %48

48:                                               ; preds = %35
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %7, align 4, !tbaa !5
  br label %29, !llvm.loop !13

51:                                               ; preds = %33
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %197

55:                                               ; preds = %32
  %56 = invoke i32 @getchar()
          to label %57 unwind label %74

57:                                               ; preds = %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds (%class.state, ptr @P, i32 0, i32 1), ptr align 16 @cube, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @P, ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 4), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) @P, i32 noundef 2)
          to label %58 unwind label %74

58:                                               ; preds = %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr @P, i64 0, i64 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 3), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr @P, i64 0, i64 1), i32 noundef 3)
          to label %59 unwind label %74

59:                                               ; preds = %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([4 x %class.face], ptr @P, i64 0, i64 2), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 2), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr @P, i64 0, i64 3), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr @P, i64 0, i64 3), i32 noundef 1)
          to label %60 unwind label %74

60:                                               ; preds = %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds (%class.state, ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i32 0, i32 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), ptr align 16 @cube, i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i32 noundef 3)
          to label %61 unwind label %74

61:                                               ; preds = %60
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i64 0, i64 1), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 2), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i64 0, i64 2), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 5), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i64 0, i64 2), i32 noundef 1)
          to label %62 unwind label %74

62:                                               ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 1), i64 0, i64 3), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 4), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds (%class.state, ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 2), i32 0, i32 1), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 2), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 2), ptr align 16 @cube, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 2), i64 0, i64 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 3), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 2), i64 0, i64 2), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 5), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 2), i64 0, i64 3), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds (%class.state, ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i32 0, i32 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 3), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), ptr align 16 @cube, i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i32 noundef 1)
          to label %63 unwind label %74

63:                                               ; preds = %62
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i64 0, i64 1), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 4), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i64 0, i64 2), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 5), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i64 0, i64 2), i32 noundef 3)
          to label %64 unwind label %74

64:                                               ; preds = %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 3), i64 0, i64 3), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 2), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds (%class.state, ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i32 0, i32 1), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 4), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), ptr align 16 @cube, i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i32 noundef 2)
          to label %65 unwind label %74

65:                                               ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i64 0, i64 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i64 0, i64 2), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 5), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i64 0, i64 2), i32 noundef 2)
          to label %66 unwind label %74

66:                                               ; preds = %65
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 4), i64 0, i64 3), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 3), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds (%class.state, ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i32 0, i32 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 5), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 2), i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 1), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 3), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 1), i32 noundef 1)
          to label %67 unwind label %74

67:                                               ; preds = %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 2), ptr align 16 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 4), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 2), i32 noundef 2)
          to label %68 unwind label %74

68:                                               ; preds = %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 3), ptr align 8 getelementptr inbounds ([6 x %class.face], ptr @cube, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !15
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds ([4 x %class.face], ptr getelementptr inbounds ([6 x %class.state], ptr @P, i64 0, i64 5), i64 0, i64 3), i32 noundef 3)
          to label %69 unwind label %74

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %156, %69
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 5
  br i1 %72, label %78, label %73

73:                                               ; preds = %70
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %160

74:                                               ; preds = %191, %163, %160, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %197

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %115, %78
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 3
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %118

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %84 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %15, ptr noundef %16)
          to label %85 unwind label %97

85:                                               ; preds = %83
  %86 = load i32, ptr %16, align 4, !tbaa !5
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %16, align 4, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %101

90:                                               ; preds = %85
  %91 = load i8, ptr %15, align 1, !tbaa !9
  %92 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 1
  %93 = getelementptr inbounds %class.face, ptr %92, i32 0, i32 0
  store i8 %91, ptr %93, align 4, !tbaa !16
  %94 = load i32, ptr %16, align 4, !tbaa !5
  %95 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 1
  %96 = getelementptr inbounds %class.face, ptr %95, i32 0, i32 1
  store i32 %94, ptr %96, align 4, !tbaa !18
  br label %114

97:                                               ; preds = %83
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %10, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %159

101:                                              ; preds = %85
  %102 = load i8, ptr %15, align 1, !tbaa !9
  %103 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [4 x %class.face], ptr %103, i64 0, i64 %105
  %107 = getelementptr inbounds %class.face, ptr %106, i32 0, i32 0
  store i8 %102, ptr %107, align 4, !tbaa !10
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4 x %class.face], ptr %109, i64 0, i64 %111
  %113 = getelementptr inbounds %class.face, ptr %112, i32 0, i32 1
  store i32 %108, ptr %113, align 4, !tbaa !12
  br label %114

114:                                              ; preds = %101, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %14, align 4, !tbaa !5
  br label %79, !llvm.loop !19

118:                                              ; preds = %82
  %119 = invoke i32 @getchar()
          to label %120 unwind label %141

120:                                              ; preds = %118
  %121 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 1
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %121, i32 noundef 2)
          to label %122 unwind label %141

122:                                              ; preds = %120
  %123 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %124 = getelementptr inbounds [4 x %class.face], ptr %123, i64 0, i64 1
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %124, i32 noundef 3)
          to label %125 unwind label %141

125:                                              ; preds = %122
  %126 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %127 = getelementptr inbounds [4 x %class.face], ptr %126, i64 0, i64 2
  invoke void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %127, i32 noundef 1)
          to label %128 unwind label %141

128:                                              ; preds = %125
  %129 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %130 = getelementptr inbounds [4 x %class.face], ptr %129, i64 0, i64 0
  %131 = getelementptr inbounds %class.face, ptr %130, i32 0, i32 0
  store i8 42, ptr %131, align 4, !tbaa !10
  %132 = getelementptr inbounds %class.state, ptr %13, i32 0, i32 0
  %133 = getelementptr inbounds [4 x %class.face], ptr %132, i64 0, i64 3
  %134 = getelementptr inbounds %class.face, ptr %133, i32 0, i32 0
  store i8 42, ptr %134, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %13, i64 40, i1 false), !tbaa.struct !20
  %135 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef byval(%class.state) align 8 %17)
          to label %136 unwind label %141

136:                                              ; preds = %128
  br i1 %135, label %137, label %149

137:                                              ; preds = %136
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %140 unwind label %145

140:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %155

141:                                              ; preds = %128, %125, %122, %120, %118
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %10, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %11, align 4
  br label %159

145:                                              ; preds = %137
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %159

149:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %150 unwind label %151

150:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %155

151:                                              ; preds = %149
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %10, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %159

155:                                              ; preds = %150, %140
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %12, align 4, !tbaa !5
  br label %70, !llvm.loop !21

159:                                              ; preds = %151, %145, %141, %97
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %197

160:                                              ; preds = %73
  %161 = load i32, ptr %3, align 4, !tbaa !5
  %162 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %161)
          to label %163 unwind label %74

163:                                              ; preds = %160
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %164)
          to label %166 unwind label %74

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %188, %166
  %168 = load i32, ptr %20, align 4, !tbaa !5
  %169 = icmp slt i32 %168, 5
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %191

171:                                              ; preds = %167
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %173) #7
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %184

177:                                              ; preds = %171
  %178 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3)
          to label %179 unwind label %180

179:                                              ; preds = %177
  br label %187

180:                                              ; preds = %184, %177
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %10, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %197

184:                                              ; preds = %171
  %185 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %186 unwind label %180

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186, %179
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %20, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %20, align 4, !tbaa !5
  br label %167, !llvm.loop !22

191:                                              ; preds = %170
  %192 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %193 unwind label %74

193:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %3, align 4, !tbaa !5
  br label %23, !llvm.loop !23

197:                                              ; preds = %180, %159, %74, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %200

198:                                              ; preds = %27
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %199 = load i32, ptr %1, align 4
  ret i32 %199

200:                                              ; preds = %197
  %201 = load ptr, ptr %10, align 8
  %202 = load i32, ptr %11, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @getchar() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { inlinehint 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 #6 = { mustprogress 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 #7 = { 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 = !{!11, !7, i64 0}
!11 = !{!"_ZTS4face", !7, i64 0, !6, i64 4}
!12 = !{!11, !6, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 1, !9, i64 4, i64 4, !5}
!16 = !{!17, !7, i64 32}
!17 = !{!"_ZTS5state", !7, i64 0, !11, i64 32}
!18 = !{!17, !6, i64 36}
!19 = distinct !{!19, !14}
!20 = !{i64 0, i64 32, !9, i64 32, i64 1, !9, i64 36, i64 4, !5}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; 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.face = type { i8, i32 }
%class.state = type { [4 x %class.face], %class.face }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@cube = external dso_local local_unnamed_addr global [6 x %class.face], align 16
@P = external dso_local global [6 x %class.state], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4Find5state(ptr noundef byval(%class.state) align 8) 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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca %class.state, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %11 = call i32 @getchar()
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %.not38 = icmp slt i32 %12, 1
  br i1 %.not38, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0
  %13 = getelementptr inbounds i8, ptr %5, i64 32
  %14 = getelementptr inbounds i8, ptr %5, i64 36
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  %16 = getelementptr inbounds i8, ptr %5, i64 16
  %17 = getelementptr inbounds i8, ptr %5, i64 24
  %18 = getelementptr inbounds i8, ptr %5, i64 12
  %19 = getelementptr inbounds i8, ptr %5, i64 20
  br label %20

._crit_edge:                                      ; preds = %180, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

20:                                               ; preds = %.lr.ph, %180
  %.02739 = phi i32 [ 1, %.lr.ph ], [ %199, %180 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  %24 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %24, ptr @cube, align 16, !tbaa !10
  store i32 %23, ptr getelementptr inbounds (i8, ptr @cube, i64 4), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = add nsw i32 %26, -1
  %28 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %28, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8, !tbaa !10
  store i32 %27, ptr getelementptr inbounds (i8, ptr @cube, i64 12), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  %32 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %32, ptr getelementptr inbounds (i8, ptr @cube, i64 16), align 16, !tbaa !10
  store i32 %31, ptr getelementptr inbounds (i8, ptr @cube, i64 20), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  %36 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %36, ptr getelementptr inbounds (i8, ptr @cube, i64 24), align 8, !tbaa !10
  store i32 %35, ptr getelementptr inbounds (i8, ptr @cube, i64 28), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, -1
  %40 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %40, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16, !tbaa !10
  store i32 %39, ptr getelementptr inbounds (i8, ptr @cube, i64 36), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = add nsw i32 %42, -1
  %44 = load i8, ptr %3, align 1, !tbaa !9
  store i8 %44, ptr getelementptr inbounds (i8, ptr @cube, i64 40), align 8, !tbaa !10
  store i32 %43, ptr getelementptr inbounds (i8, ptr @cube, i64 44), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %45 = call i32 @getchar()
  %46 = load i64, ptr @cube, align 16
  store i64 %46, ptr getelementptr inbounds (i8, ptr @P, i64 32), align 16
  %47 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16
  store i64 %47, ptr @P, align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) @P, i32 noundef 2)
  %48 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 24), align 8
  store i64 %48, ptr getelementptr inbounds (i8, ptr @P, i64 8), align 8
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 8), i32 noundef 3)
  %49 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8
  %50 = shufflevector <2 x i64> %49, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i64> %50, ptr getelementptr inbounds (i8, ptr @P, i64 16), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 24), i32 noundef 1)
  %51 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8
  store i64 %51, ptr getelementptr inbounds (i8, ptr @P, i64 72), align 8
  %52 = load i64, ptr @cube, align 16
  store i64 %52, ptr getelementptr inbounds (i8, ptr @P, i64 40), align 8
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 40), i32 noundef 3)
  %53 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 16), align 16
  store i64 %53, ptr getelementptr inbounds (i8, ptr @P, i64 48), align 16
  %54 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 40), align 8
  store i64 %54, ptr getelementptr inbounds (i8, ptr @P, i64 56), align 8
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 56), i32 noundef 1)
  %55 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16
  store i64 %55, ptr getelementptr inbounds (i8, ptr @P, i64 64), align 16
  %56 = load i64, ptr @cube, align 16
  store i64 %56, ptr getelementptr inbounds (i8, ptr @P, i64 80), align 16
  %57 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 24), align 8
  store i64 %57, ptr getelementptr inbounds (i8, ptr @P, i64 88), align 8
  %58 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 40), align 8
  store i64 %58, ptr getelementptr inbounds (i8, ptr @P, i64 96), align 16
  %59 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8
  store <2 x i64> %59, ptr getelementptr inbounds (i8, ptr @P, i64 104), align 8
  store i64 %57, ptr getelementptr inbounds (i8, ptr @P, i64 152), align 8
  store i64 %56, ptr getelementptr inbounds (i8, ptr @P, i64 120), align 8
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 120), i32 noundef 1)
  %60 = load <2 x i64>, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16
  store <2 x i64> %60, ptr getelementptr inbounds (i8, ptr @P, i64 128), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 136), i32 noundef 3)
  %61 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 16), align 16
  store i64 %61, ptr getelementptr inbounds (i8, ptr @P, i64 144), align 16
  %62 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16
  store i64 %62, ptr getelementptr inbounds (i8, ptr @P, i64 192), align 16
  %63 = load i64, ptr @cube, align 16
  store i64 %63, ptr getelementptr inbounds (i8, ptr @P, i64 160), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 160), i32 noundef 2)
  %64 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8
  store i64 %64, ptr getelementptr inbounds (i8, ptr @P, i64 168), align 8
  %65 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 40), align 8
  store i64 %65, ptr getelementptr inbounds (i8, ptr @P, i64 176), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 176), i32 noundef 2)
  %66 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 24), align 8
  store i64 %66, ptr getelementptr inbounds (i8, ptr @P, i64 184), align 8
  %67 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 40), align 8
  store i64 %67, ptr getelementptr inbounds (i8, ptr @P, i64 232), align 8
  %68 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 16), align 16
  store i64 %68, ptr getelementptr inbounds (i8, ptr @P, i64 200), align 8
  store i64 %66, ptr getelementptr inbounds (i8, ptr @P, i64 208), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 208), i32 noundef 1)
  %69 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 32), align 16
  store i64 %69, ptr getelementptr inbounds (i8, ptr @P, i64 216), align 8
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 216), i32 noundef 2)
  %70 = load i64, ptr getelementptr inbounds (i8, ptr @cube, i64 8), align 8
  store i64 %70, ptr getelementptr inbounds (i8, ptr @P, i64 224), align 16
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @P, i64 224), i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %71 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, -1
  %74 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %74, ptr %13, align 8, !tbaa !13
  store i32 %73, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %75 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, -1
  %78 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %78, ptr %15, align 8, !tbaa !10
  store i32 %77, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %79 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = add nsw i32 %80, -1
  %82 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %82, ptr %16, align 8, !tbaa !10
  store i32 %81, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %83 = call i32 @getchar()
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 2)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 3)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef 1)
  store i8 42, ptr %5, align 8, !tbaa !10
  store i8 42, ptr %17, align 8, !tbaa !10
  %84 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef nonnull byval(%class.state) align 8 %5)
          to label %85 unwind label %88

85:                                               ; preds = %20
  br i1 %84, label %86, label %92

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %87 unwind label %90

87:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %96

88:                                               ; preds = %159, %138, %117, %96, %20
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %201

90:                                               ; preds = %177, %156, %135, %114, %86
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %201

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %93 unwind label %94

93:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %96

94:                                               ; preds = %175, %154, %133, %112, %92
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %201

96:                                               ; preds = %93, %87
  %.1 = phi i32 [ 1, %87 ], [ 0, %93 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %97 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = add nsw i32 %98, -1
  %100 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %100, ptr %13, align 8, !tbaa !13
  store i32 %99, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %101 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = add nsw i32 %102, -1
  %104 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %104, ptr %15, align 8, !tbaa !10
  store i32 %103, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %105 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = add nsw i32 %106, -1
  %108 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %108, ptr %16, align 8, !tbaa !10
  store i32 %107, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %109 = call i32 @getchar()
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 2)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 3)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef 1)
  store i8 42, ptr %5, align 8, !tbaa !10
  store i8 42, ptr %17, align 8, !tbaa !10
  %110 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef nonnull byval(%class.state) align 8 %5)
          to label %111 unwind label %88

111:                                              ; preds = %96
  br i1 %110, label %114, label %112

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %113 unwind label %94

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %117

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %115 unwind label %90

115:                                              ; preds = %114
  %116 = add nuw nsw i32 %.1, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %117

117:                                              ; preds = %115, %113
  %.1.1 = phi i32 [ %116, %115 ], [ %.1, %113 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %118 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = add nsw i32 %119, -1
  %121 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %121, ptr %13, align 8, !tbaa !13
  store i32 %120, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %122 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = add nsw i32 %123, -1
  %125 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %125, ptr %15, align 8, !tbaa !10
  store i32 %124, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %126 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = add nsw i32 %127, -1
  %129 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %129, ptr %16, align 8, !tbaa !10
  store i32 %128, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %130 = call i32 @getchar()
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 2)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 3)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef 1)
  store i8 42, ptr %5, align 8, !tbaa !10
  store i8 42, ptr %17, align 8, !tbaa !10
  %131 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef nonnull byval(%class.state) align 8 %5)
          to label %132 unwind label %88

132:                                              ; preds = %117
  br i1 %131, label %135, label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %134 unwind label %94

134:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %138

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %136 unwind label %90

136:                                              ; preds = %135
  %137 = add nsw i32 %.1.1, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %138

138:                                              ; preds = %136, %134
  %.1.2 = phi i32 [ %137, %136 ], [ %.1.1, %134 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %139 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = add nsw i32 %140, -1
  %142 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %142, ptr %13, align 8, !tbaa !13
  store i32 %141, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %143 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = add nsw i32 %144, -1
  %146 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %146, ptr %15, align 8, !tbaa !10
  store i32 %145, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %147 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = add nsw i32 %148, -1
  %150 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %150, ptr %16, align 8, !tbaa !10
  store i32 %149, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %151 = call i32 @getchar()
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 2)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 3)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef 1)
  store i8 42, ptr %5, align 8, !tbaa !10
  store i8 42, ptr %17, align 8, !tbaa !10
  %152 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef nonnull byval(%class.state) align 8 %5)
          to label %153 unwind label %88

153:                                              ; preds = %138
  br i1 %152, label %156, label %154

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %155 unwind label %94

155:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %159

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %157 unwind label %90

157:                                              ; preds = %156
  %158 = add nsw i32 %.1.2, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %159

159:                                              ; preds = %157, %155
  %.1.3 = phi i32 [ %158, %157 ], [ %.1.2, %155 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %160 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = add nsw i32 %161, -1
  %163 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %163, ptr %13, align 8, !tbaa !13
  store i32 %162, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %164 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %165 = load i32, ptr %7, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  %167 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %167, ptr %15, align 8, !tbaa !10
  store i32 %166, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %168 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %169 = load i32, ptr %7, align 4, !tbaa !5
  %170 = add nsw i32 %169, -1
  %171 = load i8, ptr %6, align 1, !tbaa !9
  store i8 %171, ptr %16, align 8, !tbaa !10
  store i32 %170, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %172 = call i32 @getchar()
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 2)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 3)
  call void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef 1)
  store i8 42, ptr %5, align 8, !tbaa !10
  store i8 42, ptr %17, align 8, !tbaa !10
  %173 = invoke noundef zeroext i1 @_Z4Find5state(ptr noundef nonnull byval(%class.state) align 8 %5)
          to label %174 unwind label %88

174:                                              ; preds = %159
  br i1 %173, label %177, label %175

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %176 unwind label %94

176:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %180

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %178 unwind label %90

178:                                              ; preds = %177
  %179 = add nsw i32 %.1.3, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %180

180:                                              ; preds = %178, %176
  %.1.4 = phi i32 [ %179, %178 ], [ %.1.3, %176 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.02739)
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.1.4)
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %.not28 = icmp eq i32 %184, 0
  %.str.4..str.3 = select i1 %.not28, ptr @.str.4, ptr @.str.3
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4..str.3)
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %.not28.1 = icmp eq i32 %187, 0
  %.str.4.sink = select i1 %.not28.1, ptr @.str.4, ptr @.str.3
  %188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4.sink)
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #6
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %.not28.2 = icmp eq i32 %190, 0
  %.str.4.sink44 = select i1 %.not28.2, ptr @.str.4, ptr @.str.3
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4.sink44)
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #6
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %.not28.3 = icmp eq i32 %193, 0
  %.str.4.sink45 = select i1 %.not28.3, ptr @.str.4, ptr @.str.3
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4.sink45)
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4) #6
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %.not28.4 = icmp eq i32 %196, 0
  %.str.4.sink46 = select i1 %.not28.4, ptr @.str.4, ptr @.str.3
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.4.sink46)
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  %199 = add nuw nsw i32 %.02739, 1
  %200 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02739, %200
  br i1 %.not.not, label %20, label %._crit_edge, !llvm.loop !16

201:                                              ; preds = %94, %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %95, %94 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @getchar() local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4face6rotateEi(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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 = { inlinehint mustprogress nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { 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 = !{!11, !7, i64 0}
!11 = !{!"_ZTS4face", !7, i64 0, !6, i64 4}
!12 = !{!11, !6, i64 4}
!13 = !{!14, !7, i64 32}
!14 = !{!"_ZTS5state", !7, i64 0, !11, i64 32}
!15 = !{!14, !6, i64 36}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass