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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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] }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %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
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1, ptr noundef %2)
  %21 = load i64, ptr %1, align 8, !tbaa !5
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %3, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", i64 %21, align 16
  store i64 %21, ptr %4, align 8
  %24 = icmp eq i64 %21, 0
  br i1 %24, label %31, label %25

25:                                               ; preds = %0
  %26 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  br label %27

27:                                               ; preds = %27, %25
  %28 = phi ptr [ %23, %25 ], [ %29, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  %29 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %28, i64 1
  %30 = icmp eq ptr %29, %26
  br i1 %30, label %31, label %27

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

32:                                               ; preds = %44, %31
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = load i64, ptr %1, align 8, !tbaa !5
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %32
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %40
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %43 unwind label %47

43:                                               ; preds = %38
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %5, align 4, !tbaa !9
  br label %32, !llvm.loop !11

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %321

51:                                               ; preds = %37
  %52 = load i64, ptr %1, align 8, !tbaa !5
  %53 = alloca %"class.std::__cxx11::basic_string", i64 %52, align 16
  store i64 %52, ptr %8, align 8
  %54 = icmp eq i64 %52, 0
  br i1 %54, label %61, label %55

55:                                               ; preds = %51
  %56 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %52
  br label %57

57:                                               ; preds = %57, %55
  %58 = phi ptr [ %53, %55 ], [ %59, %57 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #6
  %59 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %58, i64 1
  %60 = icmp eq ptr %59, %56
  br i1 %60, label %61, label %57

61:                                               ; preds = %57, %51
  %62 = load i64, ptr %1, align 8, !tbaa !5
  %63 = alloca %"class.std::__cxx11::basic_string", i64 %62, align 16
  store i64 %62, ptr %9, align 8
  %64 = icmp eq i64 %62, 0
  br i1 %64, label %71, label %65

65:                                               ; preds = %61
  %66 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %62
  br label %67

67:                                               ; preds = %67, %65
  %68 = phi ptr [ %63, %65 ], [ %69, %67 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #6
  %69 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %68, i64 1
  %70 = icmp eq ptr %69, %66
  br i1 %70, label %71, label %67

71:                                               ; preds = %67, %61
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 1, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %127, %71
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = load i64, ptr %1, align 8, !tbaa !5
  %76 = icmp slt i64 %74, %75
  br i1 %76, label %78, label %77

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

78:                                               ; preds = %72
  store i8 1, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %123, %78
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = load i64, ptr %2, align 8, !tbaa !5
  %83 = icmp slt i64 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %126

85:                                               ; preds = %79
  %86 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %107

88:                                               ; preds = %85
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %90
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %91, i64 noundef %93)
          to label %95 unwind label %103

95:                                               ; preds = %88
  store i8 46, ptr %94, align 1, !tbaa !17
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %97
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %98, i64 noundef %100)
          to label %102 unwind label %103

102:                                              ; preds = %95
  store i8 42, ptr %101, align 1, !tbaa !17
  store i8 0, ptr %10, align 1, !tbaa !13
  br label %122

103:                                              ; preds = %114, %107, %95, %88
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %6, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %286

107:                                              ; preds = %85
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %109
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %110, i64 noundef %112)
          to label %114 unwind label %103

114:                                              ; preds = %107
  store i8 42, ptr %113, align 1, !tbaa !17
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %116
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %117, i64 noundef %119)
          to label %121 unwind label %103

121:                                              ; preds = %114
  store i8 46, ptr %120, align 1, !tbaa !17
  store i8 1, ptr %10, align 1, !tbaa !13
  br label %122

122:                                              ; preds = %121, %102
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %13, align 4, !tbaa !9
  br label %79, !llvm.loop !18

126:                                              ; preds = %84
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = add nsw i32 %128, 2
  store i32 %129, ptr %11, align 4, !tbaa !9
  br label %72, !llvm.loop !19

