; LLVM IR from DionysiosB/CodeForces :: 0100-0199 (173A-RockPaperScissors)

; 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::__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 [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3gcdll(i64 noundef, i64 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 i64, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %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 @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %21 unwind label %46

21:                                               ; 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 %4) #6
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %23 unwind label %50

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %24 unwind label %54

24:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %26 unwind label %58

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %27 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  store i64 %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %28 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  store i64 %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %29 = load i64, ptr %9, align 8, !tbaa !5
  %30 = load i64, ptr %10, align 8, !tbaa !5
  %31 = mul nsw i64 %29, %30
  %32 = load i64, ptr %9, align 8, !tbaa !5
  %33 = load i64, ptr %10, align 8, !tbaa !5
  %34 = invoke noundef i64 @_Z3gcdll(i64 noundef %32, i64 noundef %33)
          to label %35 unwind label %62

35:                                               ; preds = %26
  %36 = sdiv i64 %31, %34
  store i64 %36, ptr %13, align 8, !tbaa !5
  %37 = load i64, ptr %2, align 8, !tbaa !5
  %38 = load i64, ptr %13, align 8, !tbaa !5
  %39 = icmp sge i64 %37, %38
  br i1 %39, label %40, label %173

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %158, %40
  %42 = load i64, ptr %14, align 8, !tbaa !5
  %43 = load i64, ptr %13, align 8, !tbaa !5
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %66, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %162

46:                                               ; preds = %0
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %287

50:                                               ; preds = %21
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %5, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %6, align 4
  br label %286

54:                                               ; preds = %23
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br label %285

58:                                               ; preds = %24
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  br label %284

62:                                               ; preds = %277, %26
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  br label %283

66:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %67 = load i64, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %9, align 8, !tbaa !5
  %69 = srem i64 %67, %68
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %69)
          to label %71 unwind label %89

71:                                               ; preds = %66
  %72 = load i8, ptr %70, align 1, !tbaa !9
  store i8 %72, ptr %15, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %73 = load i64, ptr %14, align 8, !tbaa !5
  %74 = load i64, ptr %10, align 8, !tbaa !5
  %75 = srem i64 %73, %74
  %76 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %75)
          to label %77 unwind label %93

77:                                               ; preds = %71
  %78 = load i8, ptr %76, align 1, !tbaa !9
  store i8 %78, ptr %16, align 1, !tbaa !9
  %79 = load i8, ptr %15, align 1, !tbaa !9
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 %80, 82
  br i1 %81, label %82, label %97

82:                                               ; preds = %77
  %83 = load i8, ptr %16, align 1, !tbaa !9
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 80
  br i1 %85, label %86, label %97

86:                                               ; preds = %82
  %87 = load i64, ptr %12, align 8, !tbaa !5
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %12, align 8, !tbaa !5
  br label %157

89:                                               ; preds = %66
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %5, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %6, align 4
  br label %161

93:                                               ; preds = %71
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %161

97:                                               ; preds = %82, %77
  %98 = load i8, ptr %15, align 1, !tbaa !9
  %99 = sext i8 %98 to i32
  %100 = icmp eq i32 %99, 82
  br i1 %100, label %101, label %108

101:                                              ; preds = %97
  %102 = load i8, ptr %16, align 1, !tbaa !9
  %103 = sext i8 %102 to i32
  %104 = icmp eq i32 %103, 83
  br i1 %104, label %105, label %108

105:                                              ; preds = %101
  %106 = load i64, ptr %11, align 8, !tbaa !5
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %11, align 8, !tbaa !5
  br label %156

108:                                              ; preds = %101, %97
  %109 = load i8, ptr %15, align 1, !tbaa !9
  %110 = sext i8 %109 to i32
  %111 = icmp eq i32 %110, 80
  br i1 %111, label %112, label %119

112:                                              ; preds = %108
  %113 = load i8, ptr %16, align 1, !tbaa !9
  %114 = sext i8 %113 to i32
  %115 = icmp eq i32 %114, 82
  br i1 %115, label %116, label %119

116:                                              ; preds = %112
  %117 = load i64, ptr %11, align 8, !tbaa !5
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %11, align 8, !tbaa !5
  br label %155

119:                                              ; preds = %112, %108
  %120 = load i8, ptr %15, align 1, !tbaa !9
  %121 = sext i8 %120 to i32
  %122 = icmp eq i32 %121, 80
  br i1 %122, label %123, label %130

