; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x22-深度优先搜索/169. 数独2 (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::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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@ones = external dso_local global [65536 x i32], align 16
@log = external dso_local global [65536 x i32], align 16
@state = external dso_local global [16 x [16 x i32]], align 16
@str = external dso_local global [16 x [17 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

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

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

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

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %26

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

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

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

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

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

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

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

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

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

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

50:                                               ; preds = %36
  br label %51

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

54:                                               ; preds = %30
  br label %55

55:                                               ; preds = %160, %54
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef @str)
  %57 = load ptr, ptr %56, align 8, !tbaa !13
  %58 = getelementptr i8, ptr %57, i64 -24
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr %56, i64 %59
  %61 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %60)
  br i1 %61, label %62, label %162

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %73, %62
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 16
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %76

67:                                               ; preds = %63
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %69
  %71 = getelementptr inbounds [17 x i8], ptr %70, i64 0, i64 0
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %71)
  br label %73

73:                                               ; preds = %67
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %6, align 4, !tbaa !5
  br label %63, !llvm.loop !15

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

77:                                               ; preds = %97, %76
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = icmp slt i32 %78, 16
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %100

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %93, %81
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = icmp slt i32 %83, 16
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  store i32 19, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %96

86:                                               ; preds = %82
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [16 x [16 x i32]], ptr @state, i64 0, i64 %88
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [16 x i32], ptr %89, i64 0, i64 %91
  store i32 65535, ptr %92, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %86
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %8, align 4, !tbaa !5
  br label %82, !llvm.loop !16

96:                                               ; preds = %85
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %7, align 4, !tbaa !5
  br label %77, !llvm.loop !17

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

101:                                              ; preds = %140, %100
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 16
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %143

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

106:                                              ; preds = %136, %105
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 16
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 25, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %139

110:                                              ; preds = %106
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %112
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [17 x i8], ptr %113, i64 0, i64 %115
  %117 = load i8, ptr %116, align 1, !tbaa !18
  %118 = sext i8 %117 to i32
  %119 = icmp ne i32 %118, 45
  br i1 %119, label %120, label %132

120:                                              ; preds = %110
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %124
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [17 x i8], ptr %125, i64 0, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !18
  %130 = sext i8 %129 to i32
  %131 = sub nsw i32 %130, 65
  call void @_Z4drawiii(i32 noundef %121, i32 noundef %122, i32 noundef %131)
  br label %135

132:                                              ; preds = %110
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %9, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %132, %120
  br label %136

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

139:                                              ; preds = %109
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %10, align 4, !tbaa !5
  br label %101, !llvm.loop !20

143:                                              ; preds = %104
  %144 = load i32, ptr %9, align 4, !tbaa !5
  %145 = call noundef zeroext i1 @_Z3dfsi(i32 noundef %144)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %157, %143
  %147 = load i32, ptr %12, align 4, !tbaa !5
  %148 = icmp slt i32 %147, 16
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  store i32 28, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %160

150:                                              ; preds = %146
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %152
  %154 = getelementptr inbounds [17 x i8], ptr %153, i64 0, i64 0
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %154)
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %157

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

160:                                              ; preds = %149
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %55, !llvm.loop !22

162:                                              ; preds = %55
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

; 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) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #4

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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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

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