130:                                              ; preds = %77
  store i8 0, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %186, %130
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = load i64, ptr %1, align 8, !tbaa !5
  %135 = icmp slt i64 %133, %134
  br i1 %135, label %137, label %136

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

137:                                              ; preds = %131
  store i8 0, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %182, %137
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = load i64, ptr %2, align 8, !tbaa !5
  %142 = icmp slt i64 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %138
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %185

144:                                              ; preds = %138
  %145 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %166

147:                                              ; preds = %144
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %149
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %150, i64 noundef %152)
          to label %154 unwind label %162

154:                                              ; preds = %147
  store i8 46, ptr %153, align 1, !tbaa !17
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %156
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %157, i64 noundef %159)
          to label %161 unwind label %162

161:                                              ; preds = %154
  store i8 42, ptr %160, align 1, !tbaa !17
  store i8 0, ptr %10, align 1, !tbaa !13
  br label %181

162:                                              ; preds = %173, %166, %154, %147
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %6, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, 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 %286

166:                                              ; preds = %144
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %168
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %169, i64 noundef %171)
          to label %173 unwind label %162

173:                                              ; preds = %166
  store i8 42, ptr %172, align 1, !tbaa !17
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %175
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %176, i64 noundef %178)
          to label %180 unwind label %162

180:                                              ; preds = %173
  store i8 46, ptr %179, align 1, !tbaa !17
  store i8 1, ptr %10, align 1, !tbaa !13
  br label %181

181:                                              ; preds = %180, %161
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %15, align 4, !tbaa !9
  br label %138, !llvm.loop !20

185:                                              ; preds = %143
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = add nsw i32 %187, 2
  store i32 %188, ptr %14, align 4, !tbaa !9
  br label %131, !llvm.loop !21

189:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %258, %189
  %191 = load i32, ptr %18, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = load i64, ptr %1, align 8, !tbaa !5
  %194 = icmp slt i64 %192, %193
  br i1 %194, label %196, label %195

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

196:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %254, %196
  %198 = load i32, ptr %19, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = load i64, ptr %2, align 8, !tbaa !5
  %201 = icmp slt i64 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %197
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %257

203:                                              ; preds = %197
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %205
  %207 = load i32, ptr %19, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %206, i64 noundef %208)
          to label %210 unwind label %226

210:                                              ; preds = %203
  %211 = load i8, ptr %209, align 1, !tbaa !17
  %212 = sext i8 %211 to i32
  %213 = load i32, ptr %18, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %214
  %216 = load i32, ptr %19, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %215, i64 noundef %217)
          to label %219 unwind label %226

219:                                              ; preds = %210
  %220 = load i8, ptr %218, align 1, !tbaa !17
  %221 = sext i8 %220 to i32
  %222 = icmp ne i32 %212, %221
  br i1 %222, label %223, label %230

223:                                              ; preds = %219
  %224 = load i64, ptr %16, align 8, !tbaa !5
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %16, align 8, !tbaa !5
  br label %230

226:                                              ; preds = %237, %230, %210, %203
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %6, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %285

230:                                              ; preds = %223, %219
  %231 = load i32, ptr %18, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %232
  %234 = load i32, ptr %19, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %233, i64 noundef %235)
          to label %237 unwind label %226

237:                                              ; preds = %230
  %238 = load i8, ptr %236, align 1, !tbaa !17
  %239 = sext i8 %238 to i32
  %240 = load i32, ptr %18, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %241
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %242, i64 noundef %244)
          to label %246 unwind label %226

246:                                              ; preds = %237
  %247 = load i8, ptr %245, align 1, !tbaa !17
  %248 = sext i8 %247 to i32
  %249 = icmp ne i32 %239, %248
  br i1 %249, label %250, label %253

250:                                              ; preds = %246
  %251 = load i64, ptr %17, align 8, !tbaa !5
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %17, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %250, %246
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %19, align 4, !tbaa !9
  br label %197, !llvm.loop !22

257:                                              ; preds = %202
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %18, align 4, !tbaa !9
  br label %190, !llvm.loop !23