123:                                              ; preds = %119
  %124 = load i8, ptr %16, align 1, !tbaa !9
  %125 = sext i8 %124 to i32
  %126 = icmp eq i32 %125, 83
  br i1 %126, label %127, label %130

127:                                              ; preds = %123
  %128 = load i64, ptr %12, align 8, !tbaa !5
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %12, align 8, !tbaa !5
  br label %154

130:                                              ; preds = %123, %119
  %131 = load i8, ptr %15, align 1, !tbaa !9
  %132 = sext i8 %131 to i32
  %133 = icmp eq i32 %132, 83
  br i1 %133, label %134, label %141

134:                                              ; preds = %130
  %135 = load i8, ptr %16, align 1, !tbaa !9
  %136 = sext i8 %135 to i32
  %137 = icmp eq i32 %136, 82
  br i1 %137, label %138, label %141

138:                                              ; preds = %134
  %139 = load i64, ptr %12, align 8, !tbaa !5
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %12, align 8, !tbaa !5
  br label %153

141:                                              ; preds = %134, %130
  %142 = load i8, ptr %15, align 1, !tbaa !9
  %143 = sext i8 %142 to i32
  %144 = icmp eq i32 %143, 83
  br i1 %144, label %145, label %152

145:                                              ; preds = %141
  %146 = load i8, ptr %16, align 1, !tbaa !9
  %147 = sext i8 %146 to i32
  %148 = icmp eq i32 %147, 80
  br i1 %148, label %149, label %152

149:                                              ; preds = %145
  %150 = load i64, ptr %11, align 8, !tbaa !5
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %11, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %149, %145, %141
  br label %153

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

154:                                              ; preds = %153, %127
  br label %155

155:                                              ; preds = %154, %116
  br label %156

156:                                              ; preds = %155, %105
  br label %157

157:                                              ; preds = %156, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %158

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

161:                                              ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %283

162:                                              ; preds = %45
  %163 = load i64, ptr %2, align 8, !tbaa !5
  %164 = load i64, ptr %13, align 8, !tbaa !5
  %165 = sdiv i64 %163, %164
  %166 = load i64, ptr %11, align 8, !tbaa !5
  %167 = mul nsw i64 %166, %165
  store i64 %167, ptr %11, align 8, !tbaa !5
  %168 = load i64, ptr %2, align 8, !tbaa !5
  %169 = load i64, ptr %13, align 8, !tbaa !5
  %170 = sdiv i64 %168, %169
  %171 = load i64, ptr %12, align 8, !tbaa !5
  %172 = mul nsw i64 %171, %170
  store i64 %172, ptr %12, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %162, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %174

174:                                              ; preds = %273, %173
  %175 = load i64, ptr %17, align 8, !tbaa !5
  %176 = load i64, ptr %2, align 8, !tbaa !5
  %177 = load i64, ptr %13, align 8, !tbaa !5
  %178 = srem i64 %176, %177
  %179 = icmp slt i64 %175, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %277

181:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %182 = load i64, ptr %17, align 8, !tbaa !5
  %183 = load i64, ptr %9, align 8, !tbaa !5
  %184 = srem i64 %182, %183
  %185 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %184)
          to label %186 unwind label %204

186:                                              ; preds = %181
  %187 = load i8, ptr %185, align 1, !tbaa !9
  store i8 %187, ptr %18, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %188 = load i64, ptr %17, align 8, !tbaa !5
  %189 = load i64, ptr %10, align 8, !tbaa !5
  %190 = srem i64 %188, %189
  %191 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %190)
          to label %192 unwind label %208

192:                                              ; preds = %186
  %193 = load i8, ptr %191, align 1, !tbaa !9
  store i8 %193, ptr %19, align 1, !tbaa !9
  %194 = load i8, ptr %18, align 1, !tbaa !9
  %195 = sext i8 %194 to i32
  %196 = icmp eq i32 %195, 82
  br i1 %196, label %197, label %212

197:                                              ; preds = %192
  %198 = load i8, ptr %19, align 1, !tbaa !9
  %199 = sext i8 %198 to i32
  %200 = icmp eq i32 %199, 80
  br i1 %200, label %201, label %212

201:                                              ; preds = %197
  %202 = load i64, ptr %12, align 8, !tbaa !5
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %12, align 8, !tbaa !5
  br label %272

204:                                              ; preds = %181
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %5, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %6, align 4
  br label %276

208:                                              ; preds = %186
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %5, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %276

