; LLVM IR from ADJA/algos :: Strings (ManacherPalindromes)

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

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

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@n = external dso_local global i32, align 4
@odd = external dso_local global [105000 x i32], align 16
@even = external dso_local global [105000 x i32], align 16
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@ans = external dso_local global i64, align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = load ptr, ptr @stdin, align 8, !tbaa !5
  %10 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.2, ptr noundef %9)
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %13

12:                                               ; preds = %0
  br label %15

13:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 37, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

14:                                               ; No predecessors!
  br label %15

15:                                               ; preds = %14, %12
  %16 = load ptr, ptr @stdout, align 8, !tbaa !5
  %17 = call ptr @freopen(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %16)
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  br label %22

20:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 38, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  %23 = call 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) @_Z1sB5cxx11)
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #9
  %25 = trunc i64 %24 to i32
  store i32 %25, ptr @n, align 4, !tbaa !9
  store i32 -1, ptr @r, align 4, !tbaa !9
  store i32 -1, ptr @l, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %103, %22
  %27 = load i32, ptr %2, align 4, !tbaa !9
  %28 = load i32, ptr @n, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 1, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = load i32, ptr @r, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %49

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  %36 = load i32, ptr @r, align 4, !tbaa !9
  %37 = load i32, ptr %2, align 4, !tbaa !9
  %38 = sub nsw i32 %36, %37
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %4, align 4, !tbaa !9
  %40 = load i32, ptr @l, align 4, !tbaa !9
  %41 = load i32, ptr @r, align 4, !tbaa !9
  %42 = add nsw i32 %40, %41
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = sub nsw i32 %42, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %45
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = load i32, ptr %47, align 4, !tbaa !9
  store i32 %48, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %49

49:                                               ; preds = %35, %31
  br label %50

50:                                               ; preds = %79, %49
  %51 = load i32, ptr %2, align 4, !tbaa !9
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr @n, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %77

56:                                               ; preds = %50
  %57 = load i32, ptr %2, align 4, !tbaa !9
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = sub nsw i32 %57, %58
  %60 = icmp sge i32 %59, 0
  br i1 %60, label %61, label %77

61:                                               ; preds = %56
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = sub nsw i32 %62, %63
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %65)
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = load i32, ptr %2, align 4, !tbaa !9
  %70 = load i32, ptr %3, align 4, !tbaa !9
  %71 = add nsw i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %72)
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %68, %75
  br label %77

77:                                               ; preds = %61, %56, %50
  %78 = phi i1 [ false, %56 ], [ false, %50 ], [ %76, %61 ]
  br i1 %78, label %79, label %82

79:                                               ; preds = %77
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %3, align 4, !tbaa !9
  br label %50, !llvm.loop !12

82:                                               ; preds = %77
  %83 = load i32, ptr %3, align 4, !tbaa !9
  %84 = load i32, ptr %2, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %85
  store i32 %83, ptr %86, align 4, !tbaa !9
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %88 = load i32, ptr %3, align 4, !tbaa !9
  %89 = add nsw i32 %87, %88
  %90 = sub nsw i32 %89, 1
  %91 = load i32, ptr @r, align 4, !tbaa !9
  %92 = icmp sgt i32 %90, %91
  br i1 %92, label %93, label %102

93:                                               ; preds = %82
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = load i32, ptr %3, align 4, !tbaa !9
  %96 = sub nsw i32 %94, %95
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr @l, align 4, !tbaa !9
  %98 = load i32, ptr %2, align 4, !tbaa !9
  %99 = load i32, ptr %3, align 4, !tbaa !9
  %100 = add nsw i32 %98, %99
  %101 = sub nsw i32 %100, 1
  store i32 %101, ptr @r, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %93, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %2, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %2, align 4, !tbaa !9
  br label %26, !llvm.loop !14

106:                                              ; preds = %30
  store i32 -1, ptr @r, align 4, !tbaa !9
  store i32 -1, ptr @l, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %186, %106
  %108 = load i32, ptr %5, align 4, !tbaa !9
  %109 = load i32, ptr @n, align 4, !tbaa !9
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %189

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !9
  %113 = load i32, ptr %5, align 4, !tbaa !9
  %114 = load i32, ptr @r, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %131

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %117 = load i32, ptr @r, align 4, !tbaa !9
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = sub nsw i32 %117, %118
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %7, align 4, !tbaa !9
  %121 = load i32, ptr @l, align 4, !tbaa !9
  %122 = load i32, ptr @r, align 4, !tbaa !9
  %123 = add nsw i32 %121, %122
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = sub nsw i32 %123, %124
  %126 = add nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %127
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %128)
  %130 = load i32, ptr %129, align 4, !tbaa !9
  store i32 %130, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %131

