; LLVM IR from ravireddy07/cpp-book :: src/Code-Chef/JAN2021-Long/TILESQRS.ll (Z5harryv)

; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"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 }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator.8" = type { i8 }
%"struct.std::pair.11" = type { i64, i64 }

@gray = external dso_local global %"class.std::vector.0", align 8
@xxx = external dso_local global i64, align 8
@mat = external dso_local global %"class.std::vector.6", align 8
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3askii(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4logcxx(i64 noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4ask1xx(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3invx(i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z6decodexx(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z7decode2xx(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector.6", align 8
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca %"class.std::allocator.8", align 1
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::pair.11", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.std::pair.11", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.std::pair.11", align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.std::pair.11", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.17, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 16, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %36 unwind label %73

36:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  store i64 %37, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %39 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %40 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %40, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %41 unwind label %77

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %39, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %42 unwind label %81

42:                                               ; preds = %41
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @mat, ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %70, %42
  %45 = load i64, ptr %4, align 8, !tbaa !5
  %46 = icmp slt i64 %45, 16
  br i1 %46, label %47, label %90

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %48 = load i64, ptr %4, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %48) #6
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = load i64, ptr %4, align 8, !tbaa !5
  %52 = sub nsw i64 %51, 1
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %52) #6
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = xor i64 %50, %54
  %56 = call noundef i64 @_Z4logcxx(i64 noundef %55, i64 noundef 1)
  store i64 %56, ptr %18, align 8, !tbaa !5
  %57 = load i64, ptr %18, align 8, !tbaa !5
  %58 = sdiv i64 %57, 2
  %59 = trunc i64 %58 to i32
  %60 = load i64, ptr %18, align 8, !tbaa !5
  %61 = srem i64 %60, 2
  %62 = trunc i64 %61 to i32
  %63 = invoke noundef i32 @_Z3askii(i32 noundef %59, i32 noundef %62)
          to label %64 unwind label %86

64:                                               ; preds = %47
  %65 = sext i32 %63 to i64
  %66 = load i64, ptr %4, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %66) #6
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %68) #6
  store i64 %65, ptr %69, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %70

70:                                               ; preds = %64
  %71 = load i64, ptr %4, align 8, !tbaa !5
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %4, align 8, !tbaa !5
  br label %44, !llvm.loop !9

73:                                               ; preds = %0
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %629

77:                                               ; preds = %36
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  br label %85

81:                                               ; preds = %41
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %85

85:                                               ; preds = %81, %77
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %628

86:                                               ; preds = %47
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %628

90:                                               ; preds = %44
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #6
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef 1) #6
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = add nsw i64 %93, 1
  %95 = srem i64 %94, 2
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #6
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef 1) #6
  store i64 %95, ptr %97, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #6
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef 0) #6
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = add nsw i64 %100, 1
  %102 = srem i64 %101, 2
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #6
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef 0) #6
  store i64 %102, ptr %104, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %166, %90
  %106 = load i64, ptr %4, align 8, !tbaa !5
  %107 = icmp slt i64 %106, 16
  br i1 %107, label %108, label %169

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %109 = load i64, ptr %4, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %109) #6
  %111 = load i64, ptr %110, align 8, !tbaa !5
  store i64 %111, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 1, ptr %20, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %126, %108
  %113 = load i64, ptr %5, align 8, !tbaa !5
  %114 = icmp slt i64 %113, 4
  br i1 %114, label %115, label %129

115:                                              ; preds = %112
  %116 = load i64, ptr %4, align 8, !tbaa !5
  %117 = load i64, ptr %5, align 8, !tbaa !5
  %118 = shl i64 1, %117
  %119 = xor i64 %116, %118
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %119) #6
  %121 = load i64, ptr %120, align 8, !tbaa !5
  %122 = load i64, ptr %19, align 8, !tbaa !5
  %123 = icmp sge i64 %121, %122
  br i1 %123, label %124, label %125

124:                                              ; preds = %115
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %124, %115
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %5, align 8, !tbaa !5
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %5, align 8, !tbaa !5
  br label %112, !llvm.loop !11

129:                                              ; preds = %112
  %130 = load i64, ptr %20, align 8, !tbaa !5
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %162

132:                                              ; preds = %129
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %158, %132
  %134 = load i64, ptr %5, align 8, !tbaa !5
  %135 = icmp slt i64 %134, 4
  br i1 %135, label %136, label %161

136:                                              ; preds = %133
  %137 = load i64, ptr %4, align 8, !tbaa !5
  %138 = load i64, ptr %5, align 8, !tbaa !5
  %139 = shl i64 1, %138
  %140 = and i64 %137, %139
  %141 = icmp ne i64 %140, 0
  br i1 %141, label %142, label %157

142:                                              ; preds = %136
  %143 = load i64, ptr %5, align 8, !tbaa !5
  %144 = sdiv i64 %143, 2
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %144) #6
  %146 = load i64, ptr %5, align 8, !tbaa !5
  %147 = srem i64 %146, 2
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #6
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = call noundef i64 @_Z3invx(i64 noundef %149)
  %151 = load i64, ptr %5, align 8, !tbaa !5
  %152 = sdiv i64 %151, 2
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %152) #6
  %154 = load i64, ptr %5, align 8, !tbaa !5
  %155 = srem i64 %154, 2
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #6
  store i64 %150, ptr %156, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %142, %136
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %5, align 8, !tbaa !5
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %5, align 8, !tbaa !5
  br label %133, !llvm.loop !12

161:                                              ; preds = %133
  store i32 5, ptr %21, align 4
  br label %163

162:                                              ; preds = %129
  store i32 0, ptr %21, align 4
  br label %163

163:                                              ; preds = %162, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %164 = load i32, ptr %21, align 4
  switch i32 %164, label %635 [
    i32 0, label %165
    i32 5, label %169
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165
  %167 = load i64, ptr %4, align 8, !tbaa !5
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %4, align 8, !tbaa !5
  br label %105, !llvm.loop !13

169:                                              ; preds = %163, %105
  store i64 2, ptr %6, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %323, %169
  %171 = load i64, ptr %6, align 8, !tbaa !5
  %172 = load i64, ptr %1, align 8, !tbaa !5
  %173 = icmp slt i64 %171, %172
  br i1 %173, label %174, label %326

174:                                              ; preds = %170
  %175 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #6
  %176 = load i64, ptr %6, align 8, !tbaa !5
  %177 = sub nsw i64 %176, 1
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %177) #6
  %179 = load i64, ptr %178, align 8, !tbaa !5
  %180 = icmp ne i64 %179, 1
  br i1 %180, label %181, label %191

181:                                              ; preds = %174
  %182 = load i64, ptr %6, align 8, !tbaa !5
  %183 = sub nsw i64 %182, 1
  %184 = invoke noundef i64 @_Z4ask1xx(i64 noundef 1, i64 noundef %183)
          to label %185 unwind label %187

185:                                              ; preds = %181
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  store i64 %184, ptr %186, align 8, !tbaa !5
  br label %191

187:                                              ; preds = %611, %605, %598, %586, %584, %338, %181
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %11, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %12, align 4
  br label %628

191:                                              ; preds = %185, %174
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #6
  %193 = load i64, ptr %6, align 8, !tbaa !5
  %194 = sub nsw i64 %193, 1
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #6
  store i64 0, ptr %195, align 8, !tbaa !5
  %196 = load i64, ptr @xxx, align 8, !tbaa !5
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  store i64 %196, ptr %197, align 8, !tbaa !5
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %229, %191
  %199 = load i64, ptr %4, align 8, !tbaa !5
  %200 = icmp slt i64 %199, 8
  br i1 %200, label %201, label %236

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %202 = load i64, ptr %4, align 8, !tbaa !5
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %202) #6
  %204 = load i64, ptr %203, align 8, !tbaa !5
  %205 = load i64, ptr %4, align 8, !tbaa !5
  %206 = sub nsw i64 %205, 1
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %206) #6
  %208 = load i64, ptr %207, align 8, !tbaa !5
  %209 = xor i64 %204, %208
  %210 = call noundef i64 @_Z4logcxx(i64 noundef %209, i64 noundef 1)
  store i64 %210, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %211 = load i64, ptr %22, align 8, !tbaa !5
  %212 = load i64, ptr %6, align 8, !tbaa !5
  %213 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %211, i64 noundef %212)
          to label %214 unwind label %232

214:                                              ; preds = %201
  %215 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %216 = extractvalue { i64, i64 } %213, 0
  store i64 %216, ptr %215, align 8
  %217 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %218 = extractvalue { i64, i64 } %213, 1
  store i64 %218, ptr %217, align 8
  %219 = getelementptr inbounds %"struct.std::pair.11", ptr %23, i32 0, i32 0
  %220 = load i64, ptr %219, align 8, !tbaa !14
  %221 = getelementptr inbounds %"struct.std::pair.11", ptr %23, i32 0, i32 1
  %222 = load i64, ptr %221, align 8, !tbaa !16
  %223 = invoke noundef i64 @_Z4ask1xx(i64 noundef %220, i64 noundef %222)
          to label %224 unwind label %232

224:                                              ; preds = %214
  %225 = load i64, ptr %4, align 8, !tbaa !5
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %225) #6
  %227 = load i64, ptr %226, align 8, !tbaa !5
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %227) #6
  store i64 %223, ptr %228, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %229

229:                                              ; preds = %224
  %230 = load i64, ptr %4, align 8, !tbaa !5
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %4, align 8, !tbaa !5
  br label %198, !llvm.loop !17

232:                                              ; preds = %214, %201
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %11, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %628

236:                                              ; preds = %198
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #6
  %238 = load i64, ptr %6, align 8, !tbaa !5
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %238) #6
  %240 = load i64, ptr %239, align 8, !tbaa !5
  %241 = add nsw i64 1, %240
  %242 = srem i64 %241, 2
  %243 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #6
  %244 = load i64, ptr %6, align 8, !tbaa !5
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %244) #6
  store i64 %242, ptr %245, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %246

246:                                              ; preds = %319, %236
  %247 = load i64, ptr %4, align 8, !tbaa !5
  %248 = icmp slt i64 %247, 8
  br i1 %248, label %249, label %322

249:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %250 = load i64, ptr %4, align 8, !tbaa !5
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %250) #6
  %252 = load i64, ptr %251, align 8, !tbaa !5
  store i64 %252, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store i64 1, ptr %25, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %267, %249
  %254 = load i64, ptr %5, align 8, !tbaa !5
  %255 = icmp slt i64 %254, 3
  br i1 %255, label %256, label %270

256:                                              ; preds = %253
  %257 = load i64, ptr %4, align 8, !tbaa !5
  %258 = load i64, ptr %5, align 8, !tbaa !5
  %259 = shl i64 1, %258
  %260 = xor i64 %257, %259
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %260) #6
  %262 = load i64, ptr %261, align 8, !tbaa !5
  %263 = load i64, ptr %24, align 8, !tbaa !5
  %264 = icmp sge i64 %262, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %256
  store i64 0, ptr %25, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %265, %256
  br label %267

267:                                              ; preds = %266
  %268 = load i64, ptr %5, align 8, !tbaa !5
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %5, align 8, !tbaa !5
  br label %253, !llvm.loop !18

270:                                              ; preds = %253
  %271 = load i64, ptr %25, align 8, !tbaa !5
  %272 = icmp ne i64 %271, 0
  br i1 %272, label %273, label %315

273:                                              ; preds = %270
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %274

274:                                              ; preds = %311, %273
  %275 = load i64, ptr %5, align 8, !tbaa !5
  %276 = icmp slt i64 %275, 3
  br i1 %276, label %277, label %314

277:                                              ; preds = %274
  %278 = load i64, ptr %4, align 8, !tbaa !5
  %279 = load i64, ptr %5, align 8, !tbaa !5
  %280 = shl i64 1, %279
  %281 = and i64 %278, %280
  %282 = icmp ne i64 %281, 0
  br i1 %282, label %283, label %310

283:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %284 = load i64, ptr %5, align 8, !tbaa !5
  %285 = load i64, ptr %6, align 8, !tbaa !5
  %286 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %284, i64 noundef %285)
          to label %287 unwind label %306

287:                                              ; preds = %283
  %288 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %289 = extractvalue { i64, i64 } %286, 0
  store i64 %289, ptr %288, align 8
  %290 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %291 = extractvalue { i64, i64 } %286, 1
  store i64 %291, ptr %290, align 8
  %292 = getelementptr inbounds %"struct.std::pair.11", ptr %26, i32 0, i32 0
  %293 = load i64, ptr %292, align 8, !tbaa !14
  %294 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %293) #6
  %295 = getelementptr inbounds %"struct.std::pair.11", ptr %26, i32 0, i32 1
  %296 = load i64, ptr %295, align 8, !tbaa !16
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %294, i64 noundef %296) #6
  %298 = load i64, ptr %297, align 8, !tbaa !5
  %299 = call noundef i64 @_Z3invx(i64 noundef %298)
  %300 = getelementptr inbounds %"struct.std::pair.11", ptr %26, i32 0, i32 0
  %301 = load i64, ptr %300, align 8, !tbaa !14
  %302 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %301) #6
  %303 = getelementptr inbounds %"struct.std::pair.11", ptr %26, i32 0, i32 1
  %304 = load i64, ptr %303, align 8, !tbaa !16
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %302, i64 noundef %304) #6
  store i64 %299, ptr %305, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %310

306:                                              ; preds = %283
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %11, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %628

310:                                              ; preds = %287, %277
  br label %311

311:                                              ; preds = %310
  %312 = load i64, ptr %5, align 8, !tbaa !5
  %313 = add nsw i64 %312, 1
  store i64 %313, ptr %5, align 8, !tbaa !5
  br label %274, !llvm.loop !19

314:                                              ; preds = %274
  store i32 20, ptr %21, align 4
  br label %316

315:                                              ; preds = %270
  store i32 0, ptr %21, align 4
  br label %316

316:                                              ; preds = %315, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %317 = load i32, ptr %21, align 4
  switch i32 %317, label %635 [
    i32 0, label %318
    i32 20, label %322
  ]

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318
  %320 = load i64, ptr %4, align 8, !tbaa !5
  %321 = add nsw i64 %320, 1
  store i64 %321, ptr %4, align 8, !tbaa !5
  br label %246, !llvm.loop !20

322:                                              ; preds = %316, %246
  br label %323

323:                                              ; preds = %322
  %324 = load i64, ptr %6, align 8, !tbaa !5
  %325 = add nsw i64 %324, 1
  store i64 %325, ptr %6, align 8, !tbaa !5
  br label %170, !llvm.loop !21

326:                                              ; preds = %170
  store i64 2, ptr %6, align 8, !tbaa !5
  br label %327

327:                                              ; preds = %481, %326
  %328 = load i64, ptr %6, align 8, !tbaa !5
  %329 = load i64, ptr %1, align 8, !tbaa !5
  %330 = icmp slt i64 %328, %329
  br i1 %330, label %331, label %484

331:                                              ; preds = %327
  %332 = load i64, ptr %6, align 8, !tbaa !5
  %333 = sub nsw i64 %332, 1
  %334 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %333) #6
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef 1) #6
  %336 = load i64, ptr %335, align 8, !tbaa !5
  %337 = icmp ne i64 %336, 1
  br i1 %337, label %338, label %346

338:                                              ; preds = %331
  %339 = load i64, ptr %6, align 8, !tbaa !5
  %340 = sub nsw i64 %339, 1
  %341 = trunc i64 %340 to i32
  %342 = invoke noundef i32 @_Z3askii(i32 noundef %341, i32 noundef 1)
          to label %343 unwind label %187

343:                                              ; preds = %338
  %344 = sext i32 %342 to i64
  %345 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  store i64 %344, ptr %345, align 8, !tbaa !5
  br label %346

346:                                              ; preds = %343, %331
  %347 = load i64, ptr %6, align 8, !tbaa !5
  %348 = sub nsw i64 %347, 1
  %349 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %348) #6
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef 0) #6
  store i64 0, ptr %350, align 8, !tbaa !5
  %351 = load i64, ptr @xxx, align 8, !tbaa !5
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #6
  store i64 %351, ptr %352, align 8, !tbaa !5
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %353

353:                                              ; preds = %387, %346
  %354 = load i64, ptr %4, align 8, !tbaa !5
  %355 = icmp slt i64 %354, 8
  br i1 %355, label %356, label %394

356:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %357 = load i64, ptr %4, align 8, !tbaa !5
  %358 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %357) #6
  %359 = load i64, ptr %358, align 8, !tbaa !5
  %360 = load i64, ptr %4, align 8, !tbaa !5
  %361 = sub nsw i64 %360, 1
  %362 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %361) #6
  %363 = load i64, ptr %362, align 8, !tbaa !5
  %364 = xor i64 %359, %363
  %365 = call noundef i64 @_Z4logcxx(i64 noundef %364, i64 noundef 1)
  store i64 %365, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %366 = load i64, ptr %27, align 8, !tbaa !5
  %367 = load i64, ptr %6, align 8, !tbaa !5
  %368 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %366, i64 noundef %367)
          to label %369 unwind label %390

369:                                              ; preds = %356
  %370 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %371 = extractvalue { i64, i64 } %368, 0
  store i64 %371, ptr %370, align 8
  %372 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %373 = extractvalue { i64, i64 } %368, 1
  store i64 %373, ptr %372, align 8
  %374 = getelementptr inbounds %"struct.std::pair.11", ptr %28, i32 0, i32 0
  %375 = load i64, ptr %374, align 8, !tbaa !14
  %376 = trunc i64 %375 to i32
  %377 = getelementptr inbounds %"struct.std::pair.11", ptr %28, i32 0, i32 1
  %378 = load i64, ptr %377, align 8, !tbaa !16
  %379 = trunc i64 %378 to i32
  %380 = invoke noundef i32 @_Z3askii(i32 noundef %376, i32 noundef %379)
          to label %381 unwind label %390

381:                                              ; preds = %369
  %382 = sext i32 %380 to i64
  %383 = load i64, ptr %4, align 8, !tbaa !5
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %383) #6
  %385 = load i64, ptr %384, align 8, !tbaa !5
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %385) #6
  store i64 %382, ptr %386, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %387

387:                                              ; preds = %381
  %388 = load i64, ptr %4, align 8, !tbaa !5
  %389 = add nsw i64 %388, 1
  store i64 %389, ptr %4, align 8, !tbaa !5
  br label %353, !llvm.loop !22

390:                                              ; preds = %369, %356
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %11, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %628

394:                                              ; preds = %353
  %395 = load i64, ptr %6, align 8, !tbaa !5
  %396 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %395) #6
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %396, i64 noundef 0) #6
  %398 = load i64, ptr %397, align 8, !tbaa !5
  %399 = add nsw i64 %398, 1
  %400 = srem i64 %399, 2
  %401 = load i64, ptr %6, align 8, !tbaa !5
  %402 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %401) #6
  %403 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef 0) #6
  store i64 %400, ptr %403, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %404

404:                                              ; preds = %477, %394
  %405 = load i64, ptr %4, align 8, !tbaa !5
  %406 = icmp slt i64 %405, 8
  br i1 %406, label %407, label %480

407:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %408 = load i64, ptr %4, align 8, !tbaa !5
  %409 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %408) #6
  %410 = load i64, ptr %409, align 8, !tbaa !5
  store i64 %410, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 1, ptr %30, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %411

411:                                              ; preds = %425, %407
  %412 = load i64, ptr %5, align 8, !tbaa !5
  %413 = icmp slt i64 %412, 3
  br i1 %413, label %414, label %428

414:                                              ; preds = %411
  %415 = load i64, ptr %4, align 8, !tbaa !5
  %416 = load i64, ptr %5, align 8, !tbaa !5
  %417 = shl i64 1, %416
  %418 = xor i64 %415, %417
  %419 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %418) #6
  %420 = load i64, ptr %419, align 8, !tbaa !5
  %421 = load i64, ptr %29, align 8, !tbaa !5
  %422 = icmp sge i64 %420, %421
  br i1 %422, label %423, label %424

