; LLVM IR from upupming/algorithm :: acwing/寒假每日一题（提高组）/week2/1613. 数独简单版 (main)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@row = external dso_local global [9 x i32], align 16
@col = external dso_local global [9 x i32], align 16
@cell = external dso_local global [9 x i32], align 16
@h = external dso_local global [512 x i32], align 16
@cnt = external dso_local global [512 x i32], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsi(i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z4flipiii(i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %24, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 9
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %14
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = shl i32 1, %20
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [512 x i32], ptr @h, i64 0, i64 %22
  store i32 %19, ptr %23, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %18
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !9

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

28:                                               ; preds = %52, %27
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 512
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %55

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %33 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %33, ptr %5, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %44, %32
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %34
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [512 x i32], ptr @cnt, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %38
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sub nsw i32 0, %46
  %48 = and i32 %45, %47
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = sub nsw i32 %49, %48
  store i32 %50, ptr %5, align 4, !tbaa !5
  br label %34, !llvm.loop !11

51:                                               ; preds = %37
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %3, align 4, !tbaa !5
  br label %28, !llvm.loop !12

55:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %65, %55
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = icmp slt i32 %57, 9
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %72

60:                                               ; preds = %56
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %62 unwind label %68

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %64 unwind label %68

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %7, align 4, !tbaa !5
  br label %56, !llvm.loop !13

68:                                               ; preds = %62, %60
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %149

72:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %87, %72
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 9
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %90

77:                                               ; preds = %73
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [9 x i32], ptr @cell, i64 0, i64 %79
  store i32 511, ptr %80, align 4, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [9 x i32], ptr @col, i64 0, i64 %82
  store i32 511, ptr %83, align 4, !tbaa !5
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [9 x i32], ptr @row, i64 0, i64 %85
  store i32 511, ptr %86, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %77
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !5
  br label %73, !llvm.loop !14

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

91:                                               ; preds = %136, %90
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = icmp slt i32 %92, 9
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %139

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

96:                                               ; preds = %132, %95
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = icmp slt i32 %97, 9
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %135

100:                                              ; preds = %96
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = mul nsw i32 %101, 9
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = add nsw i32 %102, %103
  %105 = sext i32 %104 to i64
  %106 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %105)
          to label %107 unwind label %114

107:                                              ; preds = %100
  %108 = load i8, ptr %106, align 1, !tbaa !15
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 46
  br i1 %110, label %111, label %118

111:                                              ; preds = %107
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %10, align 4, !tbaa !5
  br label %132

114:                                              ; preds = %127, %118, %100
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %148

118:                                              ; preds = %107
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = mul nsw i32 %121, 9
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = add nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %125)
          to label %127 unwind label %114

127:                                              ; preds = %118
  %128 = load i8, ptr %126, align 1, !tbaa !15
  %129 = sext i8 %128 to i32
  %130 = sub nsw i32 %129, 49
  invoke void @_Z4flipiii(i32 noundef %119, i32 noundef %120, i32 noundef %130)
          to label %131 unwind label %114

131:                                              ; preds = %127
  br label %132

132:                                              ; preds = %131, %111
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %13, align 4, !tbaa !5
  br label %96, !llvm.loop !16

135:                                              ; preds = %99
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %12, align 4, !tbaa !5
  br label %91, !llvm.loop !17

139:                                              ; preds = %94
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = invoke noundef zeroext i1 @_Z3dfsi(i32 noundef %140)
          to label %142 unwind label %144

142:                                              ; preds = %139
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  %143 = load i32, ptr %1, align 4
  ret i32 %143

144:                                              ; preds = %139
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %8, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %9, align 4
  br label %148

148:                                              ; preds = %144, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %149

149:                                              ; preds = %148, %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %8, align 8
  %152 = load i32, ptr %9, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