131:                                              ; preds = %116, %112
  br label %132

132:                                              ; preds = %163, %131
  %133 = load i32, ptr %5, align 4, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  %136 = load i32, ptr @n, align 4, !tbaa !9
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %138, label %161

138:                                              ; preds = %132
  %139 = load i32, ptr %5, align 4, !tbaa !9
  %140 = sub nsw i32 %139, 1
  %141 = load i32, ptr %6, align 4, !tbaa !9
  %142 = sub nsw i32 %140, %141
  %143 = icmp sge i32 %142, 0
  br i1 %143, label %144, label %161

144:                                              ; preds = %138
  %145 = load i32, ptr %5, align 4, !tbaa !9
  %146 = sub nsw i32 %145, 1
  %147 = load i32, ptr %6, align 4, !tbaa !9
  %148 = sub nsw i32 %146, %147
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %149)
  %151 = load i8, ptr %150, align 1, !tbaa !11
  %152 = sext i8 %151 to i32
  %153 = load i32, ptr %5, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = add nsw i32 %153, %154
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %156)
  %158 = load i8, ptr %157, align 1, !tbaa !11
  %159 = sext i8 %158 to i32
  %160 = icmp eq i32 %152, %159
  br label %161

161:                                              ; preds = %144, %138, %132
  %162 = phi i1 [ false, %138 ], [ false, %132 ], [ %160, %144 ]
  br i1 %162, label %163, label %166

163:                                              ; preds = %161
  %164 = load i32, ptr %6, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %6, align 4, !tbaa !9
  br label %132, !llvm.loop !15

166:                                              ; preds = %161
  %167 = load i32, ptr %6, align 4, !tbaa !9
  %168 = load i32, ptr %5, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %169
  store i32 %167, ptr %170, align 4, !tbaa !9
  %171 = load i32, ptr %5, align 4, !tbaa !9
  %172 = load i32, ptr %6, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  %174 = sub nsw i32 %173, 1
  %175 = load i32, ptr @r, align 4, !tbaa !9
  %176 = icmp sgt i32 %174, %175
  br i1 %176, label %177, label %185

177:                                              ; preds = %166
  %178 = load i32, ptr %5, align 4, !tbaa !9
  %179 = load i32, ptr %6, align 4, !tbaa !9
  %180 = sub nsw i32 %178, %179
  store i32 %180, ptr @l, align 4, !tbaa !9
  %181 = load i32, ptr %5, align 4, !tbaa !9
  %182 = load i32, ptr %6, align 4, !tbaa !9
  %183 = add nsw i32 %181, %182
  %184 = sub nsw i32 %183, 1
  store i32 %184, ptr @r, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %177, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %5, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %5, align 4, !tbaa !9
  br label %107, !llvm.loop !16

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

190:                                              ; preds = %225, %189
  %191 = load i32, ptr %8, align 4, !tbaa !9
  %192 = load i32, ptr @n, align 4, !tbaa !9
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %228

195:                                              ; preds = %190
  %196 = load i32, ptr %8, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = icmp sgt i32 %199, 1
  br i1 %200, label %201, label %210

201:                                              ; preds = %195
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = load i64, ptr @ans, align 8, !tbaa !17
  %209 = add nsw i64 %208, %207
  store i64 %209, ptr @ans, align 8, !tbaa !17
  br label %210

210:                                              ; preds = %201, %195
  %211 = load i32, ptr %8, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %224

216:                                              ; preds = %210
  %217 = load i32, ptr %8, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = load i64, ptr @ans, align 8, !tbaa !17
  %223 = add nsw i64 %222, %221
  store i64 %223, ptr @ans, align 8, !tbaa !17
  br label %224

224:                                              ; preds = %216, %210
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %8, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %8, align 4, !tbaa !9
  br label %190, !llvm.loop !19

228:                                              ; preds = %194
  %229 = load i64, ptr @ans, align 8, !tbaa !17
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %229)
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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)) #3

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

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

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

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