261:                                              ; preds = %195
  %262 = load i64, ptr %1, align 8, !tbaa !5
  %263 = srem i64 %262, 2
  %264 = icmp ne i64 %263, 0
  br i1 %264, label %265, label %271

265:                                              ; preds = %261
  %266 = load i64, ptr %2, align 8, !tbaa !5
  %267 = srem i64 %266, 2
  %268 = icmp ne i64 %267, 0
  br i1 %268, label %269, label %271

269:                                              ; preds = %265
  %270 = load i64, ptr %17, align 8, !tbaa !5
  br label %275

271:                                              ; preds = %265, %261
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %273 unwind label %281

273:                                              ; preds = %271
  %274 = load i64, ptr %272, align 8, !tbaa !5
  br label %275

275:                                              ; preds = %273, %269
  %276 = phi i64 [ %270, %269 ], [ %274, %273 ]
  %277 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %276)
          to label %278 unwind label %281

278:                                              ; preds = %275
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %279 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %62
  %280 = icmp eq ptr %63, %279
  br i1 %280, label %293, label %289

281:                                              ; preds = %275, %271
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %6, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %7, align 4
  br label %285

285:                                              ; preds = %281, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %286

286:                                              ; preds = %285, %162, %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  %287 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %63, i64 %62
  %288 = icmp eq ptr %63, %287
  br i1 %288, label %300, label %296

289:                                              ; preds = %289, %278
  %290 = phi ptr [ %279, %278 ], [ %291, %289 ]
  %291 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %290, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %291) #6
  %292 = icmp eq ptr %291, %63
  br i1 %292, label %293, label %289

293:                                              ; preds = %289, %278
  %294 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %52
  %295 = icmp eq ptr %53, %294
  br i1 %295, label %307, label %303

296:                                              ; preds = %296, %286
  %297 = phi ptr [ %287, %286 ], [ %298, %296 ]
  %298 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %297, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %298) #6
  %299 = icmp eq ptr %298, %63
  br i1 %299, label %300, label %296

300:                                              ; preds = %296, %286
  %301 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %53, i64 %52
  %302 = icmp eq ptr %53, %301
  br i1 %302, label %314, label %310

303:                                              ; preds = %303, %293
  %304 = phi ptr [ %294, %293 ], [ %305, %303 ]
  %305 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %304, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %305) #6
  %306 = icmp eq ptr %305, %53
  br i1 %306, label %307, label %303

307:                                              ; preds = %303, %293
  %308 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  %309 = icmp eq ptr %23, %308
  br i1 %309, label %319, label %315

310:                                              ; preds = %310, %300
  %311 = phi ptr [ %301, %300 ], [ %312, %310 ]
  %312 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %311, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %312) #6
  %313 = icmp eq ptr %312, %53
  br i1 %313, label %314, label %310

314:                                              ; preds = %310, %300
  br label %321

315:                                              ; preds = %315, %307
  %316 = phi ptr [ %308, %307 ], [ %317, %315 ]
  %317 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %316, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %317) #6
  %318 = icmp eq ptr %317, %23
  br i1 %318, label %319, label %315

319:                                              ; preds = %315, %307
  %320 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %320)
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void

321:                                              ; preds = %314, %47
  %322 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  %323 = icmp eq ptr %23, %322
  br i1 %323, label %328, label %324

324:                                              ; preds = %324, %321
  %325 = phi ptr [ %322, %321 ], [ %326, %324 ]
  %326 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %325, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %326) #6
  %327 = icmp eq ptr %326, %23
  br i1 %327, label %328, label %324

328:                                              ; preds = %324, %321
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %6, align 8
  %331 = load i32, ptr %7, align 4
  %332 = insertvalue { ptr, i32 } poison, ptr %330, 0
  %333 = insertvalue { ptr, i32 } %332, i32 %331, 1
  resume { ptr, i32 } %333
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #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) #1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
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 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 #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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; 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] }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5harryv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [0 x %"class.std::__cxx11::basic_string"], align 16
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %7 = load i64, ptr %2, align 8, !tbaa !5
  %8 = call ptr @llvm.stacksave.p0()
  %9 = alloca %"class.std::__cxx11::basic_string", i64 %7, align 16
  %10 = icmp eq i64 %7, 0
  br i1 %10, label %.loopexit79, label %11