declare i32 @__gxx_personality_v0(...)

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@row = external dso_local local_unnamed_addr global [9 x i32], align 16
@col = external dso_local local_unnamed_addr global [9 x i32], align 16
@cell = external dso_local local_unnamed_addr global [9 x i32], align 16
@h = external dso_local local_unnamed_addr global [512 x i32], align 16
@cnt = external dso_local local_unnamed_addr global [512 x i32], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsi(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z4flipiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
.preheader46.preheader:
  %0 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr getelementptr inbounds (i8, ptr @h, i64 4), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @h, i64 8), align 8, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @h, i64 16), align 16, !tbaa !5
  store i32 3, ptr getelementptr inbounds (i8, ptr @h, i64 32), align 16, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @h, i64 64), align 16, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @h, i64 128), align 16, !tbaa !5
  store i32 6, ptr getelementptr inbounds (i8, ptr @h, i64 256), align 16, !tbaa !5
  store i32 7, ptr getelementptr inbounds (i8, ptr @h, i64 512), align 16, !tbaa !5
  store i32 8, ptr getelementptr inbounds (i8, ptr @h, i64 1024), align 16, !tbaa !5
  br label %.preheader46

.preheader46:                                     ; preds = %._crit_edge.1, %.preheader46.preheader
  %indvars.iv = phi i64 [ 0, %.preheader46.preheader ], [ %indvars.iv.next.1, %._crit_edge.1 ]
  %.not49 = icmp eq i64 %indvars.iv, 0
  br i1 %.not49, label %.lr.ph.1, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader46
  %1 = getelementptr inbounds [512 x i32], ptr @cnt, i64 0, i64 %indvars.iv
  %.promoted = load i32, ptr %1, align 8, !tbaa !5
  %2 = trunc nuw nsw i64 %indvars.iv to i32
  br label %11

3:                                                ; preds = %._crit_edge.1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %0) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %4 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %15 unwind label %49

._crit_edge:                                      ; preds = %11
  store i32 %13, ptr %1, align 8, !tbaa !5
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.preheader46, %._crit_edge
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %5 = getelementptr inbounds [512 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next
  %.promoted.1 = load i32, ptr %5, align 4, !tbaa !5
  %6 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %7

7:                                                ; preds = %7, %.lr.ph.1
  %8 = phi i32 [ %.promoted.1, %.lr.ph.1 ], [ %9, %7 ]
  %.03950.1 = phi i32 [ %6, %.lr.ph.1 ], [ %10, %7 ]
  %9 = add nsw i32 %8, 1
  %.not43.1 = add i32 %.03950.1, -1
  %10 = and i32 %.not43.1, %.03950.1
  %.not.1 = icmp eq i32 %10, 0
  br i1 %.not.1, label %._crit_edge.1, label %7, !llvm.loop !9

._crit_edge.1:                                    ; preds = %7
  store i32 %9, ptr %5, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 512
  br i1 %exitcond.not.1, label %3, label %.preheader46, !llvm.loop !11

11:                                               ; preds = %.lr.ph, %11
  %12 = phi i32 [ %.promoted, %.lr.ph ], [ %13, %11 ]
  %.03950 = phi i32 [ %2, %.lr.ph ], [ %14, %11 ]
  %13 = add nsw i32 %12, 1
  %.not43 = add i32 %.03950, -1
  %14 = and i32 %.not43, %.03950
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %._crit_edge, label %11, !llvm.loop !9

15:                                               ; preds = %3
  %16 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %17 unwind label %49

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %19 unwind label %49

19:                                               ; preds = %17
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %21 unwind label %49

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %23 unwind label %49

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %25 unwind label %49

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %27 unwind label %49

27:                                               ; preds = %25
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %29 unwind label %49

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %31 unwind label %49

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %33 unwind label %49

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %35 unwind label %49

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %37 unwind label %49

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %39 unwind label %49

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %41 unwind label %49

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %43 unwind label %49

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %45 unwind label %49

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %47 unwind label %49

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %.preheader45.preheader unwind label %49

.preheader45.preheader:                           ; preds = %47
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr @cell, align 16, !tbaa !5
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr @col, align 16, !tbaa !5
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr @row, align 16, !tbaa !5
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr getelementptr inbounds (i8, ptr @cell, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr getelementptr inbounds (i8, ptr @col, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 511, i32 511, i32 511, i32 511>, ptr getelementptr inbounds (i8, ptr @row, i64 16), align 16, !tbaa !5
  store i32 511, ptr getelementptr inbounds (i8, ptr @cell, i64 32), align 16, !tbaa !5
  store i32 511, ptr getelementptr inbounds (i8, ptr @col, i64 32), align 16, !tbaa !5
  store i32 511, ptr getelementptr inbounds (i8, ptr @row, i64 32), align 16, !tbaa !5
  br label %.preheader

49:                                               ; preds = %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %3
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %173

.preheader:                                       ; preds = %.preheader45.preheader, %169
  %indvars.iv68 = phi i64 [ 0, %.preheader45.preheader ], [ %indvars.iv.next69, %169 ]
  %.03556 = phi i32 [ 0, %.preheader45.preheader ], [ %.2.8, %169 ]
  %51 = mul nuw nsw i64 %indvars.iv68, 9
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %51)
  %53 = load i8, ptr %52, align 1, !tbaa !12
  %54 = icmp eq i8 %53, 46
  br i1 %54, label %57, label %59

55:                                               ; preds = %169
  %56 = invoke noundef zeroext i1 @_Z3dfsi(i32 noundef %.2.8)
          to label %170 unwind label %171

57:                                               ; preds = %.preheader
  %58 = add nsw i32 %.03556, 1
  br label %65

59:                                               ; preds = %.preheader
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %51)
  %61 = load i8, ptr %60, align 1, !tbaa !12
  %62 = sext i8 %61 to i32
  %63 = add nsw i32 %62, -49
  %64 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %64, i32 noundef 0, i32 noundef %63)
  br label %65

