; LLVM IR from DionysiosB/CodeForces :: 0400-0499 (489C-GivenLengthAndSumOfDigits)

; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8possibleii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %17 unwind label %33

17:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %18 unwind label %37

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %19 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %19, ptr %10, align 4, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp sle i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %18
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp sgt i32 %23, 1
  br i1 %24, label %30, label %25

25:                                               ; preds = %22, %18
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = mul nsw i32 9, %27
  %29 = icmp sgt i32 %26, %28
  br i1 %29, label %30, label %45

30:                                               ; preds = %25, %22
  %31 = invoke i32 @puts(ptr noundef @.str.2)
          to label %32 unwind label %41

32:                                               ; preds = %30
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %151

33:                                               ; preds = %0
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %155

37:                                               ; preds = %17
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %154

41:                                               ; preds = %148, %146, %144, %142, %30
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  br label %153

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

46:                                               ; preds = %96, %45
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %99

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

52:                                               ; preds = %91, %51
  %53 = load i32, ptr %13, align 4, !tbaa !5
  %54 = icmp sle i32 %53, 9
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 5, ptr %11, align 4
  br label %94

56:                                               ; preds = %52
  %57 = load i32, ptr %12, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %68, label %59

59:                                               ; preds = %56
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %90

65:                                               ; preds = %62
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %90

68:                                               ; preds = %65, %59, %56
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = load i32, ptr %12, align 4, !tbaa !5
  %71 = sub nsw i32 %69, %70
  %72 = sub nsw i32 %71, 1
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = sub nsw i32 %73, %74
  %76 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %72, i32 noundef %75)
  br i1 %76, label %77, label %90

77:                                               ; preds = %68
  %78 = load i32, ptr %13, align 4, !tbaa !5
  %79 = add nsw i32 48, %78
  %80 = trunc i32 %79 to i8
  %81 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext %80)
          to label %82 unwind label %86

82:                                               ; preds = %77
  %83 = load i32, ptr %13, align 4, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = sub nsw i32 %84, %83
  store i32 %85, ptr %10, align 4, !tbaa !5
  store i32 5, ptr %11, align 4
  br label %94

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, 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 %153

90:                                               ; preds = %68, %65, %62
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %13, align 4, !tbaa !5
  br label %52, !llvm.loop !9

94:                                               ; preds = %82, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %12, align 4, !tbaa !5
  br label %46, !llvm.loop !11

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

101:                                              ; preds = %139, %99
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %106, label %105

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

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

107:                                              ; preds = %134, %106
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = icmp sge i32 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 11, ptr %11, align 4
  br label %137

111:                                              ; preds = %107
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !5
  %114 = sub nsw i32 %112, %113
  %115 = sub nsw i32 %114, 1
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = sub nsw i32 %116, %117
  %119 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %115, i32 noundef %118)
  br i1 %119, label %120, label %133

120:                                              ; preds = %111
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = add nsw i32 48, %121
  %123 = trunc i32 %122 to i8
  %124 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %8, i8 noundef signext %123)
          to label %125 unwind label %129

125:                                              ; preds = %120
  %126 = load i32, ptr %15, align 4, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = sub nsw i32 %127, %126
  store i32 %128, ptr %10, align 4, !tbaa !5
  store i32 11, ptr %11, align 4
  br label %137

129:                                              ; preds = %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %6, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %153

133:                                              ; preds = %111
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = add nsw i32 %135, -1
  store i32 %136, ptr %15, align 4, !tbaa !5
  br label %107, !llvm.loop !12

137:                                              ; preds = %125, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %138

138:                                              ; preds = %137
  br label %139

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

142:                                              ; preds = %105
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %144 unwind label %41

144:                                              ; preds = %142
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef @.str.3)
          to label %146 unwind label %41

146:                                              ; preds = %144
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %148 unwind label %41

148:                                              ; preds = %146
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %150 unwind label %41

150:                                              ; preds = %148
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %151

151:                                              ; preds = %150, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %152 = load i32, ptr %1, align 4
  ret i32 %152

153:                                              ; preds = %129, %86, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %154

154:                                              ; preds = %153, %37
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %155

155:                                              ; preds = %154, %33
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %6, align 8
  %158 = load i32, ptr %7, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

declare i32 @puts(ptr noundef) #3

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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}


; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8possibleii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %8 unwind label %72