11:                                               ; preds = %0
  %12 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 %7
  br label %13

13:                                               ; preds = %13, %11
  %14 = phi ptr [ %9, %11 ], [ %15, %13 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  %16 = icmp eq ptr %15, %12
  br i1 %16, label %.loopexit79, label %13

.loopexit79:                                      ; preds = %13, %0
  %17 = load i64, ptr %2, align 8, !tbaa !5
  %18 = icmp sgt i64 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %.loopexit79
  %.lcssa80 = phi i64 [ %17, %.loopexit79 ], [ %24, %23 ]
  %19 = alloca %"class.std::__cxx11::basic_string", i64 %.lcssa80, align 16
  %20 = icmp eq i64 %.lcssa80, 0
  br i1 %20, label %._crit_edge93.thread139, label %29

.lr.ph:                                           ; preds = %.loopexit79, %23
  %indvars.iv = phi i64 [ %indvars.iv.next, %23 ], [ 0, %.loopexit79 ]
  %21 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 %indvars.iv
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %23 unwind label %26

23:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i64, ptr %2, align 8, !tbaa !5
  %25 = icmp sgt i64 %24, %indvars.iv.next
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  br i1 %10, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %26
  %28 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 %7
  br label %.preheader

29:                                               ; preds = %._crit_edge
  %30 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 %.lcssa80
  br label %31

31:                                               ; preds = %31, %29
  %32 = phi ptr [ %19, %29 ], [ %33, %31 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 32
  %34 = icmp eq ptr %33, %30
  br i1 %34, label %35, label %31

35:                                               ; preds = %31
  %.pr = load i64, ptr %2, align 8, !tbaa !5
  %36 = alloca %"class.std::__cxx11::basic_string", i64 %.pr, align 16
  %37 = icmp eq i64 %.pr, 0
  br i1 %37, label %._crit_edge93.thread139, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %36, i64 %.pr
  br label %40

40:                                               ; preds = %40, %38
  %41 = phi ptr [ %36, %38 ], [ %42, %40 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  %42 = getelementptr inbounds i8, ptr %41, i64 32
  %43 = icmp eq ptr %42, %39
  br i1 %43, label %.loopexit78, label %40

.loopexit78:                                      ; preds = %40
  %.pre = load i64, ptr %2, align 8, !tbaa !5
  %44 = icmp sgt i64 %.pre, 0
  br i1 %44, label %.preheader77.lr.ph, label %._crit_edge93.thread139

.preheader77.lr.ph:                               ; preds = %.loopexit78
  %45 = load i64, ptr %3, align 8, !tbaa !5
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %.preheader77, label %.preheader76

.preheader77:                                     ; preds = %.preheader77.lr.ph, %._crit_edge86
  %47 = phi i64 [ %56, %._crit_edge86 ], [ %.pre, %.preheader77.lr.ph ]
  %48 = phi i64 [ %57, %._crit_edge86 ], [ %45, %.preheader77.lr.ph ]
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %._crit_edge86 ], [ 0, %.preheader77.lr.ph ]
  %49 = icmp sgt i64 %48, 0
  br i1 %49, label %.lr.ph85, label %._crit_edge86

.lr.ph85:                                         ; preds = %.preheader77
  %50 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 %indvars.iv111
  %51 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %36, i64 %indvars.iv111
  br label %59

._crit_edge93.thread139:                          ; preds = %._crit_edge, %35, %.loopexit78
  %.ph135 = phi i64 [ %.pr, %.loopexit78 ], [ 0, %35 ], [ 0, %._crit_edge ]
  %.ph136 = phi ptr [ %36, %.loopexit78 ], [ %36, %35 ], [ %1, %._crit_edge ]
  %.ph137 = phi i1 [ false, %.loopexit78 ], [ true, %35 ], [ true, %._crit_edge ]
  %.ph138 = phi i64 [ %.pre, %.loopexit78 ], [ 0, %35 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %._crit_edge98

.preheader76:                                     ; preds = %._crit_edge86, %.preheader77.lr.ph
  %52 = phi i64 [ %.pre, %.preheader77.lr.ph ], [ %56, %._crit_edge86 ]
  %53 = icmp sgt i64 %52, 1
  br i1 %53, label %.preheader75.lr.ph, label %._crit_edge93

.preheader75.lr.ph:                               ; preds = %.preheader76
  %54 = load i64, ptr %3, align 8, !tbaa !5
  %55 = icmp sgt i64 %54, 0
  br i1 %55, label %.preheader75, label %._crit_edge93.thread

._crit_edge93.thread:                             ; preds = %.preheader75.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %.preheader74.lr.ph

._crit_edge86.loopexit:                           ; preds = %59
  %.pre132 = load i64, ptr %2, align 8, !tbaa !5
  br label %._crit_edge86

._crit_edge86:                                    ; preds = %._crit_edge86.loopexit, %.preheader77
  %56 = phi i64 [ %.pre132, %._crit_edge86.loopexit ], [ %47, %.preheader77 ]
  %57 = phi i64 [ %62, %._crit_edge86.loopexit ], [ %48, %.preheader77 ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 2
  %58 = icmp sgt i64 %56, %indvars.iv.next112
  br i1 %58, label %.preheader77, label %.preheader76, !llvm.loop !11

59:                                               ; preds = %.lr.ph85, %59
  %indvars.iv109 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next110, %59 ]
  %.04883 = phi i1 [ true, %.lr.ph85 ], [ %.1, %59 ]
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %indvars.iv109)
  %. = select i1 %.04883, i8 46, i8 42
  %.152 = select i1 %.04883, i8 42, i8 46
  store i8 %., ptr %60, align 1, !tbaa !13
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %indvars.iv109)
  store i8 %.152, ptr %61, align 1, !tbaa !13
  %.1 = xor i1 %.04883, true
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = icmp sgt i64 %62, %indvars.iv.next110
  br i1 %63, label %59, label %._crit_edge86.loopexit, !llvm.loop !14

.preheader75:                                     ; preds = %.preheader75.lr.ph, %._crit_edge91
  %64 = phi i64 [ %74, %._crit_edge91 ], [ %52, %.preheader75.lr.ph ]
  %65 = phi i64 [ %75, %._crit_edge91 ], [ %54, %.preheader75.lr.ph ]
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %._crit_edge91 ], [ 1, %.preheader75.lr.ph ]
  %66 = icmp sgt i64 %65, 0
  br i1 %66, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %.preheader75
  %67 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 %indvars.iv120
  %68 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %36, i64 %indvars.iv120
  br label %77