65:                                               ; preds = %59, %57
  %.2 = phi i32 [ %58, %57 ], [ %.03556, %59 ]
  %66 = add nuw nsw i64 %51, 1
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %66)
  %68 = load i8, ptr %67, align 1, !tbaa !12
  %69 = icmp eq i8 %68, 46
  br i1 %69, label %76, label %70

70:                                               ; preds = %65
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %66)
  %72 = load i8, ptr %71, align 1, !tbaa !12
  %73 = sext i8 %72 to i32
  %74 = add nsw i32 %73, -49
  %75 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %75, i32 noundef 1, i32 noundef %74)
  br label %78

76:                                               ; preds = %65
  %77 = add nsw i32 %.2, 1
  br label %78

78:                                               ; preds = %76, %70
  %.2.1 = phi i32 [ %77, %76 ], [ %.2, %70 ]
  %79 = add nuw nsw i64 %51, 2
  %80 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %79)
  %81 = load i8, ptr %80, align 1, !tbaa !12
  %82 = icmp eq i8 %81, 46
  br i1 %82, label %89, label %83

83:                                               ; preds = %78
  %84 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %79)
  %85 = load i8, ptr %84, align 1, !tbaa !12
  %86 = sext i8 %85 to i32
  %87 = add nsw i32 %86, -49
  %88 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %88, i32 noundef 2, i32 noundef %87)
  br label %91

89:                                               ; preds = %78
  %90 = add nsw i32 %.2.1, 1
  br label %91

91:                                               ; preds = %89, %83
  %.2.2 = phi i32 [ %90, %89 ], [ %.2.1, %83 ]
  %92 = add nuw nsw i64 %51, 3
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %92)
  %94 = load i8, ptr %93, align 1, !tbaa !12
  %95 = icmp eq i8 %94, 46
  br i1 %95, label %102, label %96

96:                                               ; preds = %91
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %92)
  %98 = load i8, ptr %97, align 1, !tbaa !12
  %99 = sext i8 %98 to i32
  %100 = add nsw i32 %99, -49
  %101 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %101, i32 noundef 3, i32 noundef %100)
  br label %104

102:                                              ; preds = %91
  %103 = add nsw i32 %.2.2, 1
  br label %104

104:                                              ; preds = %102, %96
  %.2.3 = phi i32 [ %103, %102 ], [ %.2.2, %96 ]
  %105 = add nuw nsw i64 %51, 4
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %105)
  %107 = load i8, ptr %106, align 1, !tbaa !12
  %108 = icmp eq i8 %107, 46
  br i1 %108, label %115, label %109