212:                                              ; preds = %197, %192
  %213 = load i8, ptr %18, align 1, !tbaa !9
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 82
  br i1 %215, label %216, label %223

216:                                              ; preds = %212
  %217 = load i8, ptr %19, align 1, !tbaa !9
  %218 = sext i8 %217 to i32
  %219 = icmp eq i32 %218, 83
  br i1 %219, label %220, label %223

220:                                              ; preds = %216
  %221 = load i64, ptr %11, align 8, !tbaa !5
  %222 = add nsw i64 %221, 1
  store i64 %222, ptr %11, align 8, !tbaa !5
  br label %271

223:                                              ; preds = %216, %212
  %224 = load i8, ptr %18, align 1, !tbaa !9
  %225 = sext i8 %224 to i32
  %226 = icmp eq i32 %225, 80
  br i1 %226, label %227, label %234

227:                                              ; preds = %223
  %228 = load i8, ptr %19, align 1, !tbaa !9
  %229 = sext i8 %228 to i32
  %230 = icmp eq i32 %229, 82
  br i1 %230, label %231, label %234

231:                                              ; preds = %227
  %232 = load i64, ptr %11, align 8, !tbaa !5
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %11, align 8, !tbaa !5
  br label %270

234:                                              ; preds = %227, %223
  %235 = load i8, ptr %18, align 1, !tbaa !9
  %236 = sext i8 %235 to i32
  %237 = icmp eq i32 %236, 80
  br i1 %237, label %238, label %245

238:                                              ; preds = %234
  %239 = load i8, ptr %19, align 1, !tbaa !9
  %240 = sext i8 %239 to i32
  %241 = icmp eq i32 %240, 83
  br i1 %241, label %242, label %245

242:                                              ; preds = %238
  %243 = load i64, ptr %12, align 8, !tbaa !5
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %12, align 8, !tbaa !5
  br label %269

245:                                              ; preds = %238, %234
  %246 = load i8, ptr %18, align 1, !tbaa !9
  %247 = sext i8 %246 to i32
  %248 = icmp eq i32 %247, 83
  br i1 %248, label %249, label %256

249:                                              ; preds = %245
  %250 = load i8, ptr %19, align 1, !tbaa !9
  %251 = sext i8 %250 to i32
  %252 = icmp eq i32 %251, 82
  br i1 %252, label %253, label %256

253:                                              ; preds = %249
  %254 = load i64, ptr %12, align 8, !tbaa !5
  %255 = add nsw i64 %254, 1
  store i64 %255, ptr %12, align 8, !tbaa !5
  br label %268

256:                                              ; preds = %249, %245
  %257 = load i8, ptr %18, align 1, !tbaa !9
  %258 = sext i8 %257 to i32
  %259 = icmp eq i32 %258, 83
  br i1 %259, label %260, label %267

260:                                              ; preds = %256
  %261 = load i8, ptr %19, align 1, !tbaa !9
  %262 = sext i8 %261 to i32
  %263 = icmp eq i32 %262, 80
  br i1 %263, label %264, label %267

264:                                              ; preds = %260
  %265 = load i64, ptr %11, align 8, !tbaa !5
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %11, align 8, !tbaa !5
  br label %267

267:                                              ; preds = %264, %260, %256
  br label %268

268:                                              ; preds = %267, %253
  br label %269

269:                                              ; preds = %268, %242
  br label %270

270:                                              ; preds = %269, %231
  br label %271

271:                                              ; preds = %270, %220
  br label %272

272:                                              ; preds = %271, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %273

273:                                              ; preds = %272
  %274 = load i64, ptr %17, align 8, !tbaa !5
  %275 = add nsw i64 %274, 1
  store i64 %275, ptr %17, align 8, !tbaa !5
  br label %174, !llvm.loop !12

276:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %283

277:                                              ; preds = %180
  %278 = load i64, ptr %12, align 8, !tbaa !5
  %279 = load i64, ptr %11, align 8, !tbaa !5
  %280 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %278, i64 noundef %279)
          to label %281 unwind label %62

281:                                              ; preds = %277
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #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 %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %282 = load i32, ptr %1, align 4
  ret i32 %282

283:                                              ; preds = %276, %161, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %284

284:                                              ; preds = %283, %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %285

285:                                              ; preds = %284, %54
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  br label %286

286:                                              ; preds = %285, %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %287

287:                                              ; preds = %286, %46
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %288