@ones = external dso_local local_unnamed_addr global [65536 x i32], align 16
@log = external dso_local local_unnamed_addr global [65536 x i32], align 16
@state = external dso_local local_unnamed_addr global [16 x [16 x i32]], align 16
@str = external dso_local global [16 x [17 x i8]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
.preheader53.preheader:
  store i32 0, ptr getelementptr inbounds (i8, ptr @log, i64 4), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @log, i64 8), align 8, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @log, i64 16), align 16, !tbaa !5
  store i32 3, ptr getelementptr inbounds (i8, ptr @log, i64 32), align 16, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @log, i64 64), align 16, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @log, i64 128), align 16, !tbaa !5
  store i32 6, ptr getelementptr inbounds (i8, ptr @log, i64 256), align 16, !tbaa !5
  store i32 7, ptr getelementptr inbounds (i8, ptr @log, i64 512), align 16, !tbaa !5
  store i32 8, ptr getelementptr inbounds (i8, ptr @log, i64 1024), align 16, !tbaa !5
  store i32 9, ptr getelementptr inbounds (i8, ptr @log, i64 2048), align 16, !tbaa !5
  store i32 10, ptr getelementptr inbounds (i8, ptr @log, i64 4096), align 16, !tbaa !5
  store i32 11, ptr getelementptr inbounds (i8, ptr @log, i64 8192), align 16, !tbaa !5
  store i32 12, ptr getelementptr inbounds (i8, ptr @log, i64 16384), align 16, !tbaa !5
  store i32 13, ptr getelementptr inbounds (i8, ptr @log, i64 32768), align 16, !tbaa !5
  store i32 14, ptr getelementptr inbounds (i8, ptr @log, i64 65536), align 16, !tbaa !5
  store i32 15, ptr getelementptr inbounds (i8, ptr @log, i64 131072), align 16, !tbaa !5
  br label %.preheader53

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

.lr.ph:                                           ; preds = %.preheader53
  %0 = getelementptr inbounds [65536 x i32], ptr @ones, i64 0, i64 %indvars.iv
  %.promoted = load i32, ptr %0, align 8, !tbaa !5
  %1 = trunc nuw nsw i64 %indvars.iv to i32
  br label %14

.preheader52:                                     ; preds = %._crit_edge.1
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef @str)
  %3 = load ptr, ptr %2, align 8, !tbaa !9
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr %2, i64 %5
  %7 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %6)
  br i1 %7, label %.preheader51, label %._crit_edge67

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

.lr.ph.1:                                         ; preds = %.preheader53, %._crit_edge
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %8 = getelementptr inbounds [65536 x i32], ptr @ones, i64 0, i64 %indvars.iv.next
  %.promoted.1 = load i32, ptr %8, align 4, !tbaa !5
  %9 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %10

10:                                               ; preds = %10, %.lr.ph.1
  %11 = phi i32 [ %.promoted.1, %.lr.ph.1 ], [ %12, %10 ]
  %.04257.1 = phi i32 [ %9, %.lr.ph.1 ], [ %13, %10 ]
  %12 = add nsw i32 %11, 1
  %.not47.1 = add i32 %.04257.1, -1
  %13 = and i32 %.not47.1, %.04257.1
  %.not46.1 = icmp eq i32 %13, 0
  br i1 %.not46.1, label %._crit_edge.1, label %10, !llvm.loop !11

._crit_edge.1:                                    ; preds = %10
  store i32 %12, ptr %8, 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, 65536
  br i1 %exitcond.not.1, label %.preheader52, label %.preheader53, !llvm.loop !13

14:                                               ; preds = %.lr.ph, %14
  %15 = phi i32 [ %.promoted, %.lr.ph ], [ %16, %14 ]
  %.04257 = phi i32 [ %1, %.lr.ph ], [ %17, %14 ]
  %16 = add nsw i32 %15, 1
  %.not47 = add i32 %.04257, -1
  %17 = and i32 %.not47, %.04257
  %.not46 = icmp eq i32 %17, 0
  br i1 %.not46, label %._crit_edge, label %14, !llvm.loop !11