423:                                              ; preds = %414
  store i64 0, ptr %30, align 8, !tbaa !5
  br label %424

424:                                              ; preds = %423, %414
  br label %425

425:                                              ; preds = %424
  %426 = load i64, ptr %5, align 8, !tbaa !5
  %427 = add nsw i64 %426, 1
  store i64 %427, ptr %5, align 8, !tbaa !5
  br label %411, !llvm.loop !23

428:                                              ; preds = %411
  %429 = load i64, ptr %30, align 8, !tbaa !5
  %430 = icmp ne i64 %429, 0
  br i1 %430, label %431, label %473

431:                                              ; preds = %428
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %432

432:                                              ; preds = %469, %431
  %433 = load i64, ptr %5, align 8, !tbaa !5
  %434 = icmp slt i64 %433, 3
  br i1 %434, label %435, label %472

435:                                              ; preds = %432
  %436 = load i64, ptr %4, align 8, !tbaa !5
  %437 = load i64, ptr %5, align 8, !tbaa !5
  %438 = shl i64 1, %437
  %439 = and i64 %436, %438
  %440 = icmp ne i64 %439, 0
  br i1 %440, label %441, label %468

441:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %442 = load i64, ptr %5, align 8, !tbaa !5
  %443 = load i64, ptr %6, align 8, !tbaa !5
  %444 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %442, i64 noundef %443)
          to label %445 unwind label %464

445:                                              ; preds = %441
  %446 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %447 = extractvalue { i64, i64 } %444, 0
  store i64 %447, ptr %446, align 8
  %448 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %449 = extractvalue { i64, i64 } %444, 1
  store i64 %449, ptr %448, align 8
  %450 = getelementptr inbounds %"struct.std::pair.11", ptr %31, i32 0, i32 0
  %451 = load i64, ptr %450, align 8, !tbaa !14
  %452 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %451) #6
  %453 = getelementptr inbounds %"struct.std::pair.11", ptr %31, i32 0, i32 1
  %454 = load i64, ptr %453, align 8, !tbaa !16
  %455 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %452, i64 noundef %454) #6
  %456 = load i64, ptr %455, align 8, !tbaa !5
  %457 = call noundef i64 @_Z3invx(i64 noundef %456)
  %458 = getelementptr inbounds %"struct.std::pair.11", ptr %31, i32 0, i32 0
  %459 = load i64, ptr %458, align 8, !tbaa !14
  %460 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %459) #6
  %461 = getelementptr inbounds %"struct.std::pair.11", ptr %31, i32 0, i32 1
  %462 = load i64, ptr %461, align 8, !tbaa !16
  %463 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %460, i64 noundef %462) #6
  store i64 %457, ptr %463, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %468

464:                                              ; preds = %441
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %11, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %628

468:                                              ; preds = %445, %435
  br label %469

469:                                              ; preds = %468
  %470 = load i64, ptr %5, align 8, !tbaa !5
  %471 = add nsw i64 %470, 1
  store i64 %471, ptr %5, align 8, !tbaa !5
  br label %432, !llvm.loop !24

472:                                              ; preds = %432
  store i32 35, ptr %21, align 4
  br label %474

473:                                              ; preds = %428
  store i32 0, ptr %21, align 4
  br label %474

474:                                              ; preds = %473, %472
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  %475 = load i32, ptr %21, align 4
  switch i32 %475, label %635 [
    i32 0, label %476
    i32 35, label %480
  ]

476:                                              ; preds = %474
  br label %477

477:                                              ; preds = %476
  %478 = load i64, ptr %4, align 8, !tbaa !5
  %479 = add nsw i64 %478, 1
  store i64 %479, ptr %4, align 8, !tbaa !5
  br label %404, !llvm.loop !25

480:                                              ; preds = %474, %404
  br label %481

481:                                              ; preds = %480
  %482 = load i64, ptr %6, align 8, !tbaa !5
  %483 = add nsw i64 %482, 1
  store i64 %483, ptr %6, align 8, !tbaa !5
  br label %327, !llvm.loop !26

484:                                              ; preds = %327
  store i64 2, ptr %4, align 8, !tbaa !5
  br label %485

485:                                              ; preds = %581, %484
  %486 = load i64, ptr %4, align 8, !tbaa !5
  %487 = load i64, ptr %1, align 8, !tbaa !5
  %488 = icmp slt i64 %486, %487
  br i1 %488, label %489, label %584

489:                                              ; preds = %485
  store i64 2, ptr %5, align 8, !tbaa !5
  br label %490

490:                                              ; preds = %572, %489
  %491 = load i64, ptr %5, align 8, !tbaa !5
  %492 = load i64, ptr %1, align 8, !tbaa !5
  %493 = icmp slt i64 %491, %492
  br i1 %493, label %494, label %580

494:                                              ; preds = %490
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %495 = load i64, ptr @xxx, align 8, !tbaa !5
  store i64 %495, ptr %32, align 8, !tbaa !5
  %496 = load i64, ptr %4, align 8, !tbaa !5
  %497 = sub nsw i64 %496, 1
  %498 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %497) #6
  %499 = load i64, ptr %5, align 8, !tbaa !5
  %500 = sub nsw i64 %499, 1
  %501 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %498, i64 noundef %500) #6
  %502 = load i64, ptr %501, align 8, !tbaa !5
  %503 = icmp ne i64 %502, 0
  br i1 %503, label %504, label %518

504:                                              ; preds = %494
  %505 = load i64, ptr %4, align 8, !tbaa !5
  %506 = sub nsw i64 %505, 1
  %507 = trunc i64 %506 to i32
  %508 = load i64, ptr %5, align 8, !tbaa !5
  %509 = sub nsw i64 %508, 1
  %510 = trunc i64 %509 to i32
  %511 = invoke noundef i32 @_Z3askii(i32 noundef %507, i32 noundef %510)
          to label %512 unwind label %514

512:                                              ; preds = %504
  %513 = sext i32 %511 to i64
  store i64 %513, ptr %32, align 8, !tbaa !5
  br label %518

514:                                              ; preds = %545, %527, %504
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %11, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %12, align 4
  br label %579

518:                                              ; preds = %512, %494
  %519 = load i64, ptr %4, align 8, !tbaa !5
  %520 = sub nsw i64 %519, 1
  %521 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %520) #6
  %522 = load i64, ptr %5, align 8, !tbaa !5
  %523 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %521, i64 noundef %522) #6
  %524 = load i64, ptr %523, align 8, !tbaa !5
  %525 = srem i64 %524, 2
  %526 = icmp ne i64 %525, 1
  br i1 %526, label %527, label %536

527:                                              ; preds = %518
  %528 = load i64, ptr %4, align 8, !tbaa !5
  %529 = sub nsw i64 %528, 1
  %530 = trunc i64 %529 to i32
  %531 = load i64, ptr %5, align 8, !tbaa !5
  %532 = trunc i64 %531 to i32
  %533 = invoke noundef i32 @_Z3askii(i32 noundef %530, i32 noundef %532)
          to label %534 unwind label %514

534:                                              ; preds = %527
  %535 = sext i32 %533 to i64
  store i64 %535, ptr %32, align 8, !tbaa !5
  br label %536

536:                                              ; preds = %534, %518
  %537 = load i64, ptr %4, align 8, !tbaa !5
  %538 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %537) #6
  %539 = load i64, ptr %5, align 8, !tbaa !5
  %540 = sub nsw i64 %539, 1
  %541 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %538, i64 noundef %540) #6
  %542 = load i64, ptr %541, align 8, !tbaa !5
  %543 = srem i64 %542, 2
  %544 = icmp ne i64 %543, 1
  br i1 %544, label %545, label %554

545:                                              ; preds = %536
  %546 = load i64, ptr %4, align 8, !tbaa !5
  %547 = trunc i64 %546 to i32
  %548 = load i64, ptr %5, align 8, !tbaa !5
  %549 = sub nsw i64 %548, 1
  %550 = trunc i64 %549 to i32
  %551 = invoke noundef i32 @_Z3askii(i32 noundef %547, i32 noundef %550)
          to label %552 unwind label %514

552:                                              ; preds = %545
  %553 = sext i32 %551 to i64
  store i64 %553, ptr %32, align 8, !tbaa !5
  br label %554

554:                                              ; preds = %552, %536
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %555 = load i64, ptr %4, align 8, !tbaa !5
  %556 = trunc i64 %555 to i32
  %557 = load i64, ptr %5, align 8, !tbaa !5
  %558 = trunc i64 %557 to i32
  %559 = invoke noundef i32 @_Z3askii(i32 noundef %556, i32 noundef %558)
          to label %560 unwind label %575

560:                                              ; preds = %554
  %561 = sext i32 %559 to i64
  store i64 %561, ptr %33, align 8, !tbaa !5
  %562 = load i64, ptr %32, align 8, !tbaa !5
  %563 = load i64, ptr %33, align 8, !tbaa !5
  %564 = icmp sgt i64 %562, %563
  %565 = zext i1 %564 to i64
  %566 = select i1 %564, i32 1, i32 0
  %567 = sext i32 %566 to i64
  %568 = load i64, ptr %4, align 8, !tbaa !5
  %569 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %568) #6
  %570 = load i64, ptr %5, align 8, !tbaa !5
  %571 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %569, i64 noundef %570) #6
  store i64 %567, ptr %571, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %572

572:                                              ; preds = %560
  %573 = load i64, ptr %5, align 8, !tbaa !5
  %574 = add nsw i64 %573, 1
  store i64 %574, ptr %5, align 8, !tbaa !5
  br label %490, !llvm.loop !27

575:                                              ; preds = %554
  %576 = landingpad { ptr, i32 }
          cleanup
  %577 = extractvalue { ptr, i32 } %576, 0
  store ptr %577, ptr %11, align 8
  %578 = extractvalue { ptr, i32 } %576, 1
  store i32 %578, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %579

579:                                              ; preds = %575, %514
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %628

580:                                              ; preds = %490
  br label %581

581:                                              ; preds = %580
  %582 = load i64, ptr %4, align 8, !tbaa !5
  %583 = add nsw i64 %582, 1
  store i64 %583, ptr %4, align 8, !tbaa !5
  br label %485, !llvm.loop !28