288:                                              ; preds = %287
  %289 = load ptr, ptr %5, align 8
  %290 = load i32, ptr %6, align 4
  %291 = insertvalue { ptr, i32 } poison, ptr %289, 0
  %292 = insertvalue { ptr, i32 } %291, i32 %290, 1
  resume { ptr, i32 } %292
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

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

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

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

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

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

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

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


; 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::__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 [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3gcdll(i64 noundef, i64 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 i64, align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store i64 0, ptr %1, align 8, !tbaa !5
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %7 unwind label %25

7:                                                ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %9 unwind label %27

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %10 unwind label %29

10:                                               ; preds = %9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %12 unwind label %31

12:                                               ; preds = %10
  %13 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %14 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %15 = invoke noundef i64 @_Z3gcdll(i64 noundef %13, i64 noundef %14)
          to label %16 unwind label %33

16:                                               ; preds = %12
  %17 = mul nsw i64 %14, %13
  %18 = sdiv i64 %17, %15
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %.not = icmp slt i64 %19, %18
  br i1 %.not, label %65, label %.preheader

.preheader:                                       ; preds = %16
  %20 = icmp sgt i64 %18, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %63
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %21 = phi i64 [ %19, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %.0108.lcssa = phi i64 [ 0, %.preheader ], [ %.1109, %._crit_edge.loopexit ]
  %.0103.lcssa = phi i64 [ 0, %.preheader ], [ %.1104, %._crit_edge.loopexit ]
  %22 = sdiv i64 %21, %18
  %23 = mul nsw i64 %22, %.0103.lcssa
  %24 = mul nsw i64 %22, %.0108.lcssa
  br label %65

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

27:                                               ; preds = %7
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %105

29:                                               ; preds = %9
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %104

31:                                               ; preds = %10
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %103

33:                                               ; preds = %12
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph:                                           ; preds = %.preheader, %63
  %.0103121 = phi i64 [ %.1104, %63 ], [ 0, %.preheader ]
  %.0107120 = phi i64 [ %64, %63 ], [ 0, %.preheader ]
  %.0108119 = phi i64 [ %.1109, %63 ], [ 0, %.preheader ]
  %35 = srem i64 %.0107120, %13
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %35)
  %37 = load i8, ptr %36, align 1, !tbaa !9
  %38 = srem i64 %.0107120, %14
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %38)
  %40 = load i8, ptr %39, align 1, !tbaa !9
  %41 = icmp eq i8 %37, 82
  %42 = icmp eq i8 %40, 80
  %or.cond = select i1 %41, i1 %42, i1 false
  br i1 %or.cond, label %43, label %45

43:                                               ; preds = %.lr.ph
  %44 = add nsw i64 %.0108119, 1
  br label %63

45:                                               ; preds = %.lr.ph
  %46 = icmp eq i8 %40, 83
  %or.cond5 = select i1 %41, i1 %46, i1 false
  br i1 %or.cond5, label %47, label %49

47:                                               ; preds = %45
  %48 = add nsw i64 %.0103121, 1
  br label %63

49:                                               ; preds = %45
  %50 = icmp eq i8 %37, 80
  %51 = icmp eq i8 %40, 82
  %or.cond8 = select i1 %50, i1 %51, i1 false
  br i1 %or.cond8, label %52, label %54

52:                                               ; preds = %49
  %53 = add nsw i64 %.0103121, 1
  br label %63

54:                                               ; preds = %49
  %or.cond11 = select i1 %50, i1 %46, i1 false
  br i1 %or.cond11, label %55, label %57

55:                                               ; preds = %54
  %56 = add nsw i64 %.0108119, 1
  br label %63

57:                                               ; preds = %54
  %58 = icmp eq i8 %37, 83
  %or.cond14 = select i1 %58, i1 %51, i1 false
  br i1 %or.cond14, label %59, label %61

59:                                               ; preds = %57
  %60 = add nsw i64 %.0108119, 1
  br label %63

61:                                               ; preds = %57
  %or.cond17 = select i1 %58, i1 %42, i1 false
  %62 = zext i1 %or.cond17 to i64
  %spec.select = add nsw i64 %.0103121, %62
  br label %63

63:                                               ; preds = %61, %47, %55, %59, %52, %43
  %.1109 = phi i64 [ %44, %43 ], [ %.0108119, %47 ], [ %.0108119, %52 ], [ %56, %55 ], [ %60, %59 ], [ %.0108119, %61 ]
  %.1104 = phi i64 [ %.0103121, %43 ], [ %48, %47 ], [ %53, %52 ], [ %.0103121, %55 ], [ %.0103121, %59 ], [ %spec.select, %61 ]
  %64 = add nuw nsw i64 %.0107120, 1
  %exitcond.not = icmp eq i64 %64, %18
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !10

65:                                               ; preds = %._crit_edge, %16
  %66 = phi i64 [ %21, %._crit_edge ], [ %19, %16 ]
  %.2110 = phi i64 [ %24, %._crit_edge ], [ 0, %16 ]
  %.2105 = phi i64 [ %23, %._crit_edge ], [ 0, %16 ]
  %67 = srem i64 %66, %18
  %68 = icmp sgt i64 %67, 0
  br i1 %68, label %.lr.ph127, label %._crit_edge128

._crit_edge128:                                   ; preds = %98, %65
  %.3111.lcssa = phi i64 [ %.2110, %65 ], [ %.4112, %98 ]
  %.3106.lcssa = phi i64 [ %.2105, %65 ], [ %.4, %98 ]
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.3111.lcssa, i64 noundef %.3106.lcssa)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