.preheader51:                                     ; preds = %.preheader52, %35
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 17))
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 34))
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 51))
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 68))
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 85))
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 102))
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 119))
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 136))
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 153))
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 170))
  %28 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 187))
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 204))
  %30 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 221))
  %31 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 238))
  %32 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef getelementptr inbounds (i8, ptr @str, i64 255))
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr @state, align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 80), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 96), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 112), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 128), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 144), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 160), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 176), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 192), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 208), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 224), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 240), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 256), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 272), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 288), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 304), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 320), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 336), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 352), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 368), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 384), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 400), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 416), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 432), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 448), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 464), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 480), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 496), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 512), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 528), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 544), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 560), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 576), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 592), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 608), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 624), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 640), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 656), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 672), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 688), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 704), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 720), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 736), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 752), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 768), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 784), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 800), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 816), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 832), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 848), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 864), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 880), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 896), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 912), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 928), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 944), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 960), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 976), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 992), align 16, !tbaa !5
  store <4 x i32> <i32 65535, i32 65535, i32 65535, i32 65535>, ptr getelementptr inbounds (i8, ptr @state, i64 1008), align 16, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader51, %217
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %217 ], [ 0, %.preheader51 ]
  %.03864 = phi i32 [ %.2.15, %217 ], [ 0, %.preheader51 ]
  %33 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 0
  %34 = load i8, ptr %33, align 1, !tbaa !14
  %.not = icmp eq i8 %34, 45
  br i1 %.not, label %80, label %76

35:                                               ; preds = %217
  %36 = tail call noundef zeroext i1 @_Z3dfsi(i32 noundef %.2.15)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @str)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 17))
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 34))
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 51))
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 68))
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 85))
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 102))
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 119))
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 136))
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 153))
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 170))
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 187))
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 204))
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 221))
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 238))
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 255))
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %69 = tail call 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_)
  %70 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef @str)
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr i8, ptr %71, i64 -24
  %73 = load i64, ptr %72, align 8
  %74 = getelementptr inbounds i8, ptr %70, i64 %73
  %75 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %74)
  br i1 %75, label %.preheader51, label %._crit_edge67, !llvm.loop !15

76:                                               ; preds = %.preheader
  %77 = sext i8 %34 to i32
  %78 = add nsw i32 %77, -65
  %79 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %79, i32 noundef 0, i32 noundef %78)
  br label %82

80:                                               ; preds = %.preheader
  %81 = add nsw i32 %.03864, 1
  br label %82

82:                                               ; preds = %76, %80
  %.2 = phi i32 [ %.03864, %76 ], [ %81, %80 ]
  %83 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 1
  %84 = load i8, ptr %83, align 1, !tbaa !14
  %.not.1 = icmp eq i8 %84, 45
  br i1 %.not.1, label %89, label %85

85:                                               ; preds = %82
  %86 = sext i8 %84 to i32
  %87 = add nsw i32 %86, -65
  %88 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %88, i32 noundef 1, i32 noundef %87)
  br label %91

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

91:                                               ; preds = %89, %85
  %.2.1 = phi i32 [ %.2, %85 ], [ %90, %89 ]
  %92 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 2
  %93 = load i8, ptr %92, align 1, !tbaa !14
  %.not.2 = icmp eq i8 %93, 45
  br i1 %.not.2, label %98, label %94

94:                                               ; preds = %91
  %95 = sext i8 %93 to i32
  %96 = add nsw i32 %95, -65
  %97 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %97, i32 noundef 2, i32 noundef %96)
  br label %100

98:                                               ; preds = %91
  %99 = add nsw i32 %.2.1, 1
  br label %100

100:                                              ; preds = %98, %94
  %.2.2 = phi i32 [ %.2.1, %94 ], [ %99, %98 ]
  %101 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 3
  %102 = load i8, ptr %101, align 1, !tbaa !14
  %.not.3 = icmp eq i8 %102, 45
  br i1 %.not.3, label %107, label %103

103:                                              ; preds = %100
  %104 = sext i8 %102 to i32
  %105 = add nsw i32 %104, -65
  %106 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %106, i32 noundef 3, i32 noundef %105)
  br label %109

107:                                              ; preds = %100
  %108 = add nsw i32 %.2.2, 1
  br label %109

109:                                              ; preds = %107, %103
  %.2.3 = phi i32 [ %.2.2, %103 ], [ %108, %107 ]
  %110 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 4
  %111 = load i8, ptr %110, align 1, !tbaa !14
  %.not.4 = icmp eq i8 %111, 45
  br i1 %.not.4, label %116, label %112