109:                                              ; preds = %104
  %110 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %105)
  %111 = load i8, ptr %110, align 1, !tbaa !12
  %112 = sext i8 %111 to i32
  %113 = add nsw i32 %112, -49
  %114 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %114, i32 noundef 4, i32 noundef %113)
  br label %117

115:                                              ; preds = %104
  %116 = add nsw i32 %.2.3, 1
  br label %117

117:                                              ; preds = %115, %109
  %.2.4 = phi i32 [ %116, %115 ], [ %.2.3, %109 ]
  %118 = add nuw nsw i64 %51, 5
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %118)
  %120 = load i8, ptr %119, align 1, !tbaa !12
  %121 = icmp eq i8 %120, 46
  br i1 %121, label %128, label %122

122:                                              ; preds = %117
  %123 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %118)
  %124 = load i8, ptr %123, align 1, !tbaa !12
  %125 = sext i8 %124 to i32
  %126 = add nsw i32 %125, -49
  %127 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %127, i32 noundef 5, i32 noundef %126)
  br label %130

128:                                              ; preds = %117
  %129 = add nsw i32 %.2.4, 1
  br label %130

130:                                              ; preds = %128, %122
  %.2.5 = phi i32 [ %129, %128 ], [ %.2.4, %122 ]
  %131 = add nuw nsw i64 %51, 6
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %131)
  %133 = load i8, ptr %132, align 1, !tbaa !12
  %134 = icmp eq i8 %133, 46
  br i1 %134, label %141, label %135

135:                                              ; preds = %130
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %131)
  %137 = load i8, ptr %136, align 1, !tbaa !12
  %138 = sext i8 %137 to i32
  %139 = add nsw i32 %138, -49
  %140 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %140, i32 noundef 6, i32 noundef %139)
  br label %143

141:                                              ; preds = %130
  %142 = add nsw i32 %.2.5, 1
  br label %143

143:                                              ; preds = %141, %135
  %.2.6 = phi i32 [ %142, %141 ], [ %.2.5, %135 ]
  %144 = add nuw nsw i64 %51, 7
  %145 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %144)
  %146 = load i8, ptr %145, align 1, !tbaa !12
  %147 = icmp eq i8 %146, 46
  br i1 %147, label %154, label %148

148:                                              ; preds = %143
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %144)
  %150 = load i8, ptr %149, align 1, !tbaa !12
  %151 = sext i8 %150 to i32
  %152 = add nsw i32 %151, -49
  %153 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %153, i32 noundef 7, i32 noundef %152)
  br label %156

154:                                              ; preds = %143
  %155 = add nsw i32 %.2.6, 1
  br label %156

156:                                              ; preds = %154, %148
  %.2.7 = phi i32 [ %155, %154 ], [ %.2.6, %148 ]
  %157 = add nuw nsw i64 %51, 8
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %157)
  %159 = load i8, ptr %158, align 1, !tbaa !12
  %160 = icmp eq i8 %159, 46
  br i1 %160, label %167, label %161

161:                                              ; preds = %156
  %162 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %157)
  %163 = load i8, ptr %162, align 1, !tbaa !12
  %164 = sext i8 %163 to i32
  %165 = add nsw i32 %164, -49
  %166 = trunc nuw nsw i64 %indvars.iv68 to i32
  call void @_Z4flipiii(i32 noundef %166, i32 noundef 8, i32 noundef %165)
  br label %169

167:                                              ; preds = %156
  %168 = add nsw i32 %.2.7, 1
  br label %169

169:                                              ; preds = %167, %161
  %.2.8 = phi i32 [ %168, %167 ], [ %.2.7, %161 ]
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next69, 9
  br i1 %exitcond71.not, label %55, label %.preheader, !llvm.loop !13

170:                                              ; preds = %55
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %0) #6
  ret i32 0

171:                                              ; preds = %55
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %173

173:                                              ; preds = %171, %49
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %172, %171 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %0) #6
  resume { ptr, i32 } %.pn
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

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

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

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

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


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