.lr.ph127:                                        ; preds = %65, %98
  %.098125 = phi i64 [ %99, %98 ], [ 0, %65 ]
  %.3106124 = phi i64 [ %.4, %98 ], [ %.2105, %65 ]
  %.3111123 = phi i64 [ %.4112, %98 ], [ %.2110, %65 ]
  %70 = srem i64 %.098125, %13
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %70)
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = srem i64 %.098125, %14
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %73)
  %75 = load i8, ptr %74, align 1, !tbaa !9
  %76 = icmp eq i8 %72, 82
  %77 = icmp eq i8 %75, 80
  %or.cond20 = select i1 %76, i1 %77, i1 false
  br i1 %or.cond20, label %78, label %80

78:                                               ; preds = %.lr.ph127
  %79 = add nsw i64 %.3111123, 1
  br label %98

80:                                               ; preds = %.lr.ph127
  %81 = icmp eq i8 %75, 83
  %or.cond23 = select i1 %76, i1 %81, i1 false
  br i1 %or.cond23, label %82, label %84

82:                                               ; preds = %80
  %83 = add nsw i64 %.3106124, 1
  br label %98

84:                                               ; preds = %80
  %85 = icmp eq i8 %72, 80
  %86 = icmp eq i8 %75, 82
  %or.cond26 = select i1 %85, i1 %86, i1 false
  br i1 %or.cond26, label %87, label %89

87:                                               ; preds = %84
  %88 = add nsw i64 %.3106124, 1
  br label %98

89:                                               ; preds = %84
  %or.cond29 = select i1 %85, i1 %81, i1 false
  br i1 %or.cond29, label %90, label %92

90:                                               ; preds = %89
  %91 = add nsw i64 %.3111123, 1
  br label %98

92:                                               ; preds = %89
  %93 = icmp eq i8 %72, 83
  %or.cond32 = select i1 %93, i1 %86, i1 false
  br i1 %or.cond32, label %94, label %96

94:                                               ; preds = %92
  %95 = add nsw i64 %.3111123, 1
  br label %98

96:                                               ; preds = %92
  %or.cond35 = select i1 %93, i1 %77, i1 false
  %97 = zext i1 %or.cond35 to i64
  %spec.select118 = add nsw i64 %.3106124, %97
  br label %98

98:                                               ; preds = %96, %82, %90, %94, %87, %78
  %.4112 = phi i64 [ %79, %78 ], [ %.3111123, %82 ], [ %.3111123, %87 ], [ %91, %90 ], [ %95, %94 ], [ %.3111123, %96 ]
  %.4 = phi i64 [ %.3106124, %78 ], [ %83, %82 ], [ %88, %87 ], [ %.3106124, %90 ], [ %.3106124, %94 ], [ %spec.select118, %96 ]
  %99 = add nuw nsw i64 %.098125, 1
  %100 = load i64, ptr %1, align 8, !tbaa !5
  %101 = srem i64 %100, %18
  %102 = icmp slt i64 %99, %101
  br i1 %102, label %.lr.ph127, label %._crit_edge128, !llvm.loop !12

103:                                              ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %104

104:                                              ; preds = %103, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %103 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %105

105:                                              ; preds = %104, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %104 ], [ %28, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %106

106:                                              ; preds = %105, %25
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %105 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.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 #4 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 #0 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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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


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