8:                                                ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %9 unwind label %74

9:                                                ; preds = %8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 1
  %12 = load i32, ptr %1, align 4
  %13 = icmp sgt i32 %12, 1
  %or.cond = select i1 %11, i1 %13, i1 false
  %14 = mul nsw i32 %12, 9
  %15 = icmp sgt i32 %10, %14
  %or.cond46 = select i1 %or.cond, i1 true, i1 %15
  br i1 %or.cond46, label %70, label %.preheader49

.preheader49:                                     ; preds = %9
  %16 = icmp sgt i32 %12, 0
  br i1 %16, label %.preheader47.preheader, label %._crit_edge59

.preheader47.preheader:                           ; preds = %.preheader49
  %17 = icmp eq i32 %12, 1
  br i1 %17, label %18, label %21

18:                                               ; preds = %.preheader47.preheader
  %19 = add nsw i32 %12, -1
  %20 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %19, i32 noundef %10)
  br i1 %20, label %66, label %21

21:                                               ; preds = %.preheader47.preheader, %18
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = add i32 %22, -1
  %24 = add nsw i32 %10, -1
  %25 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %23, i32 noundef %24)
  br i1 %25, label %66, label %26

26:                                               ; preds = %21
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add i32 %27, -1
  %29 = add nsw i32 %10, -2
  %30 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %28, i32 noundef %29)
  br i1 %30, label %66, label %31

31:                                               ; preds = %26
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = add i32 %32, -1
  %34 = add nsw i32 %10, -3
  %35 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %33, i32 noundef %34)
  br i1 %35, label %66, label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = add i32 %37, -1
  %39 = add nsw i32 %10, -4
  %40 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %38, i32 noundef %39)
  br i1 %40, label %66, label %41

41:                                               ; preds = %36
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = add i32 %42, -1
  %44 = add nsw i32 %10, -5
  %45 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %43, i32 noundef %44)
  br i1 %45, label %66, label %46

46:                                               ; preds = %41
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = add i32 %47, -1
  %49 = add nsw i32 %10, -6
  %50 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %48, i32 noundef %49)
  br i1 %50, label %66, label %51

51:                                               ; preds = %46
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = add i32 %52, -1
  %54 = add nsw i32 %10, -7
  %55 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %53, i32 noundef %54)
  br i1 %55, label %66, label %56

56:                                               ; preds = %51
  %57 = load i32, ptr %1, align 4, !tbaa !5
  %58 = add i32 %57, -1
  %59 = add nsw i32 %10, -8
  %60 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %58, i32 noundef %59)
  br i1 %60, label %66, label %61

61:                                               ; preds = %56
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = add i32 %62, -1
  %64 = add nsw i32 %10, -9
  %65 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %63, i32 noundef %64)
  br i1 %65, label %66, label %.loopexit48.peel

66:                                               ; preds = %61, %56, %51, %46, %41, %36, %31, %26, %21, %18
  %.03153.lcssa.peel = phi i8 [ 48, %18 ], [ 49, %21 ], [ 50, %26 ], [ 51, %31 ], [ 52, %36 ], [ 53, %41 ], [ 54, %46 ], [ 55, %51 ], [ 56, %56 ], [ 57, %61 ]
  %.lcssa62.peel = phi i32 [ %10, %18 ], [ %24, %21 ], [ %29, %26 ], [ %34, %31 ], [ %39, %36 ], [ %44, %41 ], [ %49, %46 ], [ %54, %51 ], [ %59, %56 ], [ %64, %61 ]
  %67 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 noundef signext %.03153.lcssa.peel)
          to label %.loopexit48.peel unwind label %.loopexit.split-lp

.loopexit48.peel:                                 ; preds = %61, %66
  %.1.peel = phi i32 [ %.lcssa62.peel, %66 ], [ %10, %61 ]
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 1
  br i1 %69, label %.preheader47.peel.next, label %._crit_edge

70:                                               ; preds = %9
  %71 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %197

72:                                               ; preds = %0
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %200

74:                                               ; preds = %8
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %199

76:                                               ; preds = %195, %193, %191, %._crit_edge59
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %198

._crit_edge:                                      ; preds = %.loopexit48, %.loopexit48.peel
  %78 = phi i32 [ %68, %.loopexit48.peel ], [ %132, %.loopexit48 ]
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.preheader.preheader, label %._crit_edge59