._crit_edge93:                                    ; preds = %._crit_edge91, %.preheader76
  %69 = phi i64 [ %52, %.preheader76 ], [ %74, %._crit_edge91 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 0, ptr %5, align 8, !tbaa !5
  %70 = icmp sgt i64 %69, 0
  br i1 %70, label %.preheader74.lr.ph, label %._crit_edge98

.preheader74.lr.ph:                               ; preds = %._crit_edge93.thread, %._crit_edge93
  %71 = phi i64 [ %52, %._crit_edge93.thread ], [ %69, %._crit_edge93 ]
  %72 = load i64, ptr %3, align 8, !tbaa !5
  %73 = icmp sgt i64 %72, 0
  br i1 %73, label %.preheader74, label %._crit_edge98

._crit_edge91.loopexit:                           ; preds = %77
  %.pre133 = load i64, ptr %2, align 8, !tbaa !5
  br label %._crit_edge91

._crit_edge91:                                    ; preds = %._crit_edge91.loopexit, %.preheader75
  %74 = phi i64 [ %.pre133, %._crit_edge91.loopexit ], [ %64, %.preheader75 ]
  %75 = phi i64 [ %81, %._crit_edge91.loopexit ], [ %65, %.preheader75 ]
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 2
  %76 = icmp sgt i64 %74, %indvars.iv.next121
  br i1 %76, label %.preheader75, label %._crit_edge93, !llvm.loop !15

77:                                               ; preds = %.lr.ph90, %77
  %indvars.iv117 = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next118, %77 ]
  %.04489 = phi i32 [ 0, %.lr.ph90 ], [ %80, %77 ]
  %indvars119 = trunc i32 %.04489 to i1
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %indvars.iv117)
  %.153 = select i1 %indvars119, i8 46, i8 42
  %.154 = select i1 %indvars119, i8 42, i8 46
  store i8 %.153, ptr %78, align 1, !tbaa !13
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %68, i64 noundef %indvars.iv117)
  store i8 %.154, ptr %79, align 1, !tbaa !13
  %80 = add nuw i32 %.04489, 1
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %81 = load i64, ptr %3, align 8, !tbaa !5
  %82 = icmp sgt i64 %81, %indvars.iv.next118
  br i1 %82, label %77, label %._crit_edge91.loopexit, !llvm.loop !16