112:                                              ; preds = %109
  %113 = sext i8 %111 to i32
  %114 = add nsw i32 %113, -65
  %115 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %115, i32 noundef 4, i32 noundef %114)
  br label %118

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

118:                                              ; preds = %116, %112
  %.2.4 = phi i32 [ %.2.3, %112 ], [ %117, %116 ]
  %119 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 5
  %120 = load i8, ptr %119, align 1, !tbaa !14
  %.not.5 = icmp eq i8 %120, 45
  br i1 %.not.5, label %125, label %121

121:                                              ; preds = %118
  %122 = sext i8 %120 to i32
  %123 = add nsw i32 %122, -65
  %124 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %124, i32 noundef 5, i32 noundef %123)
  br label %127

125:                                              ; preds = %118
  %126 = add nsw i32 %.2.4, 1
  br label %127

127:                                              ; preds = %125, %121
  %.2.5 = phi i32 [ %.2.4, %121 ], [ %126, %125 ]
  %128 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 6
  %129 = load i8, ptr %128, align 1, !tbaa !14
  %.not.6 = icmp eq i8 %129, 45
  br i1 %.not.6, label %134, label %130

130:                                              ; preds = %127
  %131 = sext i8 %129 to i32
  %132 = add nsw i32 %131, -65
  %133 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %133, i32 noundef 6, i32 noundef %132)
  br label %136

134:                                              ; preds = %127
  %135 = add nsw i32 %.2.5, 1
  br label %136

136:                                              ; preds = %134, %130
  %.2.6 = phi i32 [ %.2.5, %130 ], [ %135, %134 ]
  %137 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 7
  %138 = load i8, ptr %137, align 1, !tbaa !14
  %.not.7 = icmp eq i8 %138, 45
  br i1 %.not.7, label %143, label %139

139:                                              ; preds = %136
  %140 = sext i8 %138 to i32
  %141 = add nsw i32 %140, -65
  %142 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %142, i32 noundef 7, i32 noundef %141)
  br label %145

143:                                              ; preds = %136
  %144 = add nsw i32 %.2.6, 1
  br label %145

145:                                              ; preds = %143, %139
  %.2.7 = phi i32 [ %.2.6, %139 ], [ %144, %143 ]
  %146 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 8
  %147 = load i8, ptr %146, align 1, !tbaa !14
  %.not.8 = icmp eq i8 %147, 45
  br i1 %.not.8, label %152, label %148

148:                                              ; preds = %145
  %149 = sext i8 %147 to i32
  %150 = add nsw i32 %149, -65
  %151 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %151, i32 noundef 8, i32 noundef %150)
  br label %154

152:                                              ; preds = %145
  %153 = add nsw i32 %.2.7, 1
  br label %154

154:                                              ; preds = %152, %148
  %.2.8 = phi i32 [ %.2.7, %148 ], [ %153, %152 ]
  %155 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 9
  %156 = load i8, ptr %155, align 1, !tbaa !14
  %.not.9 = icmp eq i8 %156, 45
  br i1 %.not.9, label %161, label %157

157:                                              ; preds = %154
  %158 = sext i8 %156 to i32
  %159 = add nsw i32 %158, -65
  %160 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %160, i32 noundef 9, i32 noundef %159)
  br label %163

161:                                              ; preds = %154
  %162 = add nsw i32 %.2.8, 1
  br label %163

163:                                              ; preds = %161, %157
  %.2.9 = phi i32 [ %.2.8, %157 ], [ %162, %161 ]
  %164 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 10
  %165 = load i8, ptr %164, align 1, !tbaa !14
  %.not.10 = icmp eq i8 %165, 45
  br i1 %.not.10, label %170, label %166

166:                                              ; preds = %163
  %167 = sext i8 %165 to i32
  %168 = add nsw i32 %167, -65
  %169 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %169, i32 noundef 10, i32 noundef %168)
  br label %172