.preheader.preheader:                             ; preds = %._crit_edge
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %.preheader

.preheader47.peel.next:                           ; preds = %.loopexit48.peel, %.loopexit48
  %80 = phi i32 [ %132, %.loopexit48 ], [ %68, %.loopexit48.peel ]
  %.03255 = phi i32 [ %131, %.loopexit48 ], [ 1, %.loopexit48.peel ]
  %.03354 = phi i32 [ %.1, %.loopexit48 ], [ %.1.peel, %.loopexit48.peel ]
  %81 = xor i32 %.03255, -1
  %82 = add i32 %80, %81
  %83 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %82, i32 noundef %.03354)
  br i1 %83, label %84, label %86

84:                                               ; preds = %126, %121, %116, %111, %106, %101, %96, %91, %86, %.preheader47.peel.next
  %.03153.lcssa = phi i8 [ 48, %.preheader47.peel.next ], [ 49, %86 ], [ 50, %91 ], [ 51, %96 ], [ 52, %101 ], [ 53, %106 ], [ 54, %111 ], [ 55, %116 ], [ 56, %121 ], [ 57, %126 ]
  %.lcssa62 = phi i32 [ %.03354, %.preheader47.peel.next ], [ %89, %86 ], [ %94, %91 ], [ %99, %96 ], [ %104, %101 ], [ %109, %106 ], [ %114, %111 ], [ %119, %116 ], [ %124, %121 ], [ %129, %126 ]
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 noundef signext %.03153.lcssa)
          to label %.loopexit48 unwind label %.loopexit65

.loopexit65:                                      ; preds = %84
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %198

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

86:                                               ; preds = %.preheader47.peel.next
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = add i32 %87, %81
  %89 = add nsw i32 %.03354, -1
  %90 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %88, i32 noundef %89)
  br i1 %90, label %84, label %91

91:                                               ; preds = %86
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = add i32 %92, %81
  %94 = add nsw i32 %.03354, -2
  %95 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %93, i32 noundef %94)
  br i1 %95, label %84, label %96

96:                                               ; preds = %91
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = add i32 %97, %81
  %99 = add nsw i32 %.03354, -3
  %100 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %98, i32 noundef %99)
  br i1 %100, label %84, label %101

101:                                              ; preds = %96
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = add i32 %102, %81
  %104 = add nsw i32 %.03354, -4
  %105 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %103, i32 noundef %104)
  br i1 %105, label %84, label %106

106:                                              ; preds = %101
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = add i32 %107, %81
  %109 = add nsw i32 %.03354, -5
  %110 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %108, i32 noundef %109)
  br i1 %110, label %84, label %111

111:                                              ; preds = %106
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = add i32 %112, %81
  %114 = add nsw i32 %.03354, -6
  %115 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %113, i32 noundef %114)
  br i1 %115, label %84, label %116

116:                                              ; preds = %111
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = add i32 %117, %81
  %119 = add nsw i32 %.03354, -7
  %120 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %118, i32 noundef %119)
  br i1 %120, label %84, label %121

121:                                              ; preds = %116
  %122 = load i32, ptr %1, align 4, !tbaa !5
  %123 = add i32 %122, %81
  %124 = add nsw i32 %.03354, -8
  %125 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %123, i32 noundef %124)
  br i1 %125, label %84, label %126

126:                                              ; preds = %121
  %127 = load i32, ptr %1, align 4, !tbaa !5
  %128 = add i32 %127, %81
  %129 = add nsw i32 %.03354, -9
  %130 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %128, i32 noundef %129)
  br i1 %130, label %84, label %.loopexit48

.loopexit48:                                      ; preds = %126, %84
  %.1 = phi i32 [ %.lcssa62, %84 ], [ %.03354, %126 ]
  %131 = add nuw nsw i32 %.03255, 1
  %132 = load i32, ptr %1, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %.preheader47.peel.next, label %._crit_edge, !llvm.loop !9

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit
  %134 = phi i32 [ %189, %.loopexit ], [ %78, %.preheader.preheader ]
  %.03058 = phi i32 [ %188, %.loopexit ], [ 0, %.preheader.preheader ]
  %.257 = phi i32 [ %.3, %.loopexit ], [ %.pre, %.preheader.preheader ]
  %135 = xor i32 %.03058, -1
  %136 = add i32 %134, %135
  %137 = add nsw i32 %.257, -9
  %138 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %136, i32 noundef %137)
  br i1 %138, label %140, label %144