584:                                              ; preds = %485
  %585 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %586 unwind label %187

586:                                              ; preds = %584
  %587 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %585, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %588 unwind label %187

588:                                              ; preds = %586
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %589

589:                                              ; preds = %614, %588
  %590 = load i64, ptr %4, align 8, !tbaa !5
  %591 = load i64, ptr %1, align 8, !tbaa !5
  %592 = icmp slt i64 %590, %591
  br i1 %592, label %593, label %617

593:                                              ; preds = %589
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %594

594:                                              ; preds = %608, %593
  %595 = load i64, ptr %5, align 8, !tbaa !5
  %596 = load i64, ptr %1, align 8, !tbaa !5
  %597 = icmp slt i64 %595, %596
  br i1 %597, label %598, label %611

598:                                              ; preds = %594
  %599 = load i64, ptr %4, align 8, !tbaa !5
  %600 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %599) #6
  %601 = load i64, ptr %5, align 8, !tbaa !5
  %602 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %600, i64 noundef %601) #6
  %603 = load i64, ptr %602, align 8, !tbaa !5
  %604 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %603)
          to label %605 unwind label %187

605:                                              ; preds = %598
  %606 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %604, ptr noundef @.str.18)
          to label %607 unwind label %187

607:                                              ; preds = %605
  br label %608

608:                                              ; preds = %607
  %609 = load i64, ptr %5, align 8, !tbaa !5
  %610 = add nsw i64 %609, 1
  store i64 %610, ptr %5, align 8, !tbaa !5
  br label %594, !llvm.loop !29

611:                                              ; preds = %594
  %612 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %613 unwind label %187

613:                                              ; preds = %611
  br label %614

614:                                              ; preds = %613
  %615 = load i64, ptr %4, align 8, !tbaa !5
  %616 = add nsw i64 %615, 1
  store i64 %616, ptr %4, align 8, !tbaa !5
  br label %589, !llvm.loop !30

617:                                              ; preds = %589
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %618 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.19, ptr noundef %34)
          to label %619 unwind label %623

619:                                              ; preds = %617
  %620 = load i64, ptr %34, align 8, !tbaa !5
  %621 = icmp eq i64 %620, -1
  br i1 %621, label %622, label %627

622:                                              ; preds = %619
  call void @exit(i32 noundef 0) #7
  unreachable

623:                                              ; preds = %617
  %624 = landingpad { ptr, i32 }
          cleanup
  %625 = extractvalue { ptr, i32 } %624, 0
  store ptr %625, ptr %11, align 8
  %626 = extractvalue { ptr, i32 } %624, 1
  store i32 %626, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %628

627:                                              ; preds = %619
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void

628:                                              ; preds = %623, %579, %464, %390, %306, %232, %187, %86, %85
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %629

629:                                              ; preds = %628, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %630

630:                                              ; preds = %629
  %631 = load ptr, ptr %11, align 8
  %632 = load i32, ptr %12, align 4
  %633 = insertvalue { ptr, i32 } poison, ptr %631, 0
  %634 = insertvalue { ptr, i32 } %633, i32 %632, 1
  resume { ptr, i32 } %634

635:                                              ; preds = %474, %316, %163
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long long>, std::allocator<std::vector<long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"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 }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator.8" = type { i8 }

@gray = external dso_local global %"class.std::vector.0", align 8
@xxx = external dso_local local_unnamed_addr global i64, align 8
@mat = external dso_local global %"class.std::vector.6", align 8
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3askii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4logcxx(i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z4ask1xx(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3invx(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z6decodexx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z7decode2xx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector.6", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %"class.std::allocator.8", align 1
  %12 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.17, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 16, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %14 unwind label %40

14:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  store i64 %15, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %17 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %17, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %18 unwind label %42

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %17, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %19 unwind label %44

19:                                               ; preds = %18
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @mat, ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @_ZNSt6vectorIS_IxSaIxEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %21

21:                                               ; preds = %19, %34
  %.0210 = phi i64 [ 1, %19 ], [ %39, %34 ]
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %.0210) #7
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = add nsw i64 %.0210, -1
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %24) #7
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = xor i64 %26, %23
  %28 = call noundef i64 @_Z4logcxx(i64 noundef %27, i64 noundef 1)
  %29 = sdiv i64 %28, 2
  %30 = trunc i64 %29 to i32
  %31 = srem i64 %28, 2
  %32 = trunc nsw i64 %31 to i32
  %33 = invoke noundef i32 @_Z3askii(i32 noundef %30, i32 noundef %32)
          to label %34 unwind label %47

34:                                               ; preds = %21
  %35 = sext i32 %33 to i64
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef %.0210) #7
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %37) #7
  store i64 %35, ptr %38, align 8, !tbaa !5
  %39 = add nuw nsw i64 %.0210, 1
  %exitcond.not = icmp eq i64 %39, 16
  br i1 %exitcond.not, label %49, label %21, !llvm.loop !9

40:                                               ; preds = %0
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %693

42:                                               ; preds = %14
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %18
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %46

46:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %.loopexit.split-lp

47:                                               ; preds = %21
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

49:                                               ; preds = %34
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 1) #7
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = add nsw i64 %52, 1
  %54 = srem i64 %53, 2
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef 1) #7
  store i64 %54, ptr %56, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef 0) #7
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = add nsw i64 %59, 1
  %61 = srem i64 %60, 2
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 0) #7
  store i64 %61, ptr %63, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %49, %114
  %.1213 = phi i64 [ 0, %49 ], [ %115, %114 ]
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.1213) #7
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = xor i64 %.1213, 1
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %67) #7
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %.not168 = icmp sge i64 %69, %66
  %70 = xor i64 %.1213, 2
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %70) #7
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %.not168.1 = icmp sge i64 %72, %66
  %73 = xor i64 %.1213, 4
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %73) #7
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %.not168.2 = icmp sge i64 %75, %66
  %76 = xor i64 %.1213, 8
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %76) #7
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %.not168.3 = icmp sge i64 %78, %66
  %.not266 = select i1 %.not168.3, i1 true, i1 %.not168.2
  %.not265 = select i1 %.not266, i1 true, i1 %.not168.1
  %narrow.not = select i1 %.not265, i1 true, i1 %.not168
  br i1 %narrow.not, label %114, label %.preheader204

.preheader204:                                    ; preds = %64
  %79 = and i64 %.1213, 1
  %.not167 = icmp eq i64 %79, 0
  br i1 %.not167, label %87, label %80

80:                                               ; preds = %.preheader204
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef 0) #7
  %83 = load i64, ptr %82, align 8, !tbaa !5
  %84 = call noundef i64 @_Z3invx(i64 noundef %83)
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 0) #7
  store i64 %84, ptr %86, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %.preheader204, %80
  %88 = and i64 %.1213, 2
  %.not167.1 = icmp eq i64 %88, 0
  br i1 %.not167.1, label %96, label %89

89:                                               ; preds = %87
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef 1) #7
  %92 = load i64, ptr %91, align 8, !tbaa !5
  %93 = call noundef i64 @_Z3invx(i64 noundef %92)
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef 1) #7
  store i64 %93, ptr %95, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %89, %87
  %97 = and i64 %.1213, 4
  %.not167.2 = icmp eq i64 %97, 0
  br i1 %.not167.2, label %105, label %98

98:                                               ; preds = %96
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef 0) #7
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = call noundef i64 @_Z3invx(i64 noundef %101)
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef 0) #7
  store i64 %102, ptr %104, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %98, %96
  %106 = and i64 %.1213, 8
  %.not167.3 = icmp eq i64 %106, 0
  br i1 %.not167.3, label %.loopexit205, label %107

107:                                              ; preds = %105
  %108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef 1) #7
  %110 = load i64, ptr %109, align 8, !tbaa !5
  %111 = call noundef i64 @_Z3invx(i64 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef 1) #7
  store i64 %111, ptr %113, align 8, !tbaa !5
  br label %.loopexit205

114:                                              ; preds = %64
  %115 = add nuw nsw i64 %.1213, 1
  %exitcond245.not = icmp eq i64 %115, 16
  br i1 %exitcond245.not, label %.loopexit205, label %64, !llvm.loop !11

.loopexit205:                                     ; preds = %114, %105, %107
  %116 = load i64, ptr %1, align 8, !tbaa !5
  %117 = icmp sgt i64 %116, 2
  br i1 %117, label %.lr.ph, label %._crit_edge231

.preheader195:                                    ; preds = %.loopexit199
  %118 = icmp sgt i64 %351, 2
  br i1 %118, label %.lr.ph227, label %._crit_edge231

.lr.ph:                                           ; preds = %.loopexit205, %.loopexit199
  %.0134220 = phi i64 [ %350, %.loopexit199 ], [ 2, %.loopexit205 ]
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 1) #7
  %120 = add nsw i64 %.0134220, -1
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %120) #7
  %122 = load i64, ptr %121, align 8, !tbaa !5
  %.not163 = icmp eq i64 %122, 1
  br i1 %.not163, label %127, label %123

123:                                              ; preds = %.lr.ph
  %124 = invoke noundef i64 @_Z4ask1xx(i64 noundef 1, i64 noundef %120)
          to label %125 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

125:                                              ; preds = %123
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  store i64 %124, ptr %126, align 8, !tbaa !5
  br label %127

.loopexit:                                        ; preds = %.lr.ph233, %677
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %._crit_edge234
  %lpad.loopexit187 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %358
  %lpad.loopexit196 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %123
  %lpad.loopexit201 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %667, %._crit_edge231
  %lpad.loopexit.split-lp202 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

127:                                              ; preds = %125, %.lr.ph
  %128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %120) #7
  store i64 0, ptr %129, align 8, !tbaa !5
  %130 = load i64, ptr @xxx, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  store i64 %130, ptr %131, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %133 = load i64, ptr %132, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 0) #7
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = xor i64 %135, %133
  %137 = call noundef i64 @_Z4logcxx(i64 noundef %136, i64 noundef 1)
  %138 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %137, i64 noundef %.0134220)
          to label %139 unwind label %252