.preheader74:                                     ; preds = %.preheader74.lr.ph, %._crit_edge96
  %83 = phi i64 [ %93, %._crit_edge96 ], [ %71, %.preheader74.lr.ph ]
  %84 = phi i64 [ %94, %._crit_edge96 ], [ %72, %.preheader74.lr.ph ]
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge96 ], [ 0, %.preheader74.lr.ph ]
  %85 = icmp sgt i64 %84, 0
  br i1 %85, label %.lr.ph95, label %._crit_edge96

.lr.ph95:                                         ; preds = %.preheader74
  %86 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 %indvars.iv129
  %87 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 %indvars.iv129
  %88 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %36, i64 %indvars.iv129
  br label %96

._crit_edge98:                                    ; preds = %._crit_edge96, %.preheader74.lr.ph, %._crit_edge93.thread139, %._crit_edge93
  %89 = phi i64 [ %.pr, %._crit_edge93 ], [ %.ph135, %._crit_edge93.thread139 ], [ %.pr, %.preheader74.lr.ph ], [ %.pr, %._crit_edge96 ]
  %90 = phi ptr [ %36, %._crit_edge93 ], [ %.ph136, %._crit_edge93.thread139 ], [ %36, %.preheader74.lr.ph ], [ %36, %._crit_edge96 ]
  %91 = phi i1 [ false, %._crit_edge93 ], [ %.ph137, %._crit_edge93.thread139 ], [ false, %.preheader74.lr.ph ], [ false, %._crit_edge96 ]
  %.lcssa = phi i64 [ %69, %._crit_edge93 ], [ %.ph138, %._crit_edge93.thread139 ], [ %71, %.preheader74.lr.ph ], [ %93, %._crit_edge96 ]
  %92 = and i64 %.lcssa, 1
  %.not = icmp eq i64 %92, 0
  br i1 %.not, label %118, label %115

._crit_edge96.loopexit:                           ; preds = %112
  %.pre134 = load i64, ptr %2, align 8, !tbaa !5
  br label %._crit_edge96

._crit_edge96:                                    ; preds = %._crit_edge96.loopexit, %.preheader74
  %93 = phi i64 [ %.pre134, %._crit_edge96.loopexit ], [ %83, %.preheader74 ]
  %94 = phi i64 [ %113, %._crit_edge96.loopexit ], [ %84, %.preheader74 ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %95 = icmp sgt i64 %93, %indvars.iv.next130
  br i1 %95, label %.preheader74, label %._crit_edge98, !llvm.loop !17

96:                                               ; preds = %.lr.ph95, %112
  %indvars.iv126 = phi i64 [ 0, %.lr.ph95 ], [ %indvars.iv.next127, %112 ]
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %86, i64 noundef %indvars.iv126)
  %98 = load i8, ptr %97, align 1, !tbaa !13
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %87, i64 noundef %indvars.iv126)
  %100 = load i8, ptr %99, align 1, !tbaa !13
  %.not66 = icmp eq i8 %98, %100
  br i1 %.not66, label %104, label %101