; 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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #7 align 2

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

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

attributes #0 = { mustprogress 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 #1 = { "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 = { noreturn 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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = distinct !{!19, !13}


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

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

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@n = external dso_local local_unnamed_addr global i32, align 4
@odd = external dso_local global [105000 x i32], align 16
@even = external dso_local global [105000 x i32], align 16
@l = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i64, align 8
@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = load ptr, ptr @stdin, align 8, !tbaa !5
  %4 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, ptr noundef %3)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 37, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

6:                                                ; preds = %0
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  %8 = tail call ptr @freopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef %7)
  %.not65 = icmp eq ptr %8, null
  br i1 %.not65, label %9, label %10

9:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 38, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

10:                                               ; preds = %6
  %11 = tail call 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) @_Z1sB5cxx11)
  %12 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #9
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr @n, align 4, !tbaa !9
  store i32 -1, ptr @r, align 4, !tbaa !9
  store i32 -1, ptr @l, align 4, !tbaa !9
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph79, label %.preheader.thread

._crit_edge:                                      ; preds = %.critedge._crit_edge
  store i32 -1, ptr @r, align 4, !tbaa !9
  store i32 -1, ptr @l, align 4, !tbaa !9
  %15 = icmp sgt i32 %59, 0
  br i1 %15, label %.lr.ph94, label %.preheader.thread

.lr.ph79:                                         ; preds = %10, %.critedge._crit_edge
  %16 = phi i32 [ %59, %.critedge._crit_edge ], [ %13, %10 ]
  %17 = phi i32 [ %58, %.critedge._crit_edge ], [ -1, %10 ]
  %indvars.iv = phi i64 [ %54, %.critedge._crit_edge ], [ 0, %10 ]
  %.056.neg78 = phi i32 [ %63, %.critedge._crit_edge ], [ 0, %10 ]
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv, %18
  br i1 %19, label %20, label %30

20:                                               ; preds = %.lr.ph79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %21 = add nsw i32 %.056.neg78, 1
  %22 = add i32 %21, %17
  store i32 %22, ptr %1, align 4, !tbaa !9
  %23 = load i32, ptr @l, align 4, !tbaa !9
  %24 = add i32 %17, %.056.neg78
  %25 = add i32 %24, %23
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %26
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %29 = load i32, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  %.pre = load i32, ptr @n, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %20, %.lr.ph79
  %31 = phi i32 [ %.pre, %20 ], [ %16, %.lr.ph79 ]
  %.054 = phi i32 [ %29, %20 ], [ 1, %.lr.ph79 ]
  %32 = trunc nuw nsw i64 %indvars.iv to i32
  %33 = add nsw i32 %.054, %32
  %34 = icmp slt i32 %33, %31
  br i1 %34, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %30
  %35 = sext i32 %.054 to i64
  %36 = add nsw i64 %indvars.iv, %35
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %45
  %indvars.iv102 = phi i64 [ %35, %.lr.ph.preheader ], [ %indvars.iv.next103, %45 ]
  %indvars.iv100 = phi i64 [ %36, %.lr.ph.preheader ], [ %indvars.iv.next101, %45 ]
  %37 = sub nsw i64 %indvars.iv, %indvars.iv102
  %38 = icmp sgt i64 %37, -1
  br i1 %38, label %39, label %.critedge.loopexit

39:                                               ; preds = %.lr.ph
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %37)
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv100)
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = icmp eq i8 %41, %43
  br i1 %44, label %45, label %.critedge.loopexit

45:                                               ; preds = %39
  %indvars.iv.next103 = add nsw i64 %indvars.iv102, 1
  %46 = add nsw i64 %indvars.iv.next103, %indvars.iv
  %47 = load i32, ptr @n, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %46, %48
  %indvars.iv.next101 = add nsw i64 %indvars.iv100, 1
  br i1 %49, label %.lr.ph, label %.critedge.loopexit, !llvm.loop !12