139:                                              ; preds = %127
  %140 = extractvalue { i64, i64 } %138, 0
  %141 = extractvalue { i64, i64 } %138, 1
  %142 = invoke noundef i64 @_Z4ask1xx(i64 noundef %140, i64 noundef %141)
          to label %143 unwind label %252

143:                                              ; preds = %139
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %145 = load i64, ptr %144, align 8, !tbaa !5
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %145) #7
  store i64 %142, ptr %146, align 8, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %148 = load i64, ptr %147, align 8, !tbaa !5
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %150 = load i64, ptr %149, align 8, !tbaa !5
  %151 = xor i64 %150, %148
  %152 = call noundef i64 @_Z4logcxx(i64 noundef %151, i64 noundef 1)
  %153 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %152, i64 noundef %.0134220)
          to label %154 unwind label %252

154:                                              ; preds = %143
  %155 = extractvalue { i64, i64 } %153, 0
  %156 = extractvalue { i64, i64 } %153, 1
  %157 = invoke noundef i64 @_Z4ask1xx(i64 noundef %155, i64 noundef %156)
          to label %158 unwind label %252

158:                                              ; preds = %154
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %160 = load i64, ptr %159, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %160) #7
  store i64 %157, ptr %161, align 8, !tbaa !5
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %163 = load i64, ptr %162, align 8, !tbaa !5
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %165 = load i64, ptr %164, align 8, !tbaa !5
  %166 = xor i64 %165, %163
  %167 = call noundef i64 @_Z4logcxx(i64 noundef %166, i64 noundef 1)
  %168 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %167, i64 noundef %.0134220)
          to label %169 unwind label %252

169:                                              ; preds = %158
  %170 = extractvalue { i64, i64 } %168, 0
  %171 = extractvalue { i64, i64 } %168, 1
  %172 = invoke noundef i64 @_Z4ask1xx(i64 noundef %170, i64 noundef %171)
          to label %173 unwind label %252

173:                                              ; preds = %169
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %175 = load i64, ptr %174, align 8, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %175) #7
  store i64 %172, ptr %176, align 8, !tbaa !5
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %178 = load i64, ptr %177, align 8, !tbaa !5
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %180 = load i64, ptr %179, align 8, !tbaa !5
  %181 = xor i64 %180, %178
  %182 = call noundef i64 @_Z4logcxx(i64 noundef %181, i64 noundef 1)
  %183 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %182, i64 noundef %.0134220)
          to label %184 unwind label %252

184:                                              ; preds = %173
  %185 = extractvalue { i64, i64 } %183, 0
  %186 = extractvalue { i64, i64 } %183, 1
  %187 = invoke noundef i64 @_Z4ask1xx(i64 noundef %185, i64 noundef %186)
          to label %188 unwind label %252

188:                                              ; preds = %184
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %190 = load i64, ptr %189, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %190) #7
  store i64 %187, ptr %191, align 8, !tbaa !5
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %193 = load i64, ptr %192, align 8, !tbaa !5
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %195 = load i64, ptr %194, align 8, !tbaa !5
  %196 = xor i64 %195, %193
  %197 = call noundef i64 @_Z4logcxx(i64 noundef %196, i64 noundef 1)
  %198 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %197, i64 noundef %.0134220)
          to label %199 unwind label %252

199:                                              ; preds = %188
  %200 = extractvalue { i64, i64 } %198, 0
  %201 = extractvalue { i64, i64 } %198, 1
  %202 = invoke noundef i64 @_Z4ask1xx(i64 noundef %200, i64 noundef %201)
          to label %203 unwind label %252

203:                                              ; preds = %199
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %205 = load i64, ptr %204, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %205) #7
  store i64 %202, ptr %206, align 8, !tbaa !5
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %208 = load i64, ptr %207, align 8, !tbaa !5
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %210 = load i64, ptr %209, align 8, !tbaa !5
  %211 = xor i64 %210, %208
  %212 = call noundef i64 @_Z4logcxx(i64 noundef %211, i64 noundef 1)
  %213 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %212, i64 noundef %.0134220)
          to label %214 unwind label %252

214:                                              ; preds = %203
  %215 = extractvalue { i64, i64 } %213, 0
  %216 = extractvalue { i64, i64 } %213, 1
  %217 = invoke noundef i64 @_Z4ask1xx(i64 noundef %215, i64 noundef %216)
          to label %218 unwind label %252

218:                                              ; preds = %214
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %220 = load i64, ptr %219, align 8, !tbaa !5
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %220) #7
  store i64 %217, ptr %221, align 8, !tbaa !5
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 7) #7
  %223 = load i64, ptr %222, align 8, !tbaa !5
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %225 = load i64, ptr %224, align 8, !tbaa !5
  %226 = xor i64 %225, %223
  %227 = call noundef i64 @_Z4logcxx(i64 noundef %226, i64 noundef 1)
  %228 = invoke { i64, i64 } @_Z6decodexx(i64 noundef %227, i64 noundef %.0134220)
          to label %229 unwind label %252

229:                                              ; preds = %218
  %230 = extractvalue { i64, i64 } %228, 0
  %231 = extractvalue { i64, i64 } %228, 1
  %232 = invoke noundef i64 @_Z4ask1xx(i64 noundef %230, i64 noundef %231)
          to label %233 unwind label %252

233:                                              ; preds = %229
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 7) #7
  %235 = load i64, ptr %234, align 8, !tbaa !5
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %235) #7
  store i64 %232, ptr %236, align 8, !tbaa !5
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %.0134220) #7
  %239 = load i64, ptr %238, align 8, !tbaa !5
  %240 = add nsw i64 %239, 1
  %241 = srem i64 %240, 2
  %242 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef 0) #7
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %.0134220) #7
  store i64 %241, ptr %243, align 8, !tbaa !5
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %245 = load i64, ptr %244, align 8, !tbaa !5
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %247 = load i64, ptr %246, align 8, !tbaa !5
  %.not166 = icmp sge i64 %247, %245
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %249 = load i64, ptr %248, align 8, !tbaa !5
  %.not166.1 = icmp sge i64 %249, %245
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %251 = load i64, ptr %250, align 8, !tbaa !5
  %.not166.2 = icmp sge i64 %251, %245
  %.not268 = select i1 %.not166.2, i1 true, i1 %.not166.1
  %narrow267.not = select i1 %.not268, i1 true, i1 %.not166
  br i1 %narrow267.not, label %287, label %.loopexit199

252:                                              ; preds = %229, %218, %214, %203, %199, %188, %184, %173, %169, %158, %154, %143, %139, %127
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

254:                                              ; preds = %287, %305, %323, %341
  %.not165.2 = phi i1 [ true, %287 ], [ true, %305 ], [ false, %323 ], [ false, %341 ]
  %.not165.1 = phi i1 [ true, %287 ], [ false, %305 ], [ true, %323 ], [ false, %341 ]
  %255 = invoke { i64, i64 } @_Z6decodexx(i64 noundef 0, i64 noundef %.0134220)
          to label %.preheader198.thread unwind label %256

256:                                              ; preds = %.preheader198.thread.thread, %.preheader198.thread.thread315, %254
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader198.thread:                             ; preds = %254
  %258 = extractvalue { i64, i64 } %255, 0
  %259 = extractvalue { i64, i64 } %255, 1
  %260 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %258) #7
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %260, i64 noundef %259) #7
  %262 = load i64, ptr %261, align 8, !tbaa !5
  %263 = call noundef i64 @_Z3invx(i64 noundef %262)
  %264 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %258) #7
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %264, i64 noundef %259) #7
  store i64 %263, ptr %265, align 8, !tbaa !5
  br i1 %.not165.1, label %276, label %.preheader198.thread.thread315

.preheader198.thread.thread315:                   ; preds = %296, %332, %.preheader198.thread
  %.not165.2302319 = phi i1 [ %.not165.2, %.preheader198.thread ], [ true, %296 ], [ false, %332 ]
  %266 = invoke { i64, i64 } @_Z6decodexx(i64 noundef 1, i64 noundef %.0134220)
          to label %267 unwind label %256

267:                                              ; preds = %.preheader198.thread.thread315
  %268 = extractvalue { i64, i64 } %266, 0
  %269 = extractvalue { i64, i64 } %266, 1
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %268) #7
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %269) #7
  %272 = load i64, ptr %271, align 8, !tbaa !5
  %273 = call noundef i64 @_Z3invx(i64 noundef %272)
  %274 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %268) #7
  %275 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %269) #7
  store i64 %273, ptr %275, align 8, !tbaa !5
  br i1 %.not165.2302319, label %.loopexit199, label %.preheader198.thread.thread

276:                                              ; preds = %.preheader198.thread
  br i1 %.not165.2, label %.loopexit199, label %.preheader198.thread.thread

.preheader198.thread.thread:                      ; preds = %314, %267, %276
  %277 = invoke { i64, i64 } @_Z6decodexx(i64 noundef 2, i64 noundef %.0134220)
          to label %278 unwind label %256

278:                                              ; preds = %.preheader198.thread.thread
  %279 = extractvalue { i64, i64 } %277, 0
  %280 = extractvalue { i64, i64 } %277, 1
  %281 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %279) #7
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %281, i64 noundef %280) #7
  %283 = load i64, ptr %282, align 8, !tbaa !5
  %284 = call noundef i64 @_Z3invx(i64 noundef %283)
  %285 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %279) #7
  %286 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %285, i64 noundef %280) #7
  store i64 %284, ptr %286, align 8, !tbaa !5
  br label %.loopexit199

287:                                              ; preds = %233
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %289 = load i64, ptr %288, align 8, !tbaa !5
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %291 = load i64, ptr %290, align 8, !tbaa !5
  %.not166.1250 = icmp sge i64 %291, %289
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %293 = load i64, ptr %292, align 8, !tbaa !5
  %.not166.1.1 = icmp sge i64 %293, %289
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %295 = load i64, ptr %294, align 8, !tbaa !5
  %.not166.2.1 = icmp sge i64 %295, %289
  %.not270 = select i1 %.not166.2.1, i1 true, i1 %.not166.1.1
  %narrow269.not = select i1 %.not270, i1 true, i1 %.not166.1250
  br i1 %narrow269.not, label %296, label %254