170:                                              ; preds = %163
  %171 = add nsw i32 %.2.9, 1
  br label %172

172:                                              ; preds = %170, %166
  %.2.10 = phi i32 [ %.2.9, %166 ], [ %171, %170 ]
  %173 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 11
  %174 = load i8, ptr %173, align 1, !tbaa !14
  %.not.11 = icmp eq i8 %174, 45
  br i1 %.not.11, label %179, label %175

175:                                              ; preds = %172
  %176 = sext i8 %174 to i32
  %177 = add nsw i32 %176, -65
  %178 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %178, i32 noundef 11, i32 noundef %177)
  br label %181

179:                                              ; preds = %172
  %180 = add nsw i32 %.2.10, 1
  br label %181

181:                                              ; preds = %179, %175
  %.2.11 = phi i32 [ %.2.10, %175 ], [ %180, %179 ]
  %182 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 12
  %183 = load i8, ptr %182, align 1, !tbaa !14
  %.not.12 = icmp eq i8 %183, 45
  br i1 %.not.12, label %188, label %184

184:                                              ; preds = %181
  %185 = sext i8 %183 to i32
  %186 = add nsw i32 %185, -65
  %187 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %187, i32 noundef 12, i32 noundef %186)
  br label %190

188:                                              ; preds = %181
  %189 = add nsw i32 %.2.11, 1
  br label %190

190:                                              ; preds = %188, %184
  %.2.12 = phi i32 [ %.2.11, %184 ], [ %189, %188 ]
  %191 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 13
  %192 = load i8, ptr %191, align 1, !tbaa !14
  %.not.13 = icmp eq i8 %192, 45
  br i1 %.not.13, label %197, label %193

193:                                              ; preds = %190
  %194 = sext i8 %192 to i32
  %195 = add nsw i32 %194, -65
  %196 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %196, i32 noundef 13, i32 noundef %195)
  br label %199

197:                                              ; preds = %190
  %198 = add nsw i32 %.2.12, 1
  br label %199

199:                                              ; preds = %197, %193
  %.2.13 = phi i32 [ %.2.12, %193 ], [ %198, %197 ]
  %200 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 14
  %201 = load i8, ptr %200, align 1, !tbaa !14
  %.not.14 = icmp eq i8 %201, 45
  br i1 %.not.14, label %206, label %202

202:                                              ; preds = %199
  %203 = sext i8 %201 to i32
  %204 = add nsw i32 %203, -65
  %205 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %205, i32 noundef 14, i32 noundef %204)
  br label %208

206:                                              ; preds = %199
  %207 = add nsw i32 %.2.13, 1
  br label %208

208:                                              ; preds = %206, %202
  %.2.14 = phi i32 [ %.2.13, %202 ], [ %207, %206 ]
  %209 = getelementptr inbounds [16 x [17 x i8]], ptr @str, i64 0, i64 %indvars.iv85, i64 15
  %210 = load i8, ptr %209, align 1, !tbaa !14
  %.not.15 = icmp eq i8 %210, 45
  br i1 %.not.15, label %215, label %211

211:                                              ; preds = %208
  %212 = sext i8 %210 to i32
  %213 = add nsw i32 %212, -65
  %214 = trunc nuw nsw i64 %indvars.iv85 to i32
  tail call void @_Z4drawiii(i32 noundef %214, i32 noundef 15, i32 noundef %213)
  br label %217

215:                                              ; preds = %208
  %216 = add nsw i32 %.2.14, 1
  br label %217

217:                                              ; preds = %215, %211
  %.2.15 = phi i32 [ %.2.14, %211 ], [ %216, %215 ]
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next86, 16
  br i1 %exitcond88.not, label %35, label %.preheader, !llvm.loop !16

._crit_edge67:                                    ; preds = %35, %.preheader52
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

; 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 #3

; 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)) #3

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 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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" }

!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 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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