.critedge.loopexit:                               ; preds = %.lr.ph, %45, %39
  %.155.lcssa.ph.in = phi i64 [ %indvars.iv102, %39 ], [ %indvars.iv.next103, %45 ], [ %indvars.iv102, %.lr.ph ]
  %.lcssa68.ph.in = phi i64 [ %indvars.iv100, %39 ], [ %46, %45 ], [ %indvars.iv100, %.lr.ph ]
  %.lcssa68.ph = trunc i64 %.lcssa68.ph.in to i32
  %.155.lcssa.ph = trunc i64 %.155.lcssa.ph.in to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %30
  %.155.lcssa = phi i32 [ %.054, %30 ], [ %.155.lcssa.ph, %.critedge.loopexit ]
  %.lcssa68 = phi i32 [ %33, %30 ], [ %.lcssa68.ph, %.critedge.loopexit ]
  %50 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %indvars.iv
  store i32 %.155.lcssa, ptr %50, align 4, !tbaa !9
  %51 = add nsw i32 %.lcssa68, -1
  %52 = load i32, ptr @r, align 4, !tbaa !9
  %53 = icmp sgt i32 %51, %52
  %54 = add nuw nsw i64 %indvars.iv, 1
  br i1 %53, label %55, label %.critedge._crit_edge

55:                                               ; preds = %.critedge
  %56 = trunc nuw nsw i64 %54 to i32
  %57 = sub i32 %56, %.155.lcssa
  store i32 %57, ptr @l, align 4, !tbaa !9
  store i32 %51, ptr @r, align 4, !tbaa !9
  br label %.critedge._crit_edge

.critedge._crit_edge:                             ; preds = %.critedge, %55
  %58 = phi i32 [ %51, %55 ], [ %52, %.critedge ]
  %59 = load i32, ptr @n, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %54, %60
  %62 = trunc i64 %indvars.iv to i32
  %63 = xor i32 %62, -1
  br i1 %61, label %.lr.ph79, label %._crit_edge, !llvm.loop !14

.preheader.thread:                                ; preds = %10, %._crit_edge
  %ans.promoted126 = load i64, ptr @ans, align 8, !tbaa !15
  br label %._crit_edge98

.preheader:                                       ; preds = %107
  %ans.promoted = load i64, ptr @ans, align 8, !tbaa !15
  %64 = icmp sgt i32 %109, 0
  br i1 %64, label %.lr.ph97.preheader, label %._crit_edge98

.lr.ph97.preheader:                               ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %109 to i64
  br label %.lr.ph97

.lr.ph94:                                         ; preds = %._crit_edge, %107
  %65 = phi i32 [ %109, %107 ], [ %59, %._crit_edge ]
  %66 = phi i32 [ %108, %107 ], [ -1, %._crit_edge ]
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %107 ], [ 0, %._crit_edge ]
  %.053.neg92 = phi i32 [ %113, %107 ], [ 0, %._crit_edge ]
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv109, %67
  br i1 %68, label %69, label %78

69:                                               ; preds = %.lr.ph94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %70 = add nsw i32 %.053.neg92, 1
  %71 = add i32 %70, %66
  store i32 %71, ptr %2, align 4, !tbaa !9
  %72 = load i32, ptr @l, align 4, !tbaa !9
  %73 = add i32 %71, %72
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %74
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = load i32, ptr %76, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %.pre123 = load i32, ptr @n, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %69, %.lr.ph94
  %79 = phi i32 [ %.pre123, %69 ], [ %65, %.lr.ph94 ]
  %.052 = phi i32 [ %77, %69 ], [ 0, %.lr.ph94 ]
  %80 = trunc nuw nsw i64 %indvars.iv109 to i32
  %81 = add nsw i32 %.052, %80
  %82 = icmp slt i32 %81, %79
  br i1 %82, label %.lr.ph82.preheader, label %.critedge2

.lr.ph82.preheader:                               ; preds = %78
  %83 = sext i32 %.052 to i64
  %84 = add nsw i64 %indvars.iv109, %83
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %96
  %indvars.iv113 = phi i64 [ %83, %.lr.ph82.preheader ], [ %indvars.iv.next114, %96 ]
  %indvars.iv111 = phi i64 [ %84, %.lr.ph82.preheader ], [ %indvars.iv.next112, %96 ]
  %85 = trunc nsw i64 %indvars.iv113 to i32
  %86 = xor i32 %85, -1
  %87 = add i32 %80, %86
  %88 = icmp sgt i32 %87, -1
  br i1 %88, label %89, label %.critedge2.loopexit

89:                                               ; preds = %.lr.ph82
  %90 = zext nneg i32 %87 to i64
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %90)
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv111)
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = icmp eq i8 %92, %94
  br i1 %95, label %96, label %.critedge2.loopexit