296:                                              ; preds = %287
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %298 = load i64, ptr %297, align 8, !tbaa !5
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %300 = load i64, ptr %299, align 8, !tbaa !5
  %.not166.2252 = icmp sge i64 %300, %298
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %302 = load i64, ptr %301, align 8, !tbaa !5
  %.not166.1.2 = icmp sge i64 %302, %298
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %304 = load i64, ptr %303, align 8, !tbaa !5
  %.not166.2.2 = icmp sge i64 %304, %298
  %.not272 = select i1 %.not166.2.2, i1 true, i1 %.not166.1.2
  %narrow271.not = select i1 %.not272, i1 true, i1 %.not166.2252
  br i1 %narrow271.not, label %305, label %.preheader198.thread.thread315

305:                                              ; preds = %296
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %307 = load i64, ptr %306, align 8, !tbaa !5
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %309 = load i64, ptr %308, align 8, !tbaa !5
  %.not166.3 = icmp sge i64 %309, %307
  %310 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %311 = load i64, ptr %310, align 8, !tbaa !5
  %.not166.1.3 = icmp sge i64 %311, %307
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %313 = load i64, ptr %312, align 8, !tbaa !5
  %.not166.2.3 = icmp sge i64 %313, %307
  %.not274 = select i1 %.not166.2.3, i1 true, i1 %.not166.1.3
  %narrow273.not = select i1 %.not274, i1 true, i1 %.not166.3
  br i1 %narrow273.not, label %314, label %254

314:                                              ; preds = %305
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %316 = load i64, ptr %315, align 8, !tbaa !5
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %318 = load i64, ptr %317, align 8, !tbaa !5
  %.not166.4 = icmp sge i64 %318, %316
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %320 = load i64, ptr %319, align 8, !tbaa !5
  %.not166.1.4 = icmp sge i64 %320, %316
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %322 = load i64, ptr %321, align 8, !tbaa !5
  %.not166.2.4 = icmp sge i64 %322, %316
  %.not276 = select i1 %.not166.2.4, i1 true, i1 %.not166.1.4
  %narrow275.not = select i1 %.not276, i1 true, i1 %.not166.4
  br i1 %narrow275.not, label %323, label %.preheader198.thread.thread

323:                                              ; preds = %314
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %325 = load i64, ptr %324, align 8, !tbaa !5
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %327 = load i64, ptr %326, align 8, !tbaa !5
  %.not166.5 = icmp sge i64 %327, %325
  %328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %329 = load i64, ptr %328, align 8, !tbaa !5
  %.not166.1.5 = icmp sge i64 %329, %325
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %331 = load i64, ptr %330, align 8, !tbaa !5
  %.not166.2.5 = icmp sge i64 %331, %325
  %.not278 = select i1 %.not166.2.5, i1 true, i1 %.not166.1.5
  %narrow277.not = select i1 %.not278, i1 true, i1 %.not166.5
  br i1 %narrow277.not, label %332, label %254

332:                                              ; preds = %323
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %334 = load i64, ptr %333, align 8, !tbaa !5
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %336 = load i64, ptr %335, align 8, !tbaa !5
  %.not166.6 = icmp sge i64 %336, %334
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %338 = load i64, ptr %337, align 8, !tbaa !5
  %.not166.1.6 = icmp sge i64 %338, %334
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %340 = load i64, ptr %339, align 8, !tbaa !5
  %.not166.2.6 = icmp sge i64 %340, %334
  %.not280 = select i1 %.not166.2.6, i1 true, i1 %.not166.1.6
  %narrow279.not = select i1 %.not280, i1 true, i1 %.not166.6
  br i1 %narrow279.not, label %341, label %.preheader198.thread.thread315

341:                                              ; preds = %332
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %343 = load i64, ptr %342, align 8, !tbaa !5
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %345 = load i64, ptr %344, align 8, !tbaa !5
  %.not166.7 = icmp sge i64 %345, %343
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %347 = load i64, ptr %346, align 8, !tbaa !5
  %.not166.1.7 = icmp sge i64 %347, %343
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %349 = load i64, ptr %348, align 8, !tbaa !5
  %.not166.2.7 = icmp sge i64 %349, %343
  %.not282 = select i1 %.not166.2.7, i1 true, i1 %.not166.1.7
  %narrow281.not = select i1 %.not282, i1 true, i1 %.not166.7
  br i1 %narrow281.not, label %.loopexit199, label %254

.loopexit199:                                     ; preds = %233, %267, %341, %276, %278
  %350 = add nuw nsw i64 %.0134220, 1
  %351 = load i64, ptr %1, align 8, !tbaa !5
  %352 = icmp slt i64 %350, %351
  br i1 %352, label %.lr.ph, label %.preheader195, !llvm.loop !12

.preheader191:                                    ; preds = %.loopexit193
  %353 = icmp sgt i64 %609, 2
  br i1 %353, label %.preheader190, label %._crit_edge231

.lr.ph227:                                        ; preds = %.preheader195, %.loopexit193
  %.1135226 = phi i64 [ %608, %.loopexit193 ], [ 2, %.preheader195 ]
  %354 = add nsw i64 %.1135226, -1
  %355 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %354) #7
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %355, i64 noundef 1) #7
  %357 = load i64, ptr %356, align 8, !tbaa !5
  %.not159 = icmp eq i64 %357, 1
  br i1 %.not159, label %364, label %358

358:                                              ; preds = %.lr.ph227
  %359 = trunc i64 %354 to i32
  %360 = invoke noundef i32 @_Z3askii(i32 noundef %359, i32 noundef 1)
          to label %361 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

361:                                              ; preds = %358
  %362 = sext i32 %360 to i64
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  store i64 %362, ptr %363, align 8, !tbaa !5
  br label %364

364:                                              ; preds = %361, %.lr.ph227
  %365 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %354) #7
  %366 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %365, i64 noundef 0) #7
  store i64 0, ptr %366, align 8, !tbaa !5
  %367 = load i64, ptr @xxx, align 8, !tbaa !5
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  store i64 %367, ptr %368, align 8, !tbaa !5
  %369 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %370 = load i64, ptr %369, align 8, !tbaa !5
  %371 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 0) #7
  %372 = load i64, ptr %371, align 8, !tbaa !5
  %373 = xor i64 %372, %370
  %374 = call noundef i64 @_Z4logcxx(i64 noundef %373, i64 noundef 1)
  %375 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %374, i64 noundef %.1135226)
          to label %376 unwind label %510

376:                                              ; preds = %364
  %377 = extractvalue { i64, i64 } %375, 0
  %378 = extractvalue { i64, i64 } %375, 1
  %379 = trunc i64 %377 to i32
  %380 = trunc i64 %378 to i32
  %381 = invoke noundef i32 @_Z3askii(i32 noundef %379, i32 noundef %380)
          to label %382 unwind label %510

382:                                              ; preds = %376
  %383 = sext i32 %381 to i64
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %385 = load i64, ptr %384, align 8, !tbaa !5
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %385) #7
  store i64 %383, ptr %386, align 8, !tbaa !5
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %388 = load i64, ptr %387, align 8, !tbaa !5
  %389 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 1) #7
  %390 = load i64, ptr %389, align 8, !tbaa !5
  %391 = xor i64 %390, %388
  %392 = call noundef i64 @_Z4logcxx(i64 noundef %391, i64 noundef 1)
  %393 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %392, i64 noundef %.1135226)
          to label %394 unwind label %510

394:                                              ; preds = %382
  %395 = extractvalue { i64, i64 } %393, 0
  %396 = extractvalue { i64, i64 } %393, 1
  %397 = trunc i64 %395 to i32
  %398 = trunc i64 %396 to i32
  %399 = invoke noundef i32 @_Z3askii(i32 noundef %397, i32 noundef %398)
          to label %400 unwind label %510

400:                                              ; preds = %394
  %401 = sext i32 %399 to i64
  %402 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %403 = load i64, ptr %402, align 8, !tbaa !5
  %404 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %403) #7
  store i64 %401, ptr %404, align 8, !tbaa !5
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %406 = load i64, ptr %405, align 8, !tbaa !5
  %407 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 2) #7
  %408 = load i64, ptr %407, align 8, !tbaa !5
  %409 = xor i64 %408, %406
  %410 = call noundef i64 @_Z4logcxx(i64 noundef %409, i64 noundef 1)
  %411 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %410, i64 noundef %.1135226)
          to label %412 unwind label %510

412:                                              ; preds = %400
  %413 = extractvalue { i64, i64 } %411, 0
  %414 = extractvalue { i64, i64 } %411, 1
  %415 = trunc i64 %413 to i32
  %416 = trunc i64 %414 to i32
  %417 = invoke noundef i32 @_Z3askii(i32 noundef %415, i32 noundef %416)
          to label %418 unwind label %510

418:                                              ; preds = %412
  %419 = sext i32 %417 to i64
  %420 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %421 = load i64, ptr %420, align 8, !tbaa !5
  %422 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %421) #7
  store i64 %419, ptr %422, align 8, !tbaa !5
  %423 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %424 = load i64, ptr %423, align 8, !tbaa !5
  %425 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 3) #7
  %426 = load i64, ptr %425, align 8, !tbaa !5
  %427 = xor i64 %426, %424
  %428 = call noundef i64 @_Z4logcxx(i64 noundef %427, i64 noundef 1)
  %429 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %428, i64 noundef %.1135226)
          to label %430 unwind label %510

430:                                              ; preds = %418
  %431 = extractvalue { i64, i64 } %429, 0
  %432 = extractvalue { i64, i64 } %429, 1
  %433 = trunc i64 %431 to i32
  %434 = trunc i64 %432 to i32
  %435 = invoke noundef i32 @_Z3askii(i32 noundef %433, i32 noundef %434)
          to label %436 unwind label %510