101:                                              ; preds = %96
  %102 = load i64, ptr %4, align 8, !tbaa !5
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %4, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %101, %96
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %86, i64 noundef %indvars.iv126)
  %106 = load i8, ptr %105, align 1, !tbaa !13
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %88, i64 noundef %indvars.iv126)
  %108 = load i8, ptr %107, align 1, !tbaa !13
  %.not67 = icmp eq i8 %106, %108
  br i1 %.not67, label %112, label %109

109:                                              ; preds = %104
  %110 = load i64, ptr %5, align 8, !tbaa !5
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %5, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %104, %109
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %113 = load i64, ptr %3, align 8, !tbaa !5
  %114 = icmp sgt i64 %113, %indvars.iv.next127
  br i1 %114, label %96, label %._crit_edge96.loopexit, !llvm.loop !18

115:                                              ; preds = %._crit_edge98
  %116 = load i64, ptr %3, align 8, !tbaa !5
  %117 = and i64 %116, 1
  %.not65 = icmp eq i64 %117, 0
  br i1 %.not65, label %118, label %120

118:                                              ; preds = %115, %._crit_edge98
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %120

120:                                              ; preds = %115, %118
  %.in = phi ptr [ %119, %118 ], [ %5, %115 ]
  %121 = load i64, ptr %.in, align 8, !tbaa !5
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %121)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br i1 %91, label %.loopexit73, label %.preheader72.preheader

.preheader72.preheader:                           ; preds = %120
  %123 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %90, i64 %89
  br label %.preheader72

.preheader72:                                     ; preds = %.preheader72.preheader, %.preheader72
  %124 = phi ptr [ %125, %.preheader72 ], [ %123, %.preheader72.preheader ]
  %125 = getelementptr inbounds i8, ptr %124, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %125) #7
  %126 = icmp eq ptr %125, %90
  br i1 %126, label %.loopexit73, label %.preheader72

.loopexit73:                                      ; preds = %.preheader72, %120
  br i1 %20, label %.loopexit71, label %.preheader70.preheader

.preheader70.preheader:                           ; preds = %.loopexit73
  %127 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 %.lcssa80
  br label %.preheader70

.preheader70:                                     ; preds = %.preheader70.preheader, %.preheader70
  %128 = phi ptr [ %129, %.preheader70 ], [ %127, %.preheader70.preheader ]
  %129 = getelementptr inbounds i8, ptr %128, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %129) #7
  %130 = icmp eq ptr %129, %19
  br i1 %130, label %.loopexit71, label %.preheader70

.loopexit71:                                      ; preds = %.preheader70, %.loopexit73
  br i1 %10, label %.loopexit69, label %.preheader68.preheader

.preheader68.preheader:                           ; preds = %.loopexit71
  %131 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %9, i64 %7
  br label %.preheader68

.preheader68:                                     ; preds = %.preheader68.preheader, %.preheader68
  %132 = phi ptr [ %133, %.preheader68 ], [ %131, %.preheader68.preheader ]
  %133 = getelementptr inbounds i8, ptr %132, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %133) #7
  %134 = icmp eq ptr %133, %9
  br i1 %134, label %.loopexit69, label %.preheader68

.loopexit69:                                      ; preds = %.preheader68, %.loopexit71
  call void @llvm.stackrestore.p0(ptr %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %135 = phi ptr [ %136, %.preheader ], [ %28, %.preheader.preheader ]
  %136 = getelementptr inbounds i8, ptr %135, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %136) #7
  %137 = icmp eq ptr %136, %9
  br i1 %137, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %27
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

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


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