96:                                               ; preds = %89
  %indvars.iv.next114 = add nsw i64 %indvars.iv113, 1
  %97 = add nsw i64 %indvars.iv.next114, %indvars.iv109
  %98 = load i32, ptr @n, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %97, %99
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, 1
  br i1 %100, label %.lr.ph82, label %.critedge2.loopexit.split.loop.exit130, !llvm.loop !17

.critedge2.loopexit.split.loop.exit130:           ; preds = %96
  %indvars116.le = trunc i64 %indvars.iv.next114 to i32
  br label %.critedge2.loopexit

.critedge2.loopexit:                              ; preds = %89, %.lr.ph82, %.critedge2.loopexit.split.loop.exit130
  %.1.lcssa.ph = phi i32 [ %indvars116.le, %.critedge2.loopexit.split.loop.exit130 ], [ %85, %.lr.ph82 ], [ %85, %89 ]
  %.lcssa.ph.in = phi i64 [ %97, %.critedge2.loopexit.split.loop.exit130 ], [ %indvars.iv111, %.lr.ph82 ], [ %indvars.iv111, %89 ]
  %.lcssa.ph = trunc i64 %.lcssa.ph.in to i32
  br label %.critedge2

.critedge2:                                       ; preds = %.critedge2.loopexit, %78
  %.1.lcssa = phi i32 [ %.052, %78 ], [ %.1.lcssa.ph, %.critedge2.loopexit ]
  %.lcssa = phi i32 [ %81, %78 ], [ %.lcssa.ph, %.critedge2.loopexit ]
  %101 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %indvars.iv109
  store i32 %.1.lcssa, ptr %101, align 4, !tbaa !9
  %102 = add nsw i32 %.lcssa, -1
  %103 = load i32, ptr @r, align 4, !tbaa !9
  %104 = icmp sgt i32 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %.critedge2
  %106 = sub nsw i32 %80, %.1.lcssa
  store i32 %106, ptr @l, align 4, !tbaa !9
  store i32 %102, ptr @r, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %105, %.critedge2
  %108 = phi i32 [ %102, %105 ], [ %103, %.critedge2 ]
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %109 = load i32, ptr @n, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next110, %110
  %112 = trunc i64 %indvars.iv109 to i32
  %113 = xor i32 %112, -1
  br i1 %111, label %.lr.ph94, label %.preheader, !llvm.loop !18

._crit_edge98:                                    ; preds = %132, %.preheader.thread, %.preheader
  %114 = phi i64 [ %ans.promoted, %.preheader ], [ %ans.promoted126, %.preheader.thread ], [ %133, %132 ]
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %114)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %132
  %indvars.iv120 = phi i64 [ 0, %.lr.ph97.preheader ], [ %indvars.iv.next121, %132 ]
  %117 = phi i64 [ %ans.promoted, %.lr.ph97.preheader ], [ %133, %132 ]
  %118 = getelementptr inbounds [105000 x i32], ptr @odd, i64 0, i64 %indvars.iv120
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp sgt i32 %119, 1
  br i1 %120, label %121, label %125

121:                                              ; preds = %.lr.ph97
  %122 = add nsw i32 %119, -1
  %123 = zext nneg i32 %122 to i64
  %124 = add nsw i64 %117, %123
  store i64 %124, ptr @ans, align 8, !tbaa !15
  br label %125

125:                                              ; preds = %121, %.lr.ph97
  %126 = phi i64 [ %124, %121 ], [ %117, %.lr.ph97 ]
  %127 = getelementptr inbounds [105000 x i32], ptr @even, i64 0, i64 %indvars.iv120
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %.not66 = icmp eq i32 %128, 0
  br i1 %.not66, label %132, label %129

129:                                              ; preds = %125
  %130 = sext i32 %128 to i64
  %131 = add nsw i64 %126, %130
  store i64 %131, ptr @ans, align 8, !tbaa !15
  br label %132

132:                                              ; preds = %125, %129
  %133 = phi i64 [ %126, %125 ], [ %131, %129 ]
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge98, label %.lr.ph97, !llvm.loop !19
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 #3

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

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

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

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

; 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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #7 align 2

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

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

attributes #0 = { mustprogress 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 #1 = { "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 = { noreturn 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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}


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