436:                                              ; preds = %430
  %437 = sext i32 %435 to i64
  %438 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %439 = load i64, ptr %438, align 8, !tbaa !5
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %439) #7
  store i64 %437, ptr %440, align 8, !tbaa !5
  %441 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %442 = load i64, ptr %441, align 8, !tbaa !5
  %443 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 4) #7
  %444 = load i64, ptr %443, align 8, !tbaa !5
  %445 = xor i64 %444, %442
  %446 = call noundef i64 @_Z4logcxx(i64 noundef %445, i64 noundef 1)
  %447 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %446, i64 noundef %.1135226)
          to label %448 unwind label %510

448:                                              ; preds = %436
  %449 = extractvalue { i64, i64 } %447, 0
  %450 = extractvalue { i64, i64 } %447, 1
  %451 = trunc i64 %449 to i32
  %452 = trunc i64 %450 to i32
  %453 = invoke noundef i32 @_Z3askii(i32 noundef %451, i32 noundef %452)
          to label %454 unwind label %510

454:                                              ; preds = %448
  %455 = sext i32 %453 to i64
  %456 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %457 = load i64, ptr %456, align 8, !tbaa !5
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %457) #7
  store i64 %455, ptr %458, align 8, !tbaa !5
  %459 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %460 = load i64, ptr %459, align 8, !tbaa !5
  %461 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 5) #7
  %462 = load i64, ptr %461, align 8, !tbaa !5
  %463 = xor i64 %462, %460
  %464 = call noundef i64 @_Z4logcxx(i64 noundef %463, i64 noundef 1)
  %465 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %464, i64 noundef %.1135226)
          to label %466 unwind label %510

466:                                              ; preds = %454
  %467 = extractvalue { i64, i64 } %465, 0
  %468 = extractvalue { i64, i64 } %465, 1
  %469 = trunc i64 %467 to i32
  %470 = trunc i64 %468 to i32
  %471 = invoke noundef i32 @_Z3askii(i32 noundef %469, i32 noundef %470)
          to label %472 unwind label %510

472:                                              ; preds = %466
  %473 = sext i32 %471 to i64
  %474 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %475 = load i64, ptr %474, align 8, !tbaa !5
  %476 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %475) #7
  store i64 %473, ptr %476, align 8, !tbaa !5
  %477 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 7) #7
  %478 = load i64, ptr %477, align 8, !tbaa !5
  %479 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 6) #7
  %480 = load i64, ptr %479, align 8, !tbaa !5
  %481 = xor i64 %480, %478
  %482 = call noundef i64 @_Z4logcxx(i64 noundef %481, i64 noundef 1)
  %483 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef %482, i64 noundef %.1135226)
          to label %484 unwind label %510

484:                                              ; preds = %472
  %485 = extractvalue { i64, i64 } %483, 0
  %486 = extractvalue { i64, i64 } %483, 1
  %487 = trunc i64 %485 to i32
  %488 = trunc i64 %486 to i32
  %489 = invoke noundef i32 @_Z3askii(i32 noundef %487, i32 noundef %488)
          to label %490 unwind label %510

490:                                              ; preds = %484
  %491 = sext i32 %489 to i64
  %492 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @gray, i64 noundef 7) #7
  %493 = load i64, ptr %492, align 8, !tbaa !5
  %494 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %493) #7
  store i64 %491, ptr %494, align 8, !tbaa !5
  %495 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %.1135226) #7
  %496 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %495, i64 noundef 0) #7
  %497 = load i64, ptr %496, align 8, !tbaa !5
  %498 = add nsw i64 %497, 1
  %499 = srem i64 %498, 2
  %500 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %.1135226) #7
  %501 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %500, i64 noundef 0) #7
  store i64 %499, ptr %501, align 8, !tbaa !5
  %502 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %503 = load i64, ptr %502, align 8, !tbaa !5
  %504 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %505 = load i64, ptr %504, align 8, !tbaa !5
  %.not162 = icmp sge i64 %505, %503
  %506 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %507 = load i64, ptr %506, align 8, !tbaa !5
  %.not162.1 = icmp sge i64 %507, %503
  %508 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %509 = load i64, ptr %508, align 8, !tbaa !5
  %.not162.2 = icmp sge i64 %509, %503
  %.not284 = select i1 %.not162.2, i1 true, i1 %.not162.1
  %narrow283.not = select i1 %.not284, i1 true, i1 %.not162
  br i1 %narrow283.not, label %545, label %.loopexit193

510:                                              ; preds = %484, %472, %466, %454, %448, %436, %430, %418, %412, %400, %394, %382, %376, %364
  %511 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

512:                                              ; preds = %545, %563, %581, %599
  %.not161.2 = phi i1 [ true, %545 ], [ true, %563 ], [ false, %581 ], [ false, %599 ]
  %.not161.1 = phi i1 [ true, %545 ], [ false, %563 ], [ true, %581 ], [ false, %599 ]
  %513 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef 0, i64 noundef %.1135226)
          to label %.preheader192.thread unwind label %514

514:                                              ; preds = %.preheader192.thread.thread, %.preheader192.thread.thread326, %512
  %515 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.preheader192.thread:                             ; preds = %512
  %516 = extractvalue { i64, i64 } %513, 0
  %517 = extractvalue { i64, i64 } %513, 1
  %518 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %516) #7
  %519 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %518, i64 noundef %517) #7
  %520 = load i64, ptr %519, align 8, !tbaa !5
  %521 = call noundef i64 @_Z3invx(i64 noundef %520)
  %522 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %516) #7
  %523 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %522, i64 noundef %517) #7
  store i64 %521, ptr %523, align 8, !tbaa !5
  br i1 %.not161.1, label %534, label %.preheader192.thread.thread326

.preheader192.thread.thread326:                   ; preds = %554, %590, %.preheader192.thread
  %.not161.2307330 = phi i1 [ %.not161.2, %.preheader192.thread ], [ true, %554 ], [ false, %590 ]
  %524 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef 1, i64 noundef %.1135226)
          to label %525 unwind label %514

525:                                              ; preds = %.preheader192.thread.thread326
  %526 = extractvalue { i64, i64 } %524, 0
  %527 = extractvalue { i64, i64 } %524, 1
  %528 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %526) #7
  %529 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %528, i64 noundef %527) #7
  %530 = load i64, ptr %529, align 8, !tbaa !5
  %531 = call noundef i64 @_Z3invx(i64 noundef %530)
  %532 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %526) #7
  %533 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %532, i64 noundef %527) #7
  store i64 %531, ptr %533, align 8, !tbaa !5
  br i1 %.not161.2307330, label %.loopexit193, label %.preheader192.thread.thread

534:                                              ; preds = %.preheader192.thread
  br i1 %.not161.2, label %.loopexit193, label %.preheader192.thread.thread

.preheader192.thread.thread:                      ; preds = %572, %525, %534
  %535 = invoke { i64, i64 } @_Z7decode2xx(i64 noundef 2, i64 noundef %.1135226)
          to label %536 unwind label %514

536:                                              ; preds = %.preheader192.thread.thread
  %537 = extractvalue { i64, i64 } %535, 0
  %538 = extractvalue { i64, i64 } %535, 1
  %539 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %537) #7
  %540 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %539, i64 noundef %538) #7
  %541 = load i64, ptr %540, align 8, !tbaa !5
  %542 = call noundef i64 @_Z3invx(i64 noundef %541)
  %543 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %537) #7
  %544 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %543, i64 noundef %538) #7
  store i64 %542, ptr %544, align 8, !tbaa !5
  br label %.loopexit193

545:                                              ; preds = %490
  %546 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %547 = load i64, ptr %546, align 8, !tbaa !5
  %548 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %549 = load i64, ptr %548, align 8, !tbaa !5
  %.not162.1258 = icmp sge i64 %549, %547
  %550 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %551 = load i64, ptr %550, align 8, !tbaa !5
  %.not162.1.1 = icmp sge i64 %551, %547
  %552 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %553 = load i64, ptr %552, align 8, !tbaa !5
  %.not162.2.1 = icmp sge i64 %553, %547
  %.not286 = select i1 %.not162.2.1, i1 true, i1 %.not162.1.1
  %narrow285.not = select i1 %.not286, i1 true, i1 %.not162.1258
  br i1 %narrow285.not, label %554, label %512

554:                                              ; preds = %545
  %555 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %556 = load i64, ptr %555, align 8, !tbaa !5
  %557 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %558 = load i64, ptr %557, align 8, !tbaa !5
  %.not162.2260 = icmp sge i64 %558, %556
  %559 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %560 = load i64, ptr %559, align 8, !tbaa !5
  %.not162.1.2 = icmp sge i64 %560, %556
  %561 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %562 = load i64, ptr %561, align 8, !tbaa !5
  %.not162.2.2 = icmp sge i64 %562, %556
  %.not288 = select i1 %.not162.2.2, i1 true, i1 %.not162.1.2
  %narrow287.not = select i1 %.not288, i1 true, i1 %.not162.2260
  br i1 %narrow287.not, label %563, label %.preheader192.thread.thread326

563:                                              ; preds = %554
  %564 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %565 = load i64, ptr %564, align 8, !tbaa !5
  %566 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %567 = load i64, ptr %566, align 8, !tbaa !5
  %.not162.3 = icmp sge i64 %567, %565
  %568 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %569 = load i64, ptr %568, align 8, !tbaa !5
  %.not162.1.3 = icmp sge i64 %569, %565
  %570 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %571 = load i64, ptr %570, align 8, !tbaa !5
  %.not162.2.3 = icmp sge i64 %571, %565
  %.not290 = select i1 %.not162.2.3, i1 true, i1 %.not162.1.3
  %narrow289.not = select i1 %.not290, i1 true, i1 %.not162.3
  br i1 %narrow289.not, label %572, label %512

572:                                              ; preds = %563
  %573 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %574 = load i64, ptr %573, align 8, !tbaa !5
  %575 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %576 = load i64, ptr %575, align 8, !tbaa !5
  %.not162.4 = icmp sge i64 %576, %574
  %577 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %578 = load i64, ptr %577, align 8, !tbaa !5
  %.not162.1.4 = icmp sge i64 %578, %574
  %579 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %580 = load i64, ptr %579, align 8, !tbaa !5
  %.not162.2.4 = icmp sge i64 %580, %574
  %.not292 = select i1 %.not162.2.4, i1 true, i1 %.not162.1.4
  %narrow291.not = select i1 %.not292, i1 true, i1 %.not162.4
  br i1 %narrow291.not, label %581, label %.preheader192.thread.thread