._crit_edge59:                                    ; preds = %.loopexit, %.preheader49, %._crit_edge
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %191 unwind label %76

140:                                              ; preds = %184, %179, %174, %169, %164, %159, %154, %149, %144, %.preheader
  %.056.lcssa = phi i8 [ 57, %.preheader ], [ 56, %144 ], [ 55, %149 ], [ 54, %154 ], [ 53, %159 ], [ 52, %164 ], [ 51, %169 ], [ 50, %174 ], [ 49, %179 ], [ 48, %184 ]
  %.lcssa = phi i32 [ %137, %.preheader ], [ %147, %144 ], [ %152, %149 ], [ %157, %154 ], [ %162, %159 ], [ %167, %164 ], [ %172, %169 ], [ %177, %174 ], [ %182, %179 ], [ %.257, %184 ]
  %141 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext %.056.lcssa)
          to label %.loopexit unwind label %142

142:                                              ; preds = %140
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %198

144:                                              ; preds = %.preheader
  %145 = load i32, ptr %1, align 4, !tbaa !5
  %146 = add i32 %145, %135
  %147 = add nsw i32 %.257, -8
  %148 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %146, i32 noundef %147)
  br i1 %148, label %140, label %149

149:                                              ; preds = %144
  %150 = load i32, ptr %1, align 4, !tbaa !5
  %151 = add i32 %150, %135
  %152 = add nsw i32 %.257, -7
  %153 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %151, i32 noundef %152)
  br i1 %153, label %140, label %154

154:                                              ; preds = %149
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = add i32 %155, %135
  %157 = add nsw i32 %.257, -6
  %158 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %156, i32 noundef %157)
  br i1 %158, label %140, label %159

159:                                              ; preds = %154
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = add i32 %160, %135
  %162 = add nsw i32 %.257, -5
  %163 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %161, i32 noundef %162)
  br i1 %163, label %140, label %164

164:                                              ; preds = %159
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = add i32 %165, %135
  %167 = add nsw i32 %.257, -4
  %168 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %166, i32 noundef %167)
  br i1 %168, label %140, label %169

169:                                              ; preds = %164
  %170 = load i32, ptr %1, align 4, !tbaa !5
  %171 = add i32 %170, %135
  %172 = add nsw i32 %.257, -3
  %173 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %171, i32 noundef %172)
  br i1 %173, label %140, label %174

174:                                              ; preds = %169
  %175 = load i32, ptr %1, align 4, !tbaa !5
  %176 = add i32 %175, %135
  %177 = add nsw i32 %.257, -2
  %178 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %176, i32 noundef %177)
  br i1 %178, label %140, label %179

179:                                              ; preds = %174
  %180 = load i32, ptr %1, align 4, !tbaa !5
  %181 = add i32 %180, %135
  %182 = add nsw i32 %.257, -1
  %183 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %181, i32 noundef %182)
  br i1 %183, label %140, label %184

184:                                              ; preds = %179
  %185 = load i32, ptr %1, align 4, !tbaa !5
  %186 = add i32 %185, %135
  %187 = call noundef zeroext i1 @_Z8possibleii(i32 noundef %186, i32 noundef %.257)
  br i1 %187, label %140, label %.loopexit

.loopexit:                                        ; preds = %184, %140
  %.3 = phi i32 [ %.lcssa, %140 ], [ %.257, %184 ]
  %188 = add nuw nsw i32 %.03058, 1
  %189 = load i32, ptr %1, align 4, !tbaa !5
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %.preheader, label %._crit_edge59, !llvm.loop !12

191:                                              ; preds = %._crit_edge59
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull @.str.3)
          to label %193 unwind label %76

193:                                              ; preds = %191
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %195 unwind label %76

195:                                              ; preds = %193
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %197 unwind label %76

197:                                              ; preds = %195, %70
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

198:                                              ; preds = %.loopexit65, %.loopexit.split-lp, %142, %76
  %.pn = phi { ptr, i32 } [ %143, %142 ], [ %77, %76 ], [ %lpad.loopexit, %.loopexit65 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %199

199:                                              ; preds = %198, %74
  %.pn.pn = phi { ptr, i32 } [ %.pn, %198 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %200

200:                                              ; preds = %199, %72
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %199 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = distinct !{!12, !10}


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