581:                                              ; preds = %572
  %582 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %583 = load i64, ptr %582, align 8, !tbaa !5
  %584 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %585 = load i64, ptr %584, align 8, !tbaa !5
  %.not162.5 = icmp sge i64 %585, %583
  %586 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %587 = load i64, ptr %586, align 8, !tbaa !5
  %.not162.1.5 = icmp sge i64 %587, %583
  %588 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #7
  %589 = load i64, ptr %588, align 8, !tbaa !5
  %.not162.2.5 = icmp sge i64 %589, %583
  %.not294 = select i1 %.not162.2.5, i1 true, i1 %.not162.1.5
  %narrow293.not = select i1 %.not294, i1 true, i1 %.not162.5
  br i1 %narrow293.not, label %590, label %512

590:                                              ; preds = %581
  %591 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %592 = load i64, ptr %591, align 8, !tbaa !5
  %593 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %594 = load i64, ptr %593, align 8, !tbaa !5
  %.not162.6 = icmp sge i64 %594, %592
  %595 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #7
  %596 = load i64, ptr %595, align 8, !tbaa !5
  %.not162.1.6 = icmp sge i64 %596, %592
  %597 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #7
  %598 = load i64, ptr %597, align 8, !tbaa !5
  %.not162.2.6 = icmp sge i64 %598, %592
  %.not296 = select i1 %.not162.2.6, i1 true, i1 %.not162.1.6
  %narrow295.not = select i1 %.not296, i1 true, i1 %.not162.6
  br i1 %narrow295.not, label %599, label %.preheader192.thread.thread326

599:                                              ; preds = %590
  %600 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #7
  %601 = load i64, ptr %600, align 8, !tbaa !5
  %602 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #7
  %603 = load i64, ptr %602, align 8, !tbaa !5
  %.not162.7 = icmp sge i64 %603, %601
  %604 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #7
  %605 = load i64, ptr %604, align 8, !tbaa !5
  %.not162.1.7 = icmp sge i64 %605, %601
  %606 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #7
  %607 = load i64, ptr %606, align 8, !tbaa !5
  %.not162.2.7 = icmp sge i64 %607, %601
  %.not298 = select i1 %.not162.2.7, i1 true, i1 %.not162.1.7
  %narrow297.not = select i1 %.not298, i1 true, i1 %.not162.7
  br i1 %narrow297.not, label %.loopexit193, label %512

.loopexit193:                                     ; preds = %490, %525, %599, %534, %536
  %608 = add nuw nsw i64 %.1135226, 1
  %609 = load i64, ptr %1, align 8, !tbaa !5
  %610 = icmp slt i64 %608, %609
  br i1 %610, label %.lr.ph227, label %.preheader191, !llvm.loop !13

.preheader190:                                    ; preds = %.preheader191, %._crit_edge
  %611 = phi i64 [ %663, %._crit_edge ], [ %609, %.preheader191 ]
  %.6230 = phi i64 [ %664, %._crit_edge ], [ 2, %.preheader191 ]
  %612 = icmp sgt i64 %611, 2
  br i1 %612, label %.lr.ph229, label %._crit_edge

.lr.ph229:                                        ; preds = %.preheader190
  %613 = add nsw i64 %.6230, -1
  %614 = trunc i64 %613 to i32
  %615 = trunc i64 %.6230 to i32
  br label %616

616:                                              ; preds = %.lr.ph229, %652
  %.6132228 = phi i64 [ 2, %.lr.ph229 ], [ %658, %652 ]
  %617 = load i64, ptr @xxx, align 8, !tbaa !5
  %618 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %613) #7
  %619 = add nsw i64 %.6132228, -1
  %620 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %618, i64 noundef %619) #7
  %621 = load i64, ptr %620, align 8, !tbaa !5
  %.not154 = icmp eq i64 %621, 0
  br i1 %.not154, label %629, label %622

622:                                              ; preds = %616
  %623 = trunc i64 %619 to i32
  %624 = invoke noundef i32 @_Z3askii(i32 noundef %614, i32 noundef %623)
          to label %625 unwind label %627

625:                                              ; preds = %622
  %626 = sext i32 %624 to i64
  br label %629

627:                                              ; preds = %644, %634, %622
  %628 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

629:                                              ; preds = %625, %616
  %.0123 = phi i64 [ %626, %625 ], [ %617, %616 ]
  %630 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %613) #7
  %631 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %630, i64 noundef %.6132228) #7
  %632 = load i64, ptr %631, align 8, !tbaa !5
  %633 = and i64 %632, -9223372036854775807
  %.not155 = icmp eq i64 %633, 1
  br i1 %.not155, label %639, label %634

634:                                              ; preds = %629
  %635 = trunc i64 %.6132228 to i32
  %636 = invoke noundef i32 @_Z3askii(i32 noundef %614, i32 noundef %635)
          to label %637 unwind label %627

637:                                              ; preds = %634
  %638 = sext i32 %636 to i64
  br label %639

639:                                              ; preds = %637, %629
  %.1124 = phi i64 [ %638, %637 ], [ %.0123, %629 ]
  %640 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %.6230) #7
  %641 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %640, i64 noundef %619) #7
  %642 = load i64, ptr %641, align 8, !tbaa !5
  %643 = and i64 %642, -9223372036854775807
  %.not156 = icmp eq i64 %643, 1
  br i1 %.not156, label %649, label %644

644:                                              ; preds = %639
  %645 = trunc i64 %619 to i32
  %646 = invoke noundef i32 @_Z3askii(i32 noundef %615, i32 noundef %645)
          to label %647 unwind label %627

647:                                              ; preds = %644
  %648 = sext i32 %646 to i64
  br label %649

649:                                              ; preds = %647, %639
  %.2125 = phi i64 [ %648, %647 ], [ %.1124, %639 ]
  %650 = trunc i64 %.6132228 to i32
  %651 = invoke noundef i32 @_Z3askii(i32 noundef %615, i32 noundef %650)
          to label %652 unwind label %661

652:                                              ; preds = %649
  %653 = sext i32 %651 to i64
  %654 = icmp sgt i64 %.2125, %653
  %655 = zext i1 %654 to i64
  %656 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %.6230) #7
  %657 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %656, i64 noundef %.6132228) #7
  store i64 %655, ptr %657, align 8, !tbaa !5
  %658 = add nuw nsw i64 %.6132228, 1
  %659 = load i64, ptr %1, align 8, !tbaa !5
  %660 = icmp slt i64 %658, %659
  br i1 %660, label %616, label %._crit_edge, !llvm.loop !14

661:                                              ; preds = %649
  %662 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge:                                      ; preds = %652, %.preheader190
  %663 = phi i64 [ %611, %.preheader190 ], [ %659, %652 ]
  %664 = add nuw nsw i64 %.6230, 1
  %665 = icmp slt i64 %664, %663
  br i1 %665, label %.preheader190, label %._crit_edge231, !llvm.loop !15

._crit_edge231:                                   ; preds = %._crit_edge, %.loopexit205, %.preheader195, %.preheader191
  %666 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %667 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

667:                                              ; preds = %._crit_edge231
  %668 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %666, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader186 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

.preheader186:                                    ; preds = %667
  %669 = load i64, ptr %1, align 8, !tbaa !5
  %670 = icmp sgt i64 %669, 0
  br i1 %670, label %.preheader, label %._crit_edge236

.preheader:                                       ; preds = %.preheader186, %684
  %671 = phi i64 [ %686, %684 ], [ %669, %.preheader186 ]
  %.7235 = phi i64 [ %685, %684 ], [ 0, %.preheader186 ]
  %672 = icmp sgt i64 %671, 0
  br i1 %672, label %.lr.ph233, label %._crit_edge234

.lr.ph233:                                        ; preds = %.preheader, %679
  %.7133232 = phi i64 [ %680, %679 ], [ 0, %.preheader ]
  %673 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IxSaIxEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @mat, i64 noundef %.7235) #7
  %674 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %673, i64 noundef %.7133232) #7
  %675 = load i64, ptr %674, align 8, !tbaa !5
  %676 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %675)
          to label %677 unwind label %.loopexit

677:                                              ; preds = %.lr.ph233
  %678 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %676, ptr noundef nonnull @.str.18)
          to label %679 unwind label %.loopexit

679:                                              ; preds = %677
  %680 = add nuw nsw i64 %.7133232, 1
  %681 = load i64, ptr %1, align 8, !tbaa !5
  %682 = icmp slt i64 %680, %681
  br i1 %682, label %.lr.ph233, label %._crit_edge234, !llvm.loop !17

._crit_edge234:                                   ; preds = %679, %.preheader
  %683 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %684 unwind label %.loopexit.split-lp.loopexit

684:                                              ; preds = %._crit_edge234
  %685 = add nuw nsw i64 %.7235, 1
  %686 = load i64, ptr %1, align 8, !tbaa !5
  %687 = icmp slt i64 %685, %686
  br i1 %687, label %.preheader, label %._crit_edge236, !llvm.loop !18

._crit_edge236:                                   ; preds = %684, %.preheader186
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %688 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.19, ptr noundef nonnull %12)
  %689 = load i64, ptr %12, align 8, !tbaa !5
  %690 = icmp eq i64 %689, -1
  br i1 %690, label %691, label %692

691:                                              ; preds = %._crit_edge236
  call void @exit(i32 noundef 0) #8
  unreachable

692:                                              ; preds = %._crit_edge236
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %627, %661, %514, %510, %256, %252, %47, %46
  %.pn169 = phi { ptr, i32 } [ %48, %47 ], [ %253, %252 ], [ %257, %256 ], [ %511, %510 ], [ %515, %514 ], [ %.pn, %46 ], [ %662, %661 ], [ %628, %627 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit187, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit196, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit201, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp202, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %693

693:                                              ; preds = %.loopexit.split-lp, %40
  %.pn169.pn = phi { ptr, i32 } [ %.pn169, %.loopexit.split-lp ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn169.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIxSaIxEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IxSaIxEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIxSaIxEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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