task_id
stringlengths
5
7
prompt
stringlengths
133
1.35k
declaration
stringlengths
111
411
canonical_solution
stringlengths
18
1.4k
test
stringlengths
148
1.76k
example_test
stringlengths
0
679
llvm_ir
stringlengths
910
153k
wat
stringlengths
404
165k
CPP/101
/* You will be given a string of words separated by commas or spaces. Your task is to split the string into words and return a vector of the words. For example: words_string("Hi, my name is John") == {"Hi", "my", "name", "is", "John"} words_string("One, two, three, four, five, six") == {"One", 'two", 'three", "four", "five", 'six"} */ #include<stdio.h> #include<vector> #include<string> using namespace std; vector<string> words_string(string s){
#include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> vector<string> words_string(string s){
string current=""; vector<string> out={}; s=s+' '; for (int i=0;i<s.length();i++) if (s[i]==' ' or s[i]==',') { if (current.length()>0) { out.push_back(current); current=""; } } else current=current+s[i]; return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(words_string("Hi, my name is John") , {"Hi", "my", "name", "is", "John"})); assert (issame(words_string("One, two, three, four, five, six") , {"One", "two", "three", "four", "five", "six"})); assert (issame(words_string("Hi, my name") , {"Hi", "my", "name"})); assert (issame(words_string("One,, two, three, four, five, six,") , {"One", "two", "three", "four", "five", "six"})); assert (issame(words_string("") , {})); assert (issame(words_string("ahmed , gamal") , {"ahmed", "gamal"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(words_string("Hi, my name is John") , {"Hi", "my", "name", "is", "John"})); assert (issame(words_string("One, two, three, four, five, six") , {"One", "two", "three", "four", "five", "six"})); }
; ModuleID = 'c_code/code_100.cpp' source_filename = "c_code/code_100.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator.4" = type { i8 } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.2 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z12words_stringNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #18 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 store ptr null, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %7, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %8, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 32) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %4) #20 %9 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #18 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %11 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %14 14: ; preds = %38, %2 %15 = phi i32 [ 0, %2 ], [ %39, %38 ] %16 = load i8, ptr %10, align 1 %17 = icmp slt i8 %16, 0 %18 = load i32, ptr %11, align 4 %19 = zext i8 %16 to i32 %20 = select i1 %17, i32 %18, i32 %19 %21 = icmp ult i32 %15, %20 br i1 %21, label %22, label %40 22: ; preds = %14 %23 = load ptr, ptr %1, align 4 %24 = select i1 %17, ptr %23, ptr %1 %25 = getelementptr inbounds i8, ptr %24, i32 %15 %26 = load i8, ptr %25, align 1, !tbaa !12 switch i8 %26, label %36 [ i8 32, label %27 i8 44, label %27 ] 27: ; preds = %22, %22 %28 = load i8, ptr %12, align 1 %29 = icmp slt i8 %28, 0 %30 = load i32, ptr %13, align 4 %31 = zext i8 %28 to i32 %32 = select i1 %29, i32 %30, i32 %31 %33 = icmp eq i32 %32, 0 br i1 %33, label %38, label %34 34: ; preds = %27 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3) #19 %35 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 br label %38 36: ; preds = %22 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %26) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %37 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #18 br label %38 38: ; preds = %36, %34, %27 %39 = add nuw nsw i32 %15, 1 br label %14, !llvm.loop !13 40: ; preds = %14 %41 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #18 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #19 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator.4", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #18 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #18 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !15 store i8 %2, ptr %24, align 1, !tbaa !12 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !12 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !26 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #5 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #6 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #21 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #18 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #19 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #19 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !27 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #18 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #20 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #22 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #12 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #23 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !12 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !12 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #13 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !12 tail call void @_ZdlPv(ptr noundef %7) #24 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !29 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !12 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #19 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !32 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %24 = load ptr, ptr %21, align 4, !tbaa !32 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !32 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #19 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #20 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #18 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !29 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !12 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !12 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #19 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !26 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !26 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #19, !noalias !36 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !39 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !32 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !40 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !26 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !40 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #19 store ptr %9, ptr %7, align 4, !tbaa !40 %10 = load ptr, ptr %0, align 4, !tbaa !26 store ptr %9, ptr %0, align 4, !tbaa !26 store ptr %10, ptr %7, align 4, !tbaa !26 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !26 %13 = load ptr, ptr %11, align 4, !tbaa !26 store ptr %13, ptr %4, align 4, !tbaa !26 store ptr %12, ptr %11, align 4, !tbaa !26 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !26 %16 = load ptr, ptr %14, align 4, !tbaa !26 store ptr %16, ptr %3, align 4, !tbaa !26 store ptr %15, ptr %14, align 4, !tbaa !26 %17 = load ptr, ptr %7, align 4, !tbaa !40 store ptr %17, ptr %1, align 4, !tbaa !39 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #9 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #20 %2 = load ptr, ptr %0, align 4, !tbaa !39 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #24 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #21 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #15 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #21 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #23 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !26 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !41 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !42 store i8 1, ptr %19, align 4, !tbaa !44 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #9 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !44, !range !48, !noundef !49 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !50 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !51 %5 = load ptr, ptr %4, align 4, !tbaa.struct !52 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !53 %8 = load ptr, ptr %7, align 4, !tbaa.struct !52 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #15 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !54 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #16 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !40 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #20 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !32 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !32 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !55 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1) #19 ret ptr %4 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #6 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #14 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { nounwind } attributes #19 = { minsize optsize } attributes #20 = { minsize nounwind optsize } attributes #21 = { minsize noreturn optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize optsize allocsize(0) } attributes #24 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!6, !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = !{!16, !18, !20, !22, !24} !16 = distinct !{!16, !17, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !17 = distinct !{!17, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !18 = distinct !{!18, !19, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !19 = distinct !{!19, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !20 = distinct !{!20, !21, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !21 = distinct !{!21, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !22 = distinct !{!22, !23, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !23 = distinct !{!23, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !24 = distinct !{!24, !25, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !26 = !{!5, !5, i64 0} !27 = !{!28, !28, i64 0} !28 = !{!"vtable pointer", !7, i64 0} !29 = !{i64 0, i64 4, !26, i64 4, i64 4, !30, i64 8, i64 4, !30, i64 11, i64 4, !30, i64 0, i64 11, !12, i64 11, i64 0, !12, i64 11, i64 1, !12, i64 11, i64 1, !12, i64 0, i64 12, !12} !30 = !{!31, !31, i64 0} !31 = !{!"long", !6, i64 0} !32 = !{!33, !5, i64 8} !33 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !34, i64 12} !34 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !9, i64 0, !35, i64 4} !35 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !36 = !{!37} !37 = distinct !{!37, !38, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !38 = distinct !{!38, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !39 = !{!33, !5, i64 0} !40 = !{!33, !5, i64 4} !41 = distinct !{!41, !14} !42 = !{!43, !5, i64 0} !43 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !44 = !{!45, !47, i64 12} !45 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !46, i64 0, !47, i64 12} !46 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !47 = !{!"bool", !6, i64 0} !48 = !{i8 0, i8 2} !49 = !{} !50 = !{!46, !5, i64 0} !51 = !{!46, !5, i64 8} !52 = !{i64 0, i64 4, !26} !53 = !{!46, !5, i64 4} !54 = distinct !{!54, !14} !55 = distinct !{!55, !14}
(module $code_100.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 2))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 2))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 3))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $words_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 1) (param i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 i32.const 20 i32.add global.get $__memory_base i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 3 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 4 i32.const 8 i32.add local.tee 2 local.get 1 i32.const 32 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 1 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.get 5 i32.gt_u if ;; label = @2 block ;; label = @3 local.get 1 i32.load local.get 1 local.get 2 select local.get 5 i32.add i32.load8_u local.tee 2 i32.const 44 i32.ne local.get 2 i32.const 32 i32.ne i32.and i32.eqz if ;; label = @4 local.get 3 i32.load offset=4 local.get 3 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s select i32.eqz br_if 1 (;@3;) block ;; label = @5 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @6 local.get 0 local.get 3 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@5;) end local.get 0 local.get 3 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end local.get 3 global.get $__memory_base i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ drop br 1 (;@3;) end local.get 4 i32.const 8 i32.add local.tee 6 local.get 3 local.get 2 i32.extend8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 6 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 6 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 5 i32.const 1 i32.add local.set 5 br 1 (;@1;) end end local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 4 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ (type 3) (param i32 i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer block (result i32) ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 i32.const 1 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 3 i32.store8 offset=11 local.get 0 br 2 (;@1;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 6 call $operator_new_unsigned_long_ local.set 7 local.get 0 local.get 3 i32.store offset=4 local.get 0 local.get 7 i32.store local.get 0 local.get 6 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 br 1 (;@1;) end global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.tee 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add local.tee 0 local.get 2 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 5 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 1) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 3 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 4 i32.const 1 i32.shl local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 178956970 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 12 i32.mul call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 3 local.get 0 i32.load local.set 1 local.get 2 i32.load offset=16 local.set 5 global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 local.get 5 i32.store offset=24 local.get 4 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 4 local.get 4 i32.const 28 i32.add i32.store offset=16 local.get 4 local.get 4 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 3 i32.ne if ;; label = @2 local.get 5 i32.const 12 i32.sub local.tee 5 local.get 3 i32.const 12 i32.sub local.tee 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 4 i32.const 1 i32.store8 offset=20 local.get 4 local.get 5 i32.store offset=28 local.get 4 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 3 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 3 i32.ne if ;; label = @3 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 3 br 1 (;@2;) end end end local.get 4 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 5 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 5 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 4) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z12words_stringNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $words_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00"))
CPP/102
/* This function takes two positive numbers x and y and returns the biggest even integer number that is in the range [x, y] inclusive. If there's no such number, then the function should return -1. For example: choose_num(12, 15) = 14 choose_num(13, 12) = -1 */ #include<stdio.h> using namespace std; int choose_num(int x,int y){
#include<stdio.h> #include<math.h> using namespace std; #include<algorithm> #include<stdlib.h> int choose_num(int x,int y){
if (y<x) return -1; if (y==x and y%2==1) return -1; if (y%2==1) return y-1; return y; }
#undef NDEBUG #include<assert.h> int main(){ assert (choose_num(12, 15) == 14); assert (choose_num(13, 12) == -1); assert (choose_num(33, 12354) == 12354); assert (choose_num(5234, 5233) == -1); assert (choose_num(6, 29) == 28); assert (choose_num(27, 10) == -1); assert (choose_num(7, 7) == -1); assert (choose_num(546, 546) == 546); }
#undef NDEBUG #include<assert.h> int main(){ assert (choose_num(12, 15) == 14); assert (choose_num(13, 12) == -1); }
; ModuleID = 'c_code/code_101.cpp' source_filename = "c_code/code_101.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) define noundef i32 @_Z10choose_numii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 { %3 = icmp slt i32 %1, %0 br i1 %3, label %12, label %4 4: ; preds = %2 %5 = icmp eq i32 %1, %0 %6 = and i32 %1, -2147483647 %7 = icmp eq i32 %6, 1 %8 = and i1 %5, %7 br i1 %8, label %12, label %9 9: ; preds = %4 %10 = sext i1 %7 to i32 %11 = add nsw i32 %10, %1 br label %12 12: ; preds = %9, %4, %2 %13 = phi i32 [ -1, %2 ], [ -1, %4 ], [ %11, %9 ] ret i32 %13 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"}
(module $code_101.wasm (type (;0;) (func)) (type (;1;) (func (param i32 i32) (result i32))) (func $__wasm_call_ctors (type 0)) (func $choose_num_int__int_ (type 1) (param i32 i32) (result i32) (local i32) i32.const -1 local.set 2 block ;; label = @1 local.get 0 local.get 1 i32.gt_s br_if 0 (;@1;) local.get 0 local.get 1 i32.eq local.get 1 i32.const -2147483647 i32.and i32.const 1 i32.eq local.tee 0 i32.and br_if 0 (;@1;) local.get 1 local.get 0 i32.sub local.set 2 end local.get 2) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10choose_numii" (func $choose_num_int__int_)))
CPP/103
/* You are given two positive integers n and m, and your task is to compute the average of the integers from n through m (including n and m). Round the answer to the nearest integer(smaller one) and convert that to binary. If n is greater than m, return "-1". Example: rounded_avg(1, 5) => "11" rounded_avg(7, 5) => "-1" rounded_avg(10, 20) => "1111" rounded_avg(20, 33) => "11010" */ #include<stdio.h> #include<math.h> #include<string> using namespace std; string rounded_avg(int n,int m){
#include<stdio.h> #include<math.h> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> string rounded_avg(int n,int m){
if (n>m) return "-1"; int num=(m+n)/2; string out=""; while (num>0) { out=to_string(num%2)+out; num=num/2; } return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (rounded_avg(1, 5) == "11"); assert (rounded_avg(7, 13) == "1010"); assert (rounded_avg(964,977) == "1111001010"); assert (rounded_avg(996,997) == "1111100100"); assert (rounded_avg(560,851) == "1011000001"); assert (rounded_avg(185,546) == "101101101"); assert (rounded_avg(362,496) == "110101101"); assert (rounded_avg(350,902) == "1001110010"); assert (rounded_avg(197,233) == "11010111"); assert (rounded_avg(7, 5) == "-1"); assert (rounded_avg(5, 1) == "-1"); assert (rounded_avg(5, 5) == "101"); }
#undef NDEBUG #include<assert.h> int main(){ assert (rounded_avg(1, 5) == "11"); assert (rounded_avg(7, 5) == "-1"); assert (rounded_avg(10,20) == "1111"); assert (rounded_avg(20,33) == "11010"); }
; ModuleID = 'c_code/code_102.cpp' source_filename = "c_code/code_102.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any @.str = private unnamed_addr constant [3 x i8] c"-1\00", align 1 @.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 ; Function Attrs: minsize mustprogress optsize define void @_Z11rounded_avgii(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 { %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = icmp sgt i32 %1, %2 br i1 %6, label %7, label %9 7: ; preds = %3 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #11 br label %21 9: ; preds = %3 %10 = add nsw i32 %2, %1 %11 = sdiv i32 %10, 2 %12 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str.1) #11 br label %13 13: ; preds = %16, %9 %14 = phi i32 [ %11, %9 ], [ %20, %16 ] %15 = icmp sgt i32 %14, 0 br i1 %15, label %16, label %21 16: ; preds = %13 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #12 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #12 %17 = and i32 %14, 1 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, i32 noundef %17) #11 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %0) #11 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4) #13 %18 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #13 %19 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #13 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #12 %20 = lshr i32 %14, 1 br label %13, !llvm.loop !3 21: ; preds = %13, %7 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #13 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #11 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #3 comdat { %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #11 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, i8 0, i32 12, i1 false) ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #1 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = load ptr, ptr %1, align 4 %7 = select i1 %5, ptr %6, ptr %1 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %4 to i32 %11 = select i1 %5, i32 %9, i32 %10 %12 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %7, i32 noundef %11) #11 ret ptr %12 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #1 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #8 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #9 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #10 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !5 tail call void @_ZdlPv(ptr noundef %7) #14 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !8 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !5 ret void } attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #10 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize optsize } attributes #12 = { nounwind } attributes #13 = { minsize nounwind optsize } attributes #14 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = distinct !{!3, !4} !4 = !{!"llvm.loop.mustprogress"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{i64 0, i64 4, !9, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 11, i64 4, !11, i64 0, i64 11, !5, i64 11, i64 0, !5, i64 11, i64 1, !5, i64 11, i64 1, !5, i64 0, i64 12, !5} !9 = !{!10, !10, i64 0} !10 = !{!"any pointer", !6, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"long", !6, i64 0}
(module $code_102.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ (type 4))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $rounded_avg_int__int_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer block ;; label = @1 local.get 1 local.get 2 i32.gt_s if ;; label = @2 local.get 0 global.get $__memory_base call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop br 1 (;@1;) end local.get 1 local.get 2 i32.add i32.const 2 i32.div_s local.set 2 local.get 0 global.get $__memory_base i32.const 2 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 0 loop ;; label = @2 local.get 2 i32.const 0 i32.le_s br_if 1 (;@1;) local.get 4 i32.const 8 i32.add local.tee 5 local.get 2 i32.const 1 i32.and call $std::__2::to_string_int_ local.get 4 i32.const 20 i32.add local.tee 1 local.get 5 local.get 0 i32.load local.get 0 local.get 0 i32.load8_u offset=11 local.tee 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.get 0 i32.load offset=4 local.get 3 local.get 6 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ local.tee 3 i64.load align=4 i64.store align=4 local.get 1 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @3 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8 local.get 2 i32.const 1 i32.shr_u local.set 2 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 0 (;@2;) end unreachable end local.get 4 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z11rounded_avgii" (func $rounded_avg_int__int_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "-1\00"))
CPP/104
/* Given a vector of positive integers x. return a sorted vector of all elements that hasn't any even digit. Note: Returned vector should be sorted in increasing order. For example: >>> unique_digits({15, 33, 1422, 1}) {1, 15, 33} >>> unique_digits({152, 323, 1422, 10}) {} */ #include<stdio.h> #include<vector> #include<algorithm> using namespace std; vector<int> unique_digits(vector<int> x){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> unique_digits(vector<int> x){
vector<int> out={}; for (int i=0;i<x.size();i++) { int num=x[i]; bool u=true; if (num==0) u=false; while (num>0 and u) { if (num%2==0) u=false; num=num/10; } if (u) out.push_back(x[i]); } sort(out.begin(),out.end()); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(unique_digits({15, 33, 1422, 1}) , {1, 15, 33})); assert (issame(unique_digits({152, 323, 1422, 10}) , {})); assert (issame(unique_digits({12345, 2033, 111, 151}) , {111, 151})); assert (issame(unique_digits({135, 103, 31}) , {31, 135})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(unique_digits({15, 33, 1422, 1}) , {1, 15, 33})); assert (issame(unique_digits({152, 323, 1422, 10}) , {})); }
; ModuleID = 'c_code/code_103.cpp' source_filename = "c_code/code_103.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } %"struct.std::__2::__less.3" = type { i8 } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_ = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z13unique_digitsNSt3__26vectorIiNS_9allocatorIiEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { store ptr null, ptr %0, align 4, !tbaa !3 %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %3, align 4, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %4, align 4, !tbaa !11 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 br label %6 6: ; preds = %32, %2 %7 = phi i32 [ 0, %2 ], [ %33, %32 ] %8 = load ptr, ptr %5, align 4, !tbaa !10 %9 = load ptr, ptr %1, align 4, !tbaa !3 %10 = ptrtoint ptr %8 to i32 %11 = ptrtoint ptr %9 to i32 %12 = sub i32 %10, %11 %13 = ashr exact i32 %12, 2 %14 = icmp ult i32 %7, %13 br i1 %14, label %18, label %15 15: ; preds = %6 %16 = load ptr, ptr %0, align 4, !tbaa !3 %17 = load ptr, ptr %3, align 4, !tbaa !10 tail call void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %16, ptr %17) #13 ret void 18: ; preds = %6 %19 = getelementptr inbounds i32, ptr %9, i32 %7 %20 = load i32, ptr %19, align 4, !tbaa !12 br label %21 21: ; preds = %27, %18 %22 = phi i32 [ %20, %18 ], [ %29, %27 ] %23 = phi i32 [ %20, %18 ], [ %28, %27 ] %24 = icmp ne i32 %23, 0 %25 = icmp sgt i32 %22, 0 %26 = select i1 %25, i1 %24, i1 false br i1 %26, label %27, label %30 27: ; preds = %21 %28 = and i32 %22, 1 %29 = udiv i32 %22, 10 br label %21, !llvm.loop !14 30: ; preds = %21 br i1 %24, label %31, label %32 31: ; preds = %30 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %19) #13 br label %32 32: ; preds = %31, %30 %33 = add nuw nsw i32 %7, 1 br label %6, !llvm.loop !16 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !17 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #13 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #14 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #13 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #13 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !18 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !18 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #13 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #14 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !17 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !17 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #13, !noalias !22 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !25 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !18 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !26 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !17 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !26 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !27 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !27 br label %8, !llvm.loop !32 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !26 %17 = load ptr, ptr %0, align 4, !tbaa !17 store ptr %10, ptr %0, align 4, !tbaa !17 store ptr %17, ptr %6, align 4, !tbaa !17 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !17 %20 = load ptr, ptr %18, align 4, !tbaa !17 store ptr %20, ptr %3, align 4, !tbaa !17 store ptr %19, ptr %18, align 4, !tbaa !17 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !17 %24 = load ptr, ptr %22, align 4, !tbaa !17 store ptr %24, ptr %21, align 4, !tbaa !17 store ptr %23, ptr %22, align 4, !tbaa !17 %25 = load ptr, ptr %6, align 4, !tbaa !26 store ptr %25, ptr %1, align 4, !tbaa !25 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #5 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #15 %2 = load ptr, ptr %0, align 4, !tbaa !25 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #14 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #13 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #13 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !33 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #5 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #8 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #16 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #7 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #14 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #15 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !26 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !18 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !18 br label %5, !llvm.loop !35 10: ; preds = %5 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %0, ptr %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__less.3", align 1 call void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #13 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #13 = { minsize optsize } attributes #14 = { nounwind } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = distinct !{!16, !15} !17 = !{!5, !5, i64 0} !18 = !{!19, !5, i64 8} !19 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !20, i64 12} !20 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !21, i64 4} !21 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !22 = !{!23} !23 = distinct !{!23, !24, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !24 = distinct !{!24, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !25 = !{!19, !5, i64 0} !26 = !{!19, !5, i64 4} !27 = !{!28, !30} !28 = distinct !{!28, !29, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !29 = distinct !{!29, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !30 = distinct !{!30, !31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !32 = distinct !{!32, !15} !33 = !{!34, !34, i64 0} !34 = !{!"vtable pointer", !7, i64 0} !35 = distinct !{!35, !15}
(module $code_103.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_" (func $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $unique_digits_std::__2::vector<int__std::__2::allocator<int>>_ (type 0) (param i32 i32) (local i32 i32 i32 i32) local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 3 i32.sub i32.const 2 i32.shr_s local.get 4 i32.gt_u if ;; label = @2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add local.tee 3 i32.load local.tee 2 local.set 5 loop ;; label = @3 local.get 5 i32.eqz local.get 2 i32.const 0 i32.le_s i32.or i32.eqz if ;; label = @4 local.get 2 i32.const 1 i32.and local.set 5 local.get 2 i32.const 10 i32.div_u local.set 2 br 1 (;@3;) end end local.get 5 if ;; label = @3 block ;; label = @4 local.get 0 i32.load offset=4 local.tee 2 local.get 0 i32.load offset=8 i32.ne if ;; label = @5 local.get 2 local.get 3 i32.load i32.store local.get 0 local.get 2 i32.const 4 i32.add i32.store offset=4 br 1 (;@4;) end local.get 0 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end end local.get 4 i32.const 1 i32.add local.set 4 br 1 (;@1;) end end local.get 0 i32.load local.get 0 i32.load offset=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 i32.const 15 i32.add call $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ local.get 0 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z13unique_digitsNSt3__26vectorIiNS_9allocatorIiEEEE" (func $unique_digits_std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/105
/* Given a vector of integers, sort the integers that are between 1 and 9 inclusive, reverse the resulting vector, and then replace each digit by its corresponding name from "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine". For example: arr = {2, 1, 1, 4, 5, 8, 2, 3} -> sort arr -> {1, 1, 2, 2, 3, 4, 5, 8} -> reverse arr -> {8, 5, 4, 3, 2, 2, 1, 1} return {"Eight", "Five", "Four", "Three", "Two", "Two", "One", "One"} If the vector is empty, return an empty vector: arr = {} return {} If the vector has any strange number ignore it: arr = {1, -1 , 55} -> sort arr -> {-1, 1, 55} -> reverse arr -> {55, 1, -1} return = {"One"} */ #include<stdio.h> #include<vector> #include<string> #include<map> #include<algorithm> using namespace std; vector<string> by_length(vector<int> arr){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<map> #include<algorithm> using namespace std; #include<stdlib.h> vector<string> by_length(vector<int> arr){
map<int,string> numto={{0,"Zero"},{1,"One"},{2,"Two"},{3,"Three"},{4,"Four"},{5,"Five"},{6,"Six"},{7,"Seven"},{8,"Eight"},{9,"Nine"}}; sort(arr.begin(),arr.end()); vector<string> out={}; for (int i=arr.size()-1;i>=0;i-=1) if (arr[i]>=1 and arr[i]<=9) out.push_back(numto[arr[i]]); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(by_length({2, 1, 1, 4, 5, 8, 2, 3}) , {"Eight", "Five", "Four", "Three", "Two", "Two", "One", "One"})); assert (issame(by_length({}) , {})); assert (issame(by_length({1, -1 , 55}) , {"One"})); assert (issame(by_length({1, -1, 3, 2}) , {"Three", "Two", "One"})); assert (issame(by_length({9, 4, 8}) , {"Nine", "Eight", "Four"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(by_length({2, 1, 1, 4, 5, 8, 2, 3}) , {"Eight", "Five", "Four", "Three", "Two", "Two", "One", "One"})); assert (issame(by_length({}) , {})); assert (issame(by_length({1, -1 , 55}) , {"One"})); }
; ModuleID = 'c_code/code_104.cpp' source_filename = "c_code/code_104.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"struct.std::__2::piecewise_construct_t" = type { i8 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::map" = type { %"class.std::__2::__tree" } %"class.std::__2::__tree" = type { ptr, %"class.std::__2::__compressed_pair.8", %"class.std::__2::__compressed_pair.14" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { %"class.std::__2::__tree_end_node" } %"class.std::__2::__tree_end_node" = type { ptr } %"class.std::__2::__compressed_pair.14" = type { %"struct.std::__2::__compressed_pair_elem.15" } %"struct.std::__2::__compressed_pair_elem.15" = type { i32 } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::pair" = type { i32, %"class.std::__2::basic_string" } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.17" } %"class.std::__2::__compressed_pair.17" = type { %"struct.std::__2::__compressed_pair_elem.18" } %"struct.std::__2::__compressed_pair_elem.18" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::less" = type { i8 } %"class.std::__2::vector.1" = type { ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } %"struct.std::__2::pair.25" = type <{ %"class.std::__2::__tree_iterator", i8, [3 x i8] }> %"class.std::__2::__tree_iterator" = type { ptr } %"class.std::__2::tuple" = type { %"struct.std::__2::__tuple_impl" } %"struct.std::__2::__tuple_impl" = type { %"class.std::__2::__tuple_leaf" } %"class.std::__2::__tuple_leaf" = type { ptr } %"class.std::__2::tuple.29" = type { i8 } %"class.std::__2::__tree_node" = type { %"class.std::__2::__tree_node_base.base", %"struct.std::__2::__value_type" } %"class.std::__2::__tree_node_base.base" = type <{ %"class.std::__2::__tree_end_node", ptr, ptr, i8 }> %"struct.std::__2::__value_type" = type { %"struct.std::__2::pair" } %"class.std::__2::unique_ptr" = type { %"class.std::__2::__compressed_pair.26" } %"class.std::__2::__compressed_pair.26" = type { %"struct.std::__2::__compressed_pair_elem.27", %"struct.std::__2::__compressed_pair_elem.28" } %"struct.std::__2::__compressed_pair_elem.27" = type { ptr } %"struct.std::__2::__compressed_pair_elem.28" = type { %"class.std::__2::__tree_node_destructor" } %"class.std::__2::__tree_node_destructor" = type <{ ptr, i8, [3 x i8] }> %"class.std::__2::__tree_node_base" = type <{ %"class.std::__2::__tree_end_node", ptr, ptr, i8, [3 x i8] }> %"class.std::__2::__tree_const_iterator" = type { ptr } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__less" = type { i8 } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.32" } %"class.std::__2::__compressed_pair.32" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.33" } %"struct.std::__2::__compressed_pair_elem.33" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEC2B7v160006ESt16initializer_listISB_ERKS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEixERSA_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEE6insertB7v160006IPKSB_EEvT_SH_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE15__insert_uniqueB7v160006ENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEERKNS_4pairIKiS7_EE = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE30__emplace_hint_unique_key_argsIiJRKNS_4pairIKiS7_EEEEENSG_INS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEENS_21__tree_const_iteratorIS8_SP_lEERKT_DpOT0_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_SH_EElEERPNS_15__tree_end_nodeISJ_EESK_RKT_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_4pairIKiS7_EEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISO_EEEEEEDpOT_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_ = comdat any $_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEED2B7v160006Ev = comdat any $_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEmmB7v160006Ev = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_ = comdat any $_ZNSt3__24nextB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEENS_9enable_ifIXsr25__is_cpp17_input_iteratorIT_EE5valueESG_E4typeESG_NS_15iterator_traitsISG_E15difference_typeE = comdat any $_ZNSt3__216__tree_prev_iterB7v160006IPNS_16__tree_node_baseIPvEEPNS_15__tree_end_nodeIS4_EEEET_T0_ = comdat any $_ZNSt3__210__tree_maxB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_ = comdat any $_ZNSt3__29__advanceB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEEvRT_NS_15iterator_traitsISF_E15difference_typeENS_26bidirectional_iterator_tagE = comdat any $_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEppB7v160006Ev = comdat any $_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_ = comdat any $_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_ = comdat any $_ZNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEC2ERKS8_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_ = comdat any $_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_ = comdat any $_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_ = comdat any $_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEE5resetB7v160006EPSB_ = comdat any $_ZNSt3__222__tree_node_destructorINS_9allocatorINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPvEEEEEclB7v160006EPSB_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEED2Ev = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE = comdat any $_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE25__emplace_unique_key_argsIiJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_4pairINS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEERKT_DpOT0_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [5 x i8] c"Zero\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"One\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"Two\00", align 1 @.str.3 = private unnamed_addr constant [6 x i8] c"Three\00", align 1 @.str.4 = private unnamed_addr constant [5 x i8] c"Four\00", align 1 @.str.5 = private unnamed_addr constant [5 x i8] c"Five\00", align 1 @.str.6 = private unnamed_addr constant [4 x i8] c"Six\00", align 1 @.str.7 = private unnamed_addr constant [6 x i8] c"Seven\00", align 1 @.str.8 = private unnamed_addr constant [6 x i8] c"Eight\00", align 1 @.str.9 = private unnamed_addr constant [5 x i8] c"Nine\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @_ZNSt3__2L19piecewise_constructE = internal constant %"struct.std::__2::piecewise_construct_t" zeroinitializer, align 1 @.str.11 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z9by_lengthNSt3__26vectorIiNS_9allocatorIiEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::map", align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [10 x %"struct.std::__2::pair"], align 4 %6 = alloca %"struct.std::__2::less", align 1 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #19 call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #19 store i32 0, ptr %5, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 0, i32 1 %8 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull @.str) #20 %9 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 1 store i32 1, ptr %9, align 4, !tbaa !3 %10 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 1, i32 1 %11 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull @.str.1) #20 %12 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 2 store i32 2, ptr %12, align 4, !tbaa !3 %13 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 2, i32 1 %14 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull @.str.2) #20 %15 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 3 store i32 3, ptr %15, align 4, !tbaa !3 %16 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 3, i32 1 %17 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull @.str.3) #20 %18 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 4 store i32 4, ptr %18, align 4, !tbaa !3 %19 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 4, i32 1 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull @.str.4) #20 %21 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 5 store i32 5, ptr %21, align 4, !tbaa !3 %22 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 5, i32 1 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull @.str.5) #20 %24 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 6 store i32 6, ptr %24, align 4, !tbaa !3 %25 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 6, i32 1 %26 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull @.str.6) #20 %27 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 7 store i32 7, ptr %27, align 4, !tbaa !3 %28 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 7, i32 1 %29 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull @.str.7) #20 %30 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 8 store i32 8, ptr %30, align 4, !tbaa !3 %31 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 8, i32 1 %32 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull @.str.8) #20 %33 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 9 store i32 9, ptr %33, align 4, !tbaa !3 %34 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 9, i32 1 %35 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull @.str.9) #20 store ptr %5, ptr %4, align 4, !tbaa !12 %36 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 10, ptr %36, align 4, !tbaa !16 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #19 %37 = call noundef ptr @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEC2B7v160006ESt16initializer_listISB_ERKS8_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4, ptr noundef nonnull align 1 dereferenceable(1) %6) #20 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #19 %38 = getelementptr inbounds %"struct.std::__2::pair", ptr %5, i32 10 br label %39 39: ; preds = %39, %2 %40 = phi ptr [ %38, %2 ], [ %41, %39 ] %41 = getelementptr inbounds %"struct.std::__2::pair", ptr %40, i32 -1 %42 = getelementptr %"struct.std::__2::pair", ptr %40, i32 -1, i32 1 %43 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %42) #21 %44 = icmp eq ptr %41, %5 br i1 %44, label %45, label %39 45: ; preds = %39 call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #19 %46 = load ptr, ptr %1, align 4, !tbaa !17 %47 = getelementptr inbounds %"class.std::__2::vector.1", ptr %1, i32 0, i32 1 %48 = load ptr, ptr %47, align 4, !tbaa !21 call void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %46, ptr %48) #20 store ptr null, ptr %0, align 4, !tbaa !22 %49 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %49, align 4, !tbaa !26 %50 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %50, align 4, !tbaa !27 %51 = load ptr, ptr %47, align 4, !tbaa !21 %52 = load ptr, ptr %1, align 4, !tbaa !17 %53 = ptrtoint ptr %51 to i32 %54 = ptrtoint ptr %52 to i32 %55 = sub i32 %53, %54 %56 = ashr exact i32 %55, 2 br label %57 57: ; preds = %67, %45 %58 = phi i32 [ %56, %45 ], [ %59, %67 ] %59 = add nsw i32 %58, -1 %60 = icmp sgt i32 %58, 0 br i1 %60, label %61, label %70 61: ; preds = %57 %62 = load ptr, ptr %1, align 4, !tbaa !17 %63 = getelementptr inbounds i32, ptr %62, i32 %59 %64 = load i32, ptr %63, align 4, !tbaa !28 %65 = add i32 %64, -1 %66 = icmp ult i32 %65, 9 br i1 %66, label %68, label %67 67: ; preds = %61, %68 br label %57, !llvm.loop !29 68: ; preds = %61 %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEixERSA_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %63) #20 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %69) #20 br label %67 70: ; preds = %57 %71 = call noundef ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #21 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #19 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEC2B7v160006ESt16initializer_listISB_ERKS8_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !31 %5 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 2 store i32 0, ptr %5, align 4, !tbaa !33 store ptr %4, ptr %0, align 4, !tbaa !35 %6 = load ptr, ptr %1, align 4, !tbaa !12 %7 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %8 = load i32, ptr %7, align 4, !tbaa !16 %9 = getelementptr inbounds %"struct.std::__2::pair", ptr %6, i32 %8 tail call void @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEE6insertB7v160006IPKSB_EEvT_SH_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %6, ptr noundef %9) #20 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !26 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !35 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEixERSA_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #0 comdat { %3 = alloca %"struct.std::__2::pair.25", align 4 %4 = alloca %"class.std::__2::tuple", align 4 %5 = alloca %"class.std::__2::tuple.29", align 1 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #19 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #19 store ptr %1, ptr %4, align 4 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #19 call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE25__emplace_unique_key_argsIiJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_4pairINS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEERKT_DpOT0_(ptr nonnull sret(%"struct.std::__2::pair.25") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt3__2L19piecewise_constructE, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #20 %6 = load ptr, ptr %3, align 4, !tbaa !36 %7 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %6, i32 0, i32 1, i32 0, i32 1 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #19 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #19 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #19 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #21 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #20 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #3 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #4 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #5 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #19 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #20 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #20 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !38 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #6 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #5 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #19 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #21 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #22 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #8 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #9 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #10 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEE6insertB7v160006IPKSB_EEvT_SH_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 comdat { %4 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 br label %5 5: ; preds = %9, %3 %6 = phi ptr [ %1, %3 ], [ %11, %9 ] %7 = icmp eq ptr %6, %2 br i1 %7, label %8, label %9 8: ; preds = %5 ret void 9: ; preds = %5 %10 = tail call ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE15__insert_uniqueB7v160006ENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEERKNS_4pairIKiS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr nonnull %4, ptr noundef nonnull align 4 dereferenceable(16) %6) #20 %11 = getelementptr inbounds %"struct.std::__2::pair", ptr %6, i32 1 br label %5, !llvm.loop !40 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE15__insert_uniqueB7v160006ENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEERKNS_4pairIKiS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr noundef nonnull align 4 dereferenceable(16) %2) local_unnamed_addr #12 comdat { %4 = alloca %"struct.std::__2::pair.25", align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #19 call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE30__emplace_hint_unique_key_argsIiJRKNS_4pairIKiS7_EEEEENSG_INS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEENS_21__tree_const_iteratorIS8_SP_lEERKT_DpOT0_(ptr nonnull sret(%"struct.std::__2::pair.25") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(16) %2) #20 %5 = load ptr, ptr %4, align 4, !tbaa.struct !41 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #19 ret ptr %5 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE30__emplace_hint_unique_key_argsIiJRKNS_4pairIKiS7_EEEEENSG_INS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEENS_21__tree_const_iteratorIS8_SP_lEERKT_DpOT0_(ptr noalias sret(%"struct.std::__2::pair.25") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(16) %4) local_unnamed_addr #0 comdat { %6 = alloca ptr, align 4 %7 = alloca ptr, align 4 %8 = alloca %"class.std::__2::unique_ptr", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #19 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #19 %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_SH_EElEERPNS_15__tree_end_nodeISJ_EESK_RKT_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr %2, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %3) #20 %10 = load ptr, ptr %9, align 4, !tbaa !35 %11 = icmp eq ptr %10, null br i1 %11, label %12, label %17 12: ; preds = %5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #19 call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_4pairIKiS7_EEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISO_EEEEEEDpOT_(ptr nonnull sret(%"class.std::__2::unique_ptr") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(16) %4) #20 %13 = load ptr, ptr %6, align 4, !tbaa !35 %14 = load ptr, ptr %8, align 4, !tbaa !35 call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %13, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef %14) #21 %15 = load ptr, ptr %8, align 4, !tbaa !35 store ptr null, ptr %8, align 4, !tbaa !35 %16 = call noundef ptr @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #21 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #19 br label %17 17: ; preds = %12, %5 %18 = phi i8 [ 1, %12 ], [ 0, %5 ] %19 = phi ptr [ %15, %12 ], [ %10, %5 ] %20 = ptrtoint ptr %19 to i32 store i32 %20, ptr %0, align 4, !tbaa !35 %21 = getelementptr inbounds %"struct.std::__2::pair.25", ptr %0, i32 0, i32 1 store i8 %18, ptr %21, align 4, !tbaa !42 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #19 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #19 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_SH_EElEERPNS_15__tree_end_nodeISJ_EESK_RKT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) local_unnamed_addr #0 comdat { %6 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %7 = icmp eq ptr %6, %1 br i1 %7, label %13, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %1, i32 0, i32 1 %10 = load i32, ptr %4, align 4, !tbaa !28 %11 = load i32, ptr %9, align 4, !tbaa !28 %12 = icmp slt i32 %10, %11 br i1 %12, label %13, label %31 13: ; preds = %5, %8 %14 = load ptr, ptr %0, align 4, !tbaa !35 %15 = icmp eq ptr %14, %1 br i1 %15, label %22, label %16 16: ; preds = %13 %17 = tail call noundef ptr @_ZNSt3__216__tree_prev_iterB7v160006IPNS_16__tree_node_baseIPvEEPNS_15__tree_end_nodeIS4_EEEET_T0_(ptr noundef %1) #21 %18 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %17, i32 0, i32 1 %19 = load i32, ptr %18, align 4, !tbaa !28 %20 = load i32, ptr %4, align 4, !tbaa !28 %21 = icmp slt i32 %19, %20 br i1 %21, label %22, label %29 22: ; preds = %13, %16 %23 = phi ptr [ %17, %16 ], [ %1, %13 ] %24 = load ptr, ptr %1, align 4, !tbaa !31 %25 = icmp eq ptr %24, null br i1 %25, label %26, label %27 26: ; preds = %22 store ptr %1, ptr %2, align 4, !tbaa !35 br label %50 27: ; preds = %22 store ptr %23, ptr %2, align 4, !tbaa !35 %28 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %23, i32 0, i32 1 br label %50 29: ; preds = %16 %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4) #20 br label %50 31: ; preds = %8 %32 = icmp slt i32 %11, %10 br i1 %32, label %33, label %49 33: ; preds = %31 %34 = tail call ptr @_ZNSt3__24nextB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEENS_9enable_ifIXsr25__is_cpp17_input_iteratorIT_EE5valueESG_E4typeESG_NS_15iterator_traitsISG_E15difference_typeE(ptr nonnull %1, i32 noundef 1) #20 %35 = icmp eq ptr %34, %6 br i1 %35, label %41, label %36 36: ; preds = %33 %37 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %34, i32 0, i32 1 %38 = load i32, ptr %4, align 4, !tbaa !28 %39 = load i32, ptr %37, align 4, !tbaa !28 %40 = icmp slt i32 %38, %39 br i1 %40, label %41, label %47 41: ; preds = %33, %36 %42 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %1, i32 0, i32 1 %43 = load ptr, ptr %42, align 4, !tbaa !45 %44 = icmp eq ptr %43, null br i1 %44, label %45, label %46 45: ; preds = %41 store ptr %1, ptr %2, align 4, !tbaa !35 br label %50 46: ; preds = %41 store ptr %34, ptr %2, align 4, !tbaa !35 br label %50 47: ; preds = %36 %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4) #20 br label %50 49: ; preds = %31 store ptr %1, ptr %2, align 4, !tbaa !35 store ptr %1, ptr %3, align 4, !tbaa !35 br label %50 50: ; preds = %45, %46, %47, %26, %27, %29, %49 %51 = phi ptr [ %3, %49 ], [ %1, %26 ], [ %28, %27 ], [ %30, %29 ], [ %42, %45 ], [ %34, %46 ], [ %48, %47 ] ret ptr %51 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_4pairIKiS7_EEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISO_EEEEEEDpOT_(ptr noalias sret(%"class.std::__2::unique_ptr") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(16) %2) local_unnamed_addr #0 comdat { %4 = getelementptr inbounds %"class.std::__2::__tree", ptr %1, i32 0, i32 1 %5 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i32 noundef 32) #23 store ptr %5, ptr %0, align 4, !tbaa !47 %6 = getelementptr inbounds i8, ptr %0, i32 4 %7 = ptrtoint ptr %4 to i32 store i32 %7, ptr %6, align 4 %8 = getelementptr inbounds i8, ptr %0, i32 8 store i8 0, ptr %8, align 4 %9 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %5, i32 0, i32 1 %10 = tail call noundef ptr @_ZNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEC2ERKS8_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %2) #20 store i8 1, ptr %8, align 4, !tbaa !49 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef %3) local_unnamed_addr #13 comdat { store ptr null, ptr %3, align 4, !tbaa !31 %5 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !45 %6 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 2 store ptr %1, ptr %6, align 4, !tbaa !51 store ptr %3, ptr %2, align 4, !tbaa !35 %7 = load ptr, ptr %0, align 4, !tbaa !35 %8 = load ptr, ptr %7, align 4, !tbaa !31 %9 = icmp eq ptr %8, null br i1 %9, label %12, label %10 10: ; preds = %4 store ptr %8, ptr %0, align 4, !tbaa !35 %11 = load ptr, ptr %2, align 4, !tbaa !35 br label %12 12: ; preds = %10, %4 %13 = phi ptr [ %11, %10 ], [ %3, %4 ] %14 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %15 = load ptr, ptr %14, align 4, !tbaa !31 tail call void @_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_(ptr noundef %15, ptr noundef %13) #21 %16 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 2 %17 = load i32, ptr %16, align 4, !tbaa !52 %18 = add i32 %17, 1 store i32 %18, ptr %16, align 4, !tbaa !52 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { tail call void @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEE5resetB7v160006EPSB_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef null) #21 ret ptr %0 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEmmB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #13 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !53 %3 = tail call noundef ptr @_ZNSt3__216__tree_prev_iterB7v160006IPNS_16__tree_node_baseIPvEEPNS_15__tree_end_nodeIS4_EEEET_T0_(ptr noundef %2) #21 store ptr %3, ptr %0, align 4, !tbaa !53 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) local_unnamed_addr #12 comdat { %4 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !31 %6 = icmp eq ptr %5, null br i1 %6, label %27, label %7 7: ; preds = %3 %8 = load i32, ptr %2, align 4, !tbaa !28 br label %9 9: ; preds = %24, %7 %10 = phi ptr [ %5, %7 ], [ %25, %24 ] %11 = phi ptr [ %4, %7 ], [ %26, %24 ] %12 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %10, i32 0, i32 1 %13 = load i32, ptr %12, align 4, !tbaa !28 %14 = icmp slt i32 %8, %13 br i1 %14, label %15, label %18 15: ; preds = %9 %16 = load ptr, ptr %10, align 4, !tbaa !31 %17 = icmp eq ptr %16, null br i1 %17, label %27, label %24 18: ; preds = %9 %19 = icmp slt i32 %13, %8 br i1 %19, label %20, label %27 20: ; preds = %18 %21 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %10, i32 0, i32 1 %22 = load ptr, ptr %21, align 4, !tbaa !45 %23 = icmp eq ptr %22, null br i1 %23, label %27, label %24 24: ; preds = %20, %15 %25 = phi ptr [ %16, %15 ], [ %22, %20 ] %26 = phi ptr [ %10, %15 ], [ %21, %20 ] br label %9, !llvm.loop !55 27: ; preds = %18, %20, %15, %3 %28 = phi ptr [ %4, %3 ], [ %10, %15 ], [ %10, %20 ], [ %10, %18 ] %29 = phi ptr [ %4, %3 ], [ %11, %18 ], [ %21, %20 ], [ %10, %15 ] store ptr %28, ptr %1, align 4, !tbaa !35 ret ptr %29 } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden ptr @_ZNSt3__24nextB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEENS_9enable_ifIXsr25__is_cpp17_input_iteratorIT_EE5valueESG_E4typeESG_NS_15iterator_traitsISG_E15difference_typeE(ptr %0, i32 noundef %1) local_unnamed_addr #2 comdat { %3 = alloca %"class.std::__2::__tree_const_iterator", align 4 store ptr %0, ptr %3, align 4 call void @_ZNSt3__29__advanceB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEEvRT_NS_15iterator_traitsISF_E15difference_typeENS_26bidirectional_iterator_tagE(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %1) #20 %4 = load ptr, ptr %3, align 4, !tbaa.struct !41 ret ptr %4 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__216__tree_prev_iterB7v160006IPNS_16__tree_node_baseIPvEEPNS_15__tree_end_nodeIS4_EEEET_T0_(ptr noundef %0) local_unnamed_addr #14 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = load ptr, ptr %0, align 4, !tbaa !31 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = tail call noundef ptr @_ZNSt3__210__tree_maxB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef nonnull %3) #21 br label %13 7: ; preds = %1, %7 %8 = phi ptr [ %10, %7 ], [ %0, %1 ] %9 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %8, i32 0, i32 2 %10 = load ptr, ptr %9, align 4, !tbaa !51 %11 = load ptr, ptr %10, align 4, !tbaa !31 %12 = icmp eq ptr %11, %8 br i1 %12, label %7, label %13, !llvm.loop !56 13: ; preds = %7, %5 %14 = phi ptr [ %6, %5 ], [ %10, %7 ] ret ptr %14 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__210__tree_maxB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef %0) local_unnamed_addr #14 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) br label %3 3: ; preds = %3, %1 %4 = phi ptr [ %0, %1 ], [ %6, %3 ] %5 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %4, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !45 %7 = icmp eq ptr %6, null br i1 %7, label %8, label %3, !llvm.loop !57 8: ; preds = %3 ret ptr %4 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__29__advanceB7v160006INS_21__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEEEvRT_NS_15iterator_traitsISF_E15difference_typeENS_26bidirectional_iterator_tagE(ptr noundef nonnull align 4 dereferenceable(4) %0, i32 noundef %1) local_unnamed_addr #12 comdat { %3 = icmp sgt i32 %1, -1 br i1 %3, label %4, label %10 4: ; preds = %2, %7 %5 = phi i32 [ %9, %7 ], [ %1, %2 ] %6 = icmp sgt i32 %5, 0 br i1 %6, label %7, label %16 7: ; preds = %4 %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEppB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #20 %9 = add nsw i32 %5, -1 br label %4, !llvm.loop !58 10: ; preds = %2, %13 %11 = phi i32 [ %15, %13 ], [ %1, %2 ] %12 = icmp eq i32 %11, 0 br i1 %12, label %16, label %13 13: ; preds = %10 %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEmmB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #20 %15 = add i32 %11, 1 br label %10, !llvm.loop !59 16: ; preds = %10, %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEppB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #13 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !53 %3 = tail call noundef ptr @_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_(ptr noundef %2) #21 store ptr %3, ptr %0, align 4, !tbaa !53 ret ptr %0 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_(ptr noundef %0) local_unnamed_addr #14 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !45 %5 = icmp eq ptr %4, null br i1 %5, label %8, label %6 6: ; preds = %1 %7 = tail call noundef ptr @_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef nonnull %4) #21 br label %14 8: ; preds = %1, %8 %9 = phi ptr [ %11, %8 ], [ %0, %1 ] %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %9, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !51 %12 = load ptr, ptr %11, align 4, !tbaa !31 %13 = icmp eq ptr %12, %9 br i1 %13, label %14, label %8, !llvm.loop !60 14: ; preds = %8, %6 %15 = phi ptr [ %7, %6 ], [ %11, %8 ] ret ptr %15 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef %0) local_unnamed_addr #14 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) br label %3 3: ; preds = %3, %1 %4 = phi ptr [ %0, %1 ], [ %5, %3 ] %5 = load ptr, ptr %4, align 4, !tbaa !31 %6 = icmp eq ptr %5, null br i1 %6, label %7, label %3, !llvm.loop !61 7: ; preds = %3 ret ptr %4 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEC2ERKS8_(ptr noundef nonnull returned align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %1) unnamed_addr #0 comdat { %3 = load i32, ptr %1, align 4, !tbaa !3 store i32 %3, ptr %0, align 4, !tbaa !3 %4 = getelementptr inbounds %"struct.std::__2::pair", ptr %0, i32 0, i32 1 %5 = getelementptr inbounds %"struct.std::__2::pair", ptr %1, i32 0, i32 1 %6 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5) #20 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !62 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !63 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !63 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #20 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #13 comdat { %3 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %3) %4 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %4) %5 = icmp eq ptr %1, %0 %6 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %1, i32 0, i32 3 %7 = zext i1 %5 to i8 store i8 %7, ptr %6, align 4, !tbaa !64 br label %8 8: ; preds = %62, %2 %9 = phi ptr [ %1, %2 ], [ %19, %62 ] %10 = icmp eq ptr %9, %0 br i1 %10, label %67, label %11 11: ; preds = %8 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %9, i32 0, i32 2 %13 = load ptr, ptr %12, align 4, !tbaa !51 %14 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 3 %15 = load i8, ptr %14, align 4, !tbaa !64, !range !65, !noundef !66 %16 = icmp eq i8 %15, 0 br i1 %16, label %17, label %67 17: ; preds = %11 %18 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 %19 = load ptr, ptr %18, align 4, !tbaa !51 %20 = load ptr, ptr %19, align 4, !tbaa !31 %21 = icmp eq ptr %20, %13 br i1 %21, label %22, label %43 22: ; preds = %17 %23 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %19, i32 0, i32 1 %24 = load ptr, ptr %23, align 4, !tbaa !45 %25 = icmp eq ptr %24, null br i1 %25, label %30, label %26 26: ; preds = %22 %27 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %24, i32 0, i32 3 %28 = load i8, ptr %27, align 4, !tbaa !64, !range !65, !noundef !66 %29 = icmp eq i8 %28, 0 br i1 %29, label %62, label %30 30: ; preds = %26, %22 %31 = load ptr, ptr %13, align 4, !tbaa !31 %32 = icmp eq ptr %31, %9 br i1 %32, label %38, label %33 33: ; preds = %30 %34 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 tail call void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef nonnull %13) #21 %35 = load ptr, ptr %34, align 4, !tbaa !51 %36 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %35, i32 0, i32 2 %37 = load ptr, ptr %36, align 4, !tbaa !51 br label %38 38: ; preds = %30, %33 %39 = phi ptr [ %19, %30 ], [ %37, %33 ] %40 = phi ptr [ %13, %30 ], [ %35, %33 ] %41 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %40, i32 0, i32 3 store i8 1, ptr %41, align 4, !tbaa !64 %42 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %39, i32 0, i32 3 store i8 0, ptr %42, align 4, !tbaa !64 tail call void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %39) #21 br label %67 43: ; preds = %17 %44 = icmp eq ptr %20, null br i1 %44, label %49, label %45 45: ; preds = %43 %46 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %20, i32 0, i32 3 %47 = load i8, ptr %46, align 4, !tbaa !64, !range !65, !noundef !66 %48 = icmp eq i8 %47, 0 br i1 %48, label %62, label %49 49: ; preds = %45, %43 %50 = load ptr, ptr %13, align 4, !tbaa !31 %51 = icmp eq ptr %50, %9 br i1 %51, label %52, label %57 52: ; preds = %49 %53 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 tail call void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef nonnull %13) #21 %54 = load ptr, ptr %53, align 4, !tbaa !51 %55 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %54, i32 0, i32 2 %56 = load ptr, ptr %55, align 4, !tbaa !51 br label %57 57: ; preds = %49, %52 %58 = phi ptr [ %56, %52 ], [ %19, %49 ] %59 = phi ptr [ %54, %52 ], [ %13, %49 ] %60 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %59, i32 0, i32 3 store i8 1, ptr %60, align 4, !tbaa !64 %61 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %58, i32 0, i32 3 store i8 0, ptr %61, align 4, !tbaa !64 tail call void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %58) #21 br label %67 62: ; preds = %45, %26 %63 = phi ptr [ %27, %26 ], [ %46, %45 ] store i8 1, ptr %14, align 4, !tbaa !64 %64 = icmp eq ptr %19, %0 %65 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %19, i32 0, i32 3 %66 = zext i1 %64 to i8 store i8 %66, ptr %65, align 4, !tbaa !64 store i8 1, ptr %63, align 4, !tbaa !64 br label %8, !llvm.loop !67 67: ; preds = %8, %11, %57, %38 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %0) local_unnamed_addr #13 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !45, !nonnull !66, !noundef !66 %5 = load ptr, ptr %4, align 4, !tbaa !31 store ptr %5, ptr %3, align 4, !tbaa !45 %6 = icmp eq ptr %5, null br i1 %6, label %9, label %7 7: ; preds = %1 %8 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %5, i32 0, i32 2 store ptr %0, ptr %8, align 4, !tbaa !51 br label %9 9: ; preds = %7, %1 %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !51 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %4, i32 0, i32 2 store ptr %11, ptr %12, align 4, !tbaa !51 %13 = load ptr, ptr %10, align 4, !tbaa !51 %14 = load ptr, ptr %13, align 4, !tbaa !31 %15 = icmp eq ptr %14, %0 %16 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 1 %17 = select i1 %15, ptr %13, ptr %16 store ptr %4, ptr %17, align 4, !tbaa !35 store ptr %0, ptr %4, align 4, !tbaa !31 store ptr %4, ptr %10, align 4, !tbaa !51 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %0) local_unnamed_addr #13 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = load ptr, ptr %0, align 4, !tbaa !31, !nonnull !66, !noundef !66 %4 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !45 store ptr %5, ptr %0, align 4, !tbaa !31 %6 = icmp eq ptr %5, null br i1 %6, label %9, label %7 7: ; preds = %1 %8 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %5, i32 0, i32 2 store ptr %0, ptr %8, align 4, !tbaa !51 br label %9 9: ; preds = %7, %1 %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !51 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 2 store ptr %11, ptr %12, align 4, !tbaa !51 %13 = load ptr, ptr %10, align 4, !tbaa !51 %14 = load ptr, ptr %13, align 4, !tbaa !31 %15 = icmp eq ptr %14, %0 %16 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 1 %17 = select i1 %15, ptr %13, ptr %16 store ptr %3, ptr %17, align 4, !tbaa !35 store ptr %0, ptr %4, align 4, !tbaa !45 store ptr %3, ptr %10, align 4, !tbaa !51 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEE5resetB7v160006EPSB_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #13 comdat { %3 = load ptr, ptr %0, align 4, !tbaa !35 store ptr %1, ptr %0, align 4, !tbaa !35 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %2 %6 = getelementptr inbounds i8, ptr %0, i32 4 tail call void @_ZNSt3__222__tree_node_destructorINS_9allocatorINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPvEEEEEclB7v160006EPSB_(ptr noundef nonnull align 4 dereferenceable(5) %6, ptr noundef nonnull %3) #21 br label %7 7: ; preds = %5, %2 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden void @_ZNSt3__222__tree_node_destructorINS_9allocatorINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPvEEEEEclB7v160006EPSB_(ptr noundef nonnull align 4 dereferenceable(5) %0, ptr noundef %1) local_unnamed_addr #6 comdat { %3 = getelementptr inbounds %"class.std::__2::__tree_node_destructor", ptr %0, i32 0, i32 1 %4 = load i8, ptr %3, align 4, !tbaa !49, !range !65, !noundef !66 %5 = icmp eq i8 %4, 0 br i1 %5, label %9, label %6 6: ; preds = %2 %7 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %1, i32 0, i32 1, i32 0, i32 1 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #21 br label %9 9: ; preds = %6, %2 %10 = icmp eq ptr %1, null br i1 %10, label %12, label %11 11: ; preds = %9 tail call void @_ZdlPv(ptr noundef nonnull %1) #24 br label %12 12: ; preds = %11, %9 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr noundef ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !31 tail call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %3) #21 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #6 comdat { %3 = icmp eq ptr %1, null br i1 %3, label %4, label %5 4: ; preds = %2, %5 ret void 5: ; preds = %2 %6 = load ptr, ptr %1, align 4, !tbaa !31 tail call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %6) #21 %7 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !45 tail call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8) #21 %9 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %1, i32 0, i32 1, i32 0, i32 1 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #21 tail call void @_ZdlPv(ptr noundef nonnull %1) #24 br label %4 } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %0, ptr %1) local_unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__less", align 1 call void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #20 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE25__emplace_unique_key_argsIiJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_4pairINS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEERKT_DpOT0_(ptr noalias sret(%"struct.std::__2::pair.25") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) local_unnamed_addr #0 comdat { %7 = alloca ptr, align 4 %8 = alloca %"class.std::__2::unique_ptr", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #19 %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %2) #20 %10 = load ptr, ptr %9, align 4, !tbaa !35 %11 = icmp eq ptr %10, null br i1 %11, label %12, label %24 12: ; preds = %6 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #19 call void @llvm.experimental.noalias.scope.decl(metadata !68) %13 = getelementptr inbounds %"class.std::__2::__tree", ptr %1, i32 0, i32 1 %14 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i32 noundef 32) #23, !noalias !68 %15 = getelementptr inbounds i8, ptr %8, i32 4 %16 = ptrtoint ptr %13 to i32 store i32 %16, ptr %15, align 4, !alias.scope !68 %17 = getelementptr inbounds i8, ptr %8, i32 8 %18 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %14, i32 0, i32 1 %19 = load ptr, ptr %4, align 4, !noalias !68 %20 = load i32, ptr %19, align 4, !tbaa !28, !noalias !68 store i32 %20, ptr %18, align 4, !tbaa !3, !noalias !68 %21 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %14, i32 0, i32 1, i32 0, i32 1 call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %21, i8 0, i32 12, i1 false), !noalias !68 store i8 1, ptr %17, align 4, !tbaa !49, !alias.scope !68 %22 = load ptr, ptr %7, align 4, !tbaa !35 call void @_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull %14) #21 store ptr null, ptr %8, align 4, !tbaa !35 %23 = call noundef ptr @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEENS_22__tree_node_destructorINS6_ISB_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #21 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #19 br label %24 24: ; preds = %12, %6 %25 = phi i8 [ 1, %12 ], [ 0, %6 ] %26 = phi ptr [ %14, %12 ], [ %10, %6 ] %27 = ptrtoint ptr %26 to i32 store i32 %27, ptr %0, align 4, !tbaa !35 %28 = getelementptr inbounds %"struct.std::__2::pair.25", ptr %0, i32 0, i32 1 store i8 %25, ptr %28, align 4, !tbaa !42 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #19 ret void } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #15 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !26 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !26 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #19 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !26 %7 = load ptr, ptr %0, align 4, !tbaa !22 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #20 %14 = load ptr, ptr %5, align 4, !tbaa !26 %15 = load ptr, ptr %0, align 4, !tbaa !22 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #20 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !71 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 %24 = load ptr, ptr %21, align 4, !tbaa !71 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !71 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #20 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #21 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #19 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #2 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #25 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !35 %8 = load ptr, ptr %0, align 4, !tbaa !22 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !27 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !35 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #20, !noalias !75 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !78 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !71 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !79 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !35 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !26 %6 = load ptr, ptr %0, align 4, !tbaa !22 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !79 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #20 store ptr %9, ptr %7, align 4, !tbaa !79 %10 = load ptr, ptr %0, align 4, !tbaa !35 store ptr %9, ptr %0, align 4, !tbaa !35 store ptr %10, ptr %7, align 4, !tbaa !35 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !35 %13 = load ptr, ptr %11, align 4, !tbaa !35 store ptr %13, ptr %4, align 4, !tbaa !35 store ptr %12, ptr %11, align 4, !tbaa !35 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !35 %16 = load ptr, ptr %14, align 4, !tbaa !35 store ptr %16, ptr %3, align 4, !tbaa !35 store ptr %15, ptr %14, align 4, !tbaa !35 %17 = load ptr, ptr %7, align 4, !tbaa !79 store ptr %17, ptr %1, align 4, !tbaa !78 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #6 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #21 %2 = load ptr, ptr %0, align 4, !tbaa !78 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #24 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #16 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.11) #25 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #12 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #25 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #23 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #19 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !35 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #19 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !80 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !81 store i8 1, ptr %19, align 4, !tbaa !83 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #21 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #19 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #19 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !83, !range !65, !noundef !66 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !86 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !87 %5 = load ptr, ptr %4, align 4, !tbaa.struct !41 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !88 %8 = load ptr, ptr %7, align 4, !tbaa.struct !41 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #20 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #12 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #21 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !89 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #13 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !79 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #21 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !71 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !71 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #21 br label %4, !llvm.loop !90 10: ; preds = %4 ret void } ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) declare void @llvm.experimental.noalias.scope.decl(metadata) #17 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #18 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #4 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #12 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #16 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) } attributes #18 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #19 = { nounwind } attributes #20 = { minsize optsize } attributes #21 = { minsize nounwind optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize optsize allocsize(0) } attributes #24 = { builtin minsize nounwind optsize } attributes #25 = { minsize noreturn optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0, !8, i64 4} !5 = !{!"int", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__217__compressed_pairINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5__repES5_EE", !10, i64 0} !10 = !{!"_ZTSNSt3__222__compressed_pair_elemINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5__repELi0ELb0EEE", !11, i64 0} !11 = !{!"_ZTSNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5__repE", !6, i64 0} !12 = !{!13, !14, i64 0} !13 = !{!"_ZTSSt16initializer_listINSt3__24pairIKiNS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEEEE", !14, i64 0, !15, i64 4} !14 = !{!"any pointer", !6, i64 0} !15 = !{!"long", !6, i64 0} !16 = !{!13, !15, i64 4} !17 = !{!18, !14, i64 0} !18 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !14, i64 0, !14, i64 4, !19, i64 8} !19 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !20, i64 0} !20 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !14, i64 0} !21 = !{!18, !14, i64 4} !22 = !{!23, !14, i64 0} !23 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !14, i64 0, !14, i64 4, !24, i64 8} !24 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !25, i64 0} !25 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !14, i64 0} !26 = !{!23, !14, i64 4} !27 = !{!25, !14, i64 0} !28 = !{!5, !5, i64 0} !29 = distinct !{!29, !30} !30 = !{!"llvm.loop.mustprogress"} !31 = !{!32, !14, i64 0} !32 = !{!"_ZTSNSt3__215__tree_end_nodeIPNS_16__tree_node_baseIPvEEEE", !14, i64 0} !33 = !{!34, !15, i64 0} !34 = !{!"_ZTSNSt3__222__compressed_pair_elemImLi0ELb0EEE", !15, i64 0} !35 = !{!14, !14, i64 0} !36 = !{!37, !14, i64 0} !37 = !{!"_ZTSNSt3__215__tree_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEE", !14, i64 0} !38 = !{!39, !39, i64 0} !39 = !{!"vtable pointer", !7, i64 0} !40 = distinct !{!40, !30} !41 = !{i64 0, i64 4, !35} !42 = !{!43, !44, i64 4} !43 = !{!"_ZTSNSt3__24pairINS_15__tree_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS9_PvEElEEbEE", !37, i64 0, !44, i64 4} !44 = !{!"bool", !6, i64 0} !45 = !{!46, !14, i64 4} !46 = !{!"_ZTSNSt3__216__tree_node_baseIPvEE", !32, i64 0, !14, i64 4, !14, i64 8, !44, i64 12} !47 = !{!48, !14, i64 0} !48 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPvEELi0ELb0EEE", !14, i64 0} !49 = !{!50, !44, i64 4} !50 = !{!"_ZTSNSt3__222__tree_node_destructorINS_9allocatorINS_11__tree_nodeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPvEEEEEE", !14, i64 0, !44, i64 4} !51 = !{!46, !14, i64 8} !52 = !{!15, !15, i64 0} !53 = !{!54, !14, i64 0} !54 = !{!"_ZTSNSt3__221__tree_const_iteratorINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEEPNS_11__tree_nodeIS8_PvEElEE", !14, i64 0} !55 = distinct !{!55, !30} !56 = distinct !{!56, !30} !57 = distinct !{!57, !30} !58 = distinct !{!58, !30} !59 = distinct !{!59, !30} !60 = distinct !{!60, !30} !61 = distinct !{!61, !30} !62 = !{i64 0, i64 4, !35, i64 4, i64 4, !52, i64 8, i64 4, !52, i64 11, i64 4, !52, i64 0, i64 11, !63, i64 11, i64 0, !63, i64 11, i64 1, !63, i64 11, i64 1, !63, i64 0, i64 12, !63} !63 = !{!6, !6, i64 0} !64 = !{!46, !44, i64 12} !65 = !{i8 0, i8 2} !66 = !{} !67 = distinct !{!67, !30} !68 = !{!69} !69 = distinct !{!69, !70, !"_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISR_EEEEEEDpOT_: argument 0"} !70 = distinct !{!70, !"_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISR_EEEEEEDpOT_"} !71 = !{!72, !14, i64 8} !72 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !14, i64 0, !14, i64 4, !14, i64 8, !73, i64 12} !73 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !25, i64 0, !74, i64 4} !74 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !14, i64 0} !75 = !{!76} !76 = distinct !{!76, !77, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !77 = distinct !{!77, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !78 = !{!72, !14, i64 0} !79 = !{!72, !14, i64 4} !80 = distinct !{!80, !30} !81 = !{!82, !14, i64 0} !82 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !14, i64 0} !83 = !{!84, !44, i64 12} !84 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !85, i64 0, !44, i64 12} !85 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !14, i64 0, !14, i64 4, !14, i64 8} !86 = !{!85, !14, i64 0} !87 = !{!85, !14, i64 8} !88 = !{!85, !14, i64 4} !89 = distinct !{!89, !30} !90 = distinct !{!90, !30}
(module $code_104.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (param i32 i32 i32 i32 i32 i32))) (type (;6;) (func (param i32 i32 i32 i32 i32))) (type (;7;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;8;) (func (param i32 i32 i32 i32))) (type (;9;) (func (param i32 i32 i32) (result i32))) (type (;10;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEixERSA_" (func $std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::operator___int_const&_ (type 0))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEED2Ev" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::~__tree__ (type 1))) (import "env" "_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEE6insertB7v160006IPKSB_EEvT_SH_" (func $void_std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::insert_abi:v160006_<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*_ (type 2))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE25__emplace_unique_key_argsIiJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_4pairINS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_unique_key_args<int__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>__std::__2::tuple<>>_int_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>&&__std::__2::tuple<>&&_ (type 5))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE30__emplace_hint_unique_key_argsIiJRKNS_4pairIKiS7_EEEEENSG_INS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEENS_21__tree_const_iteratorIS8_SP_lEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_hint_unique_key_args<int__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__int_const&__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ (type 6))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_SH_EElEERPNS_15__tree_end_nodeISJ_EESK_RKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__std::__2::__tree_node_base<void*>*&__int_const&_ (type 7))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_4pairIKiS7_EEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISO_EEEEEEDpOT_" (func $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__construct_node<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ (type 2))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_ (type 8))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__int_const&_ (type 9))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEC2ERKS8_" (func $std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::pair_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ (type 3))) (import "env" "_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_" (func $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 10)) (func $by_length_std::__2::vector<int__std::__2::allocator<int>>_ (type 3) (param i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 192 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i32.const 0 i32.store offset=12 local.get 2 i32.const 16 i32.add global.get $__memory_base local.tee 3 i32.const 26 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 1 i32.store offset=28 local.get 2 i32.const 32 i32.add local.get 3 i32.const 47 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 2 i32.store offset=44 local.get 2 i32.const 48 i32.add local.get 3 i32.const 22 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 3 i32.store offset=60 local.get 2 i32.const -64 i32.sub local.get 3 i32.const 51 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 4 i32.store offset=76 local.get 2 i32.const 80 i32.add local.get 3 i32.const 10 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 5 i32.store offset=92 local.get 2 i32.const 96 i32.add local.get 3 i32.const 37 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 6 i32.store offset=108 local.get 2 i32.const 112 i32.add local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 7 i32.store offset=124 local.get 2 i32.const 128 i32.add local.get 3 i32.const 31 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 8 i32.store offset=140 local.get 2 i32.const 144 i32.add local.get 3 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 9 i32.store offset=156 local.get 2 i32.const 160 i32.add local.get 3 i32.const 42 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 10 i32.store offset=176 local.get 2 local.get 2 i32.const 12 i32.add i32.store offset=172 local.get 2 local.get 2 i64.load offset=172 align=4 i64.store local.get 2 i32.const 180 i32.add local.tee 3 i64.const 0 i64.store offset=4 align=4 local.get 3 local.get 3 i32.const 4 i32.add i32.store local.get 3 local.get 2 i32.load local.tee 5 local.get 5 local.get 2 i32.load offset=4 i32.const 4 i32.shl i32.add call $void_std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::insert_abi:v160006_<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*_ local.get 3 local.set 5 local.get 2 i32.const 172 i32.add local.set 3 loop ;; label = @1 local.get 3 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 3 i32.const 16 i32.sub local.tee 3 local.get 2 i32.const 12 i32.add i32.ne br_if 0 (;@1;) end local.get 1 i32.load local.get 1 i32.load offset=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 15 i32.add call $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 1 i32.load offset=4 local.get 1 i32.load i32.sub i32.const 2 i32.shr_s local.set 3 loop ;; label = @1 local.get 3 i32.const 0 i32.gt_s if ;; label = @2 local.get 1 i32.load local.get 3 i32.const 1 i32.sub local.tee 3 i32.const 2 i32.shl i32.add local.tee 4 i32.load i32.const 1 i32.sub i32.const 8 i32.gt_u br_if 1 (;@1;) local.get 5 local.get 4 call $std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::operator___int_const&_ local.set 4 block ;; label = @3 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @4 local.get 0 local.get 4 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@3;) end local.get 0 local.get 4 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end br 1 (;@1;) end end local.get 5 call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::~__tree__ drop local.get 2 i32.const 192 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::operator___int_const&_.1 (type 0) (param i32 i32) (result i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 local.get 1 i32.store offset=4 local.get 2 i32.const 8 i32.add local.get 0 local.get 1 global.get $__memory_base i32.const 57 i32.add local.get 2 i32.const 4 i32.add local.get 2 i32.const 3 i32.add call $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_unique_key_args<int__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>__std::__2::tuple<>>_int_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>&&__std::__2::tuple<>&&_ local.get 2 i32.load offset=8 local.get 2 i32.const 16 i32.add global.set $__stack_pointer i32.const 20 i32.add) (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::~__tree__.1 (type 1) (param i32) (result i32) local.get 0 local.get 0 i32.load offset=4 call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ local.get 0) (func $void_std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::insert_abi:v160006_<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*_.1 (type 2) (param i32 i32 i32) (local i32 i32) local.get 0 i32.const 4 i32.add local.set 4 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 8 i32.add local.get 0 local.get 4 local.get 1 local.get 1 call $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_hint_unique_key_args<int__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__int_const&__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ local.get 3 i32.load offset=8 drop local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 1 i32.const 16 i32.add local.set 1 br 1 (;@1;) end end) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 3 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base i32.const 15 i32.add call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 4 i32.const 1 i32.shl local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 178956970 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 12 i32.mul call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 3 local.get 0 i32.load local.set 1 local.get 2 i32.load offset=16 local.set 5 global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 local.get 5 i32.store offset=24 local.get 4 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 4 local.get 4 i32.const 28 i32.add i32.store offset=16 local.get 4 local.get 4 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 3 i32.ne if ;; label = @2 local.get 5 i32.const 12 i32.sub local.tee 5 local.get 3 i32.const 12 i32.sub local.tee 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 4 i32.const 1 i32.store8 offset=20 local.get 4 local.get 5 i32.store offset=28 local.get 4 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 3 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 3 i32.ne if ;; label = @3 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 3 br 1 (;@2;) end end end local.get 4 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 5 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 5 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_unique_key_args<int__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>__std::__2::tuple<>>_int_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>&&__std::__2::tuple<>&&_.1 (type 5) (param i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 local.get 1 local.get 3 i32.const 12 i32.add local.get 2 call $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__int_const&_ local.tee 5 i32.load local.tee 2 if (result i32) ;; label = @1 i32.const 0 else i32.const 32 call $operator_new_unsigned_long_ local.set 2 local.get 3 local.get 1 i32.const 4 i32.add i32.store offset=4 local.get 4 i32.load i32.load local.set 4 local.get 2 i64.const 0 i64.store offset=20 align=4 local.get 2 local.get 4 i32.store offset=16 local.get 2 i32.const 0 i32.store offset=28 local.get 3 i32.const 1 i32.store8 offset=8 local.get 1 local.get 3 i32.load offset=12 local.get 5 local.get 2 call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_ local.get 3 i32.const 0 i32.store local.get 3 call $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>::reset_abi:v160006__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ i32.const 1 end i32.store8 offset=4 local.get 0 local.get 2 i32.store local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_hint_unique_key_args<int__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__int_const&__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1 (type 6) (param i32 i32 i32 i32 i32) (local i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 5 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 local.get 5 i32.const 28 i32.add local.get 5 i32.const 24 i32.add local.get 3 call $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__std::__2::__tree_node_base<void*>*&__int_const&_ local.tee 2 i32.load local.tee 3 if (result i32) ;; label = @1 i32.const 0 else local.get 5 i32.const 12 i32.add local.tee 6 local.get 1 local.get 4 call $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__construct_node<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ local.get 1 local.get 5 i32.load offset=28 local.get 2 local.get 5 i32.load offset=12 call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_ local.get 5 i32.load offset=12 local.set 3 local.get 5 i32.const 0 i32.store offset=12 local.get 6 call $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>::reset_abi:v160006__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ i32.const 1 end i32.store8 offset=4 local.get 0 local.get 3 i32.store local.get 5 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__std::__2::__tree_node_base<void*>*&__int_const&_.1 (type 7) (param i32 i32 i32 i32 i32) (result i32) (local i32 i32 i32 i32) block ;; label = @1 block ;; label = @2 block ;; label = @3 local.get 1 local.get 0 i32.const 4 i32.add local.tee 8 i32.ne if ;; label = @4 local.get 4 i32.load local.tee 5 local.get 1 i32.load offset=16 local.tee 6 i32.ge_s br_if 1 (;@3;) end local.get 1 local.set 3 local.get 1 local.get 0 i32.load i32.ne if ;; label = @4 local.get 1 call $std::__2::__tree_node_base<void*>*_std::__2::__tree_prev_iter_abi:v160006_<std::__2::__tree_node_base<void*>*__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*_ local.tee 3 i32.load offset=16 local.get 4 i32.load i32.ge_s br_if 2 (;@2;) end local.get 1 i32.load i32.eqz if ;; label = @4 local.get 2 local.get 1 i32.store local.get 1 return end local.get 2 local.get 3 i32.store local.get 3 i32.const 4 i32.add return end local.get 5 local.get 6 i32.le_s br_if 1 (;@1;) global.get $__stack_pointer i32.const 16 i32.sub local.tee 7 global.set $__stack_pointer local.get 7 local.get 1 i32.store offset=12 i32.const 1 local.set 3 loop ;; label = @3 local.get 3 i32.const 0 i32.gt_s if ;; label = @4 local.get 7 block (result i32) ;; label = @5 local.get 7 i32.load offset=12 local.tee 5 i32.load offset=4 local.tee 6 if ;; label = @6 local.get 6 local.set 5 loop ;; label = @7 local.get 5 local.tee 6 i32.load local.tee 5 br_if 0 (;@7;) end local.get 6 br 1 (;@5;) end loop ;; label = @6 local.get 5 local.get 5 i32.load offset=8 local.tee 5 i32.load i32.ne br_if 0 (;@6;) end local.get 5 end i32.store offset=12 local.get 3 i32.const 1 i32.sub local.set 3 br 1 (;@3;) end end local.get 7 i32.load offset=12 local.set 3 local.get 7 i32.const 16 i32.add global.set $__stack_pointer local.get 3 local.get 8 i32.ne if ;; label = @3 local.get 4 i32.load local.get 3 i32.load offset=16 i32.ge_s br_if 1 (;@2;) end local.get 1 i32.load offset=4 i32.eqz if ;; label = @3 local.get 2 local.get 1 i32.store local.get 1 i32.const 4 i32.add return end local.get 2 local.get 3 i32.store local.get 3 return end local.get 0 local.get 2 local.get 4 call $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__int_const&_ return end local.get 2 local.get 1 i32.store local.get 3 local.get 1 i32.store local.get 3) (func $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__construct_node<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1 (type 2) (param i32 i32 i32) (local i32) i32.const 32 call $operator_new_unsigned_long_ local.set 3 local.get 0 i32.const 0 i32.store8 offset=8 local.get 0 local.get 1 i32.const 4 i32.add i32.store offset=4 local.get 0 local.get 3 i32.store local.get 3 i32.const 16 i32.add local.get 2 call $std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::pair_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_ drop local.get 0 i32.const 1 i32.store8 offset=8) (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_.1 (type 8) (param i32 i32 i32 i32) (local i32 i32) local.get 3 local.get 1 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 2 local.get 3 i32.store local.get 0 i32.load i32.load local.tee 1 if ;; label = @1 local.get 0 local.get 1 i32.store local.get 2 i32.load local.set 3 end local.get 3 local.get 3 local.get 0 i32.load offset=4 local.tee 5 i32.eq i32.store8 offset=12 loop ;; label = @1 block ;; label = @2 local.get 3 local.get 5 i32.eq br_if 0 (;@2;) local.get 3 i32.load offset=8 local.tee 2 i32.load8_u offset=12 br_if 0 (;@2;) block ;; label = @3 local.get 2 local.get 2 i32.load offset=8 local.tee 1 i32.load local.tee 4 i32.eq if ;; label = @4 block ;; label = @5 local.get 1 i32.load offset=4 local.tee 4 i32.eqz br_if 0 (;@5;) local.get 4 i32.load8_u offset=12 br_if 0 (;@5;) br 2 (;@3;) end local.get 3 local.get 2 i32.load i32.ne if ;; label = @5 local.get 2 call $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ local.get 2 i32.load offset=8 local.tee 2 i32.load offset=8 local.set 1 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 i32.const 0 i32.store8 offset=12 local.get 1 call $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ br 2 (;@2;) end block ;; label = @4 local.get 4 i32.eqz br_if 0 (;@4;) local.get 4 i32.load8_u offset=12 br_if 0 (;@4;) br 1 (;@3;) end local.get 3 local.get 2 i32.load i32.eq if ;; label = @4 local.get 2 call $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ local.get 2 i32.load offset=8 local.tee 2 i32.load offset=8 local.set 1 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 i32.const 0 i32.store8 offset=12 local.get 1 call $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ br 1 (;@2;) end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 local.get 1 local.get 5 i32.eq i32.store8 offset=12 local.get 4 i32.const 1 i32.store8 offset=12 local.get 1 local.set 3 br 1 (;@1;) end end local.get 0 local.get 0 i32.load offset=8 i32.const 1 i32.add i32.store offset=8) (func $std::__2::__tree_node_base<void*>*_std::__2::__tree_prev_iter_abi:v160006_<std::__2::__tree_node_base<void*>*__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*_ (type 1) (param i32) (result i32) (local i32) local.get 0 i32.load local.tee 1 if ;; label = @1 local.get 1 local.set 0 loop ;; label = @2 local.get 0 local.tee 1 i32.load offset=4 local.tee 0 br_if 0 (;@2;) end local.get 1 return end loop ;; label = @1 local.get 0 local.get 0 i32.load offset=8 local.tee 0 i32.load i32.eq br_if 0 (;@1;) end local.get 0) (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__int_const&_.1 (type 9) (param i32 i32 i32) (result i32) (local i32 i32) local.get 0 i32.const 4 i32.add local.set 4 block ;; label = @1 local.get 0 i32.load offset=4 local.tee 3 i32.eqz if ;; label = @2 local.get 4 local.set 0 br 1 (;@1;) end local.get 2 i32.load local.set 2 loop ;; label = @2 local.get 3 local.tee 0 i32.load offset=16 local.tee 3 local.get 2 i32.gt_s if ;; label = @3 local.get 0 local.set 4 local.get 0 i32.load local.tee 3 br_if 1 (;@2;) br 2 (;@1;) end local.get 2 local.get 3 i32.le_s br_if 1 (;@1;) local.get 0 i32.const 4 i32.add local.set 4 local.get 0 i32.load offset=4 local.tee 3 br_if 0 (;@2;) end end local.get 1 local.get 0 i32.store local.get 4) (func $std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::pair_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 i32.load i32.store local.get 0 i32.const 4 i32.add local.get 1 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 0) (func $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>::reset_abi:v160006__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ (type 4) (param i32) (local i32) local.get 0 i32.load local.set 1 local.get 0 i32.const 0 i32.store local.get 1 if ;; label = @1 local.get 0 i32.load8_u offset=8 if ;; label = @2 local.get 1 i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 1 if ;; label = @2 local.get 1 call $operator_delete_void*_ end end) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (func $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ (type 4) (param i32) (local i32 i32) local.get 0 local.get 0 i32.load offset=4 local.tee 1 i32.load local.tee 2 i32.store offset=4 local.get 2 if ;; label = @1 local.get 2 local.get 0 i32.store offset=8 end local.get 1 local.get 0 i32.load offset=8 i32.store offset=8 local.get 0 i32.load offset=8 local.tee 2 local.get 2 i32.load local.get 0 i32.ne i32.const 2 i32.shl i32.add local.get 1 i32.store local.get 1 local.get 0 i32.store local.get 0 local.get 1 i32.store offset=8) (func $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ (type 4) (param i32) (local i32 i32) local.get 0 local.get 0 i32.load local.tee 1 i32.load offset=4 local.tee 2 i32.store local.get 2 if ;; label = @1 local.get 2 local.get 0 i32.store offset=8 end local.get 1 local.get 0 i32.load offset=8 i32.store offset=8 local.get 0 i32.load offset=8 local.tee 2 local.get 2 i32.load local.get 0 i32.ne i32.const 2 i32.shl i32.add local.get 1 i32.store local.get 1 local.get 0 i32.store offset=4 local.get 0 local.get 1 i32.store offset=8) (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_.1 (type 3) (param i32 i32) local.get 1 if ;; label = @1 local.get 0 local.get 1 i32.load call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ local.get 0 local.get 1 i32.load offset=4 call $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_ local.get 1 i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 1 call $operator_delete_void*_ end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9by_lengthNSt3__26vectorIiNS_9allocatorIiEEEE" (func $by_length_std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEEixERSA_" (func $std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::operator___int_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEED2Ev" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::~__tree__.1)) (export "_ZNSt3__23mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIiEENS4_INS_4pairIKiS6_EEEEE6insertB7v160006IPKSB_EEvT_SH_" (func $void_std::__2::map<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::less<int>__std::__2::allocator<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::insert_abi:v160006_<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE25__emplace_unique_key_argsIiJRKNS_21piecewise_construct_tENS_5tupleIJRKiEEENSJ_IJEEEEEENS_4pairINS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_unique_key_args<int__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>__std::__2::tuple<>>_int_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<int_const&>&&__std::__2::tuple<>&&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE30__emplace_hint_unique_key_argsIiJRKNS_4pairIKiS7_EEEEENSG_INS_15__tree_iteratorIS8_PNS_11__tree_nodeIS8_PvEElEEbEENS_21__tree_const_iteratorIS8_SP_lEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__emplace_hint_unique_key_args<int__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__int_const&__std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEENS_21__tree_const_iteratorIS8_PNS_11__tree_nodeIS8_SH_EElEERPNS_15__tree_end_nodeISJ_EESK_RKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_const_iterator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*__long>__std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__std::__2::__tree_node_base<void*>*&__int_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__construct_nodeIJRKNS_4pairIKiS7_EEEEENS_10unique_ptrINS_11__tree_nodeIS8_PvEENS_22__tree_node_destructorINS5_ISO_EEEEEEDpOT_" (func $std::__2::unique_ptr<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>__std::__2::__tree_node_destructor<std::__2::allocator<std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>>>>_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__construct_node<std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&>_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSJ_SJ_" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE12__find_equalIiEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISJ_EERKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::__find_equal<int>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__int_const&_.1)) (export "_ZNSt3__24pairIKiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEC2ERKS8_" (func $std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::pair_std::__2::pair<int_const__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_19__map_value_compareIiS8_NS_4lessIiEELb1EEENS5_IS8_EEE7destroyEPNS_11__tree_nodeIS8_PvEE" (func $std::__2::__tree<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::__map_value_compare<int__std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__std::__2::less<int>__true>__std::__2::allocator<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>>::destroy_std::__2::__tree_node<std::__2::__value_type<int__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>__void*>*_.1)) (data $.rodata (global.get $__memory_base) "Six\00Eight\00Four\00vector\00Two\00Zero\00Seven\00Five\00Nine\00One\00Three\00\00"))
CPP/106
/* Implement the function f that takes n as a parameter, and returns a vector of size n, such that the value of the element at index i is the factorial of i if i is even or the sum of numbers from 1 to i otherwise. i starts from 1. the factorial of i is the multiplication of the numbers from 1 to i (1 * 2 * ... * i). Example: f(5) == {1, 2, 6, 24, 15} */ #include<stdio.h> #include<vector> using namespace std; vector<int> f(int n){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> vector<int> f(int n){
int sum=0,prod=1; vector<int> out={}; for (int i=1;i<=n;i++) { sum+=i; prod*=i; if (i%2==0) out.push_back(prod); else out.push_back(sum); } return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(f(5) , {1, 2, 6, 24, 15})); assert (issame(f(7) , {1, 2, 6, 24, 15, 720, 28})); assert (issame(f(1) , {1})); assert (issame(f(3) , {1, 2, 6})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(f(5) , {1, 2, 6, 24, 15})); }
; ModuleID = 'c_code/code_105.cpp' source_filename = "c_code/code_105.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z1fi(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca i32, align 4 %4 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #13 store i32 0, ptr %3, align 4, !tbaa !3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #13 store i32 1, ptr %4, align 4, !tbaa !3 store ptr null, ptr %0, align 4, !tbaa !7 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !12 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %6, align 4, !tbaa !13 %7 = tail call i32 @llvm.smax.i32(i32 %1, i32 0) %8 = add nuw i32 %7, 1 br label %9 9: ; preds = %12, %2 %10 = phi i32 [ 1, %2 ], [ %20, %12 ] %11 = icmp eq i32 %10, %8 br i1 %11, label %21, label %12 12: ; preds = %9 %13 = load i32, ptr %3, align 4, !tbaa !3 %14 = add nsw i32 %13, %10 store i32 %14, ptr %3, align 4, !tbaa !3 %15 = load i32, ptr %4, align 4, !tbaa !3 %16 = mul nsw i32 %15, %10 store i32 %16, ptr %4, align 4, !tbaa !3 %17 = and i32 %10, 1 %18 = icmp eq i32 %17, 0 %19 = select i1 %18, ptr %4, ptr %3 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %19) #14 %20 = add nuw i32 %10, 1 br label %9, !llvm.loop !14 21: ; preds = %9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #13 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #13 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !12 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !16 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !3 store i32 %9, ptr %4, align 4, !tbaa !3 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !12 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #14 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #13 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !12 %7 = load ptr, ptr %0, align 4, !tbaa !7 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #14 %14 = load ptr, ptr %5, align 4, !tbaa !12 %15 = load ptr, ptr %0, align 4, !tbaa !7 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !17 %23 = load i32, ptr %1, align 4, !tbaa !3 store i32 %23, ptr %22, align 4, !tbaa !3 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !17 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #14 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #13 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !16 %8 = load ptr, ptr %0, align 4, !tbaa !7 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !13 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #14, !noalias !21 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !24 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !17 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !25 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !16 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !12 %5 = load ptr, ptr %0, align 4, !tbaa !7 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !25 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !3, !noalias !26 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !3, !noalias !26 br label %8, !llvm.loop !31 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !25 %17 = load ptr, ptr %0, align 4, !tbaa !16 store ptr %10, ptr %0, align 4, !tbaa !16 store ptr %17, ptr %6, align 4, !tbaa !16 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !16 %20 = load ptr, ptr %18, align 4, !tbaa !16 store ptr %20, ptr %3, align 4, !tbaa !16 store ptr %19, ptr %18, align 4, !tbaa !16 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !16 %24 = load ptr, ptr %22, align 4, !tbaa !16 store ptr %24, ptr %21, align 4, !tbaa !16 store ptr %23, ptr %22, align 4, !tbaa !16 %25 = load ptr, ptr %6, align 4, !tbaa !25 store ptr %25, ptr %1, align 4, !tbaa !24 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #5 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #15 %2 = load ptr, ptr %0, align 4, !tbaa !24 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !32 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #5 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #8 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #16 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #7 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #13 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #15 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !25 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !17 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !17 br label %5, !llvm.loop !34 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #12 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !10, i64 8} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !11, i64 0} !11 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !12 = !{!8, !9, i64 4} !13 = !{!11, !9, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = !{!9, !9, i64 0} !17 = !{!18, !9, i64 8} !18 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !9, i64 8, !19, i64 12} !19 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !11, i64 0, !20, i64 4} !20 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !9, i64 0} !21 = !{!22} !22 = distinct !{!22, !23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !23 = distinct !{!23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !24 = !{!18, !9, i64 0} !25 = !{!18, !9, i64 4} !26 = !{!27, !29} !27 = distinct !{!27, !28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !28 = distinct !{!28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !29 = distinct !{!29, !30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !30 = distinct !{!30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !31 = distinct !{!31, !15} !32 = !{!33, !33, i64 0} !33 = !{!"vtable pointer", !6, i64 0} !34 = distinct !{!34, !15}
(module $code_105.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $f_int_ (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i32.const 0 i32.store offset=12 local.get 2 i32.const 1 i32.store offset=8 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 1 i32.const 0 local.get 1 i32.const 0 i32.gt_s select i32.const 1 i32.add local.set 5 i32.const 1 local.set 1 loop ;; label = @1 local.get 1 local.get 5 i32.ne if ;; label = @2 local.get 2 local.get 2 i32.load offset=12 local.get 1 i32.add i32.store offset=12 local.get 2 local.get 2 i32.load offset=8 local.get 1 i32.mul i32.store offset=8 local.get 2 i32.const 12 i32.add local.get 2 i32.const 8 i32.add local.get 1 i32.const 1 i32.and select local.set 3 block ;; label = @3 local.get 0 i32.load offset=4 local.tee 4 local.get 0 i32.load offset=8 i32.ne if ;; label = @4 local.get 4 local.get 3 i32.load i32.store local.get 0 local.get 4 i32.const 4 i32.add i32.store offset=4 br 1 (;@3;) end local.get 0 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end local.get 2 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z1fi" (func $f_int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/107
/* Given a positive integer n, return a vector that has the number of even and odd integer palindromes that fall within the range(1, n), inclusive. Example 1: Input: 3 Output: (1, 2) Explanation: Integer palindrome are 1, 2, 3. one of them is even, and two of them are odd. Example 2: Input: 12 Output: (4, 6) Explanation: Integer palindrome are 1, 2, 3, 4, 5, 6, 7, 8, 9, 11. four of them are even, and 6 of them are odd. Note: 1. 1 <= n <= 10^3 2. returned vector has the number of even and odd integer palindromes respectively. */ #include<stdio.h> #include<vector> #include<string> using namespace std; vector<int> even_odd_palindrome(int n){
#include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> vector<int> even_odd_palindrome(int n){
int num1=0,num2=0; for (int i=1;i<=n;i++) { string w=to_string(i); string p(w.rbegin(),w.rend()); if (w==p and i%2==1) num1+=1; if (w==p and i%2==0) num2+=1; } return {num2,num1}; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(even_odd_palindrome(123) , {8, 13})); assert (issame(even_odd_palindrome(12) , {4, 6})); assert (issame(even_odd_palindrome(3) , {1, 2})); assert (issame(even_odd_palindrome(63) , {6, 8})); assert (issame(even_odd_palindrome(25) , {5, 6})); assert (issame(even_odd_palindrome(19) , {4, 6})); assert (issame(even_odd_palindrome(9) , {4, 5})); assert (issame(even_odd_palindrome(1) , {0, 1})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(even_odd_palindrome(12) , {4, 6})); assert (issame(even_odd_palindrome(3) , {1, 2})); }
; ModuleID = 'c_code/code_106.cpp' source_filename = "c_code/code_106.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } $_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any @.str = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.1 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z19even_odd_palindromei(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::initializer_list", align 4 %6 = alloca [2 x i32], align 4 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 %9 = tail call i32 @llvm.smax.i32(i32 %1, i32 0) %10 = add nuw i32 %9, 1 br label %11 11: ; preds = %20, %2 %12 = phi i32 [ 1, %2 ], [ %42, %20 ] %13 = phi i32 [ 0, %2 ], [ %39, %20 ] %14 = phi i32 [ 0, %2 ], [ %35, %20 ] %15 = icmp eq i32 %12, %10 br i1 %15, label %16, label %20 16: ; preds = %11 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #16 store i32 %13, ptr %6, align 4, !tbaa !3 %17 = getelementptr inbounds i32, ptr %6, i32 1 store i32 %14, ptr %17, align 4, !tbaa !3 store ptr %6, ptr %5, align 4, !tbaa !7 %18 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1 store i32 2, ptr %18, align 4, !tbaa !11 %19 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %5) #17 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #16 ret void 20: ; preds = %11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #16 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, i32 noundef %12) #17 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #16 %21 = load i8, ptr %7, align 1 %22 = icmp slt i8 %21, 0 %23 = load ptr, ptr %3, align 4 %24 = select i1 %22, ptr %23, ptr %3 %25 = load i32, ptr %8, align 4 %26 = zext i8 %21 to i32 %27 = select i1 %22, i32 %25, i32 %26 %28 = getelementptr inbounds i8, ptr %24, i32 %27 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr %28, ptr %24) #17 %29 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %30 = and i32 %12, 1 %31 = icmp eq i32 %30, 0 %32 = xor i1 %31, true %33 = and i1 %29, %32 %34 = zext i1 %33 to i32 %35 = add nuw nsw i32 %14, %34 %36 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %37 = and i1 %31, %36 %38 = zext i1 %37 to i32 %39 = add nuw nsw i32 %13, %38 %40 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #16 %41 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #16 %42 = add nuw i32 %12, 1 br label %11, !llvm.loop !12 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %7 = load i32, ptr %6, align 4 %8 = zext i8 %4 to i32 %9 = select i1 %5, i32 %7, i32 %8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %11 = load i8, ptr %10, align 1 %12 = icmp slt i8 %11, 0 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %14 = load i32, ptr %13, align 4 %15 = zext i8 %11 to i32 %16 = select i1 %12, i32 %14, i32 %15 %17 = icmp eq i32 %9, %16 br i1 %17, label %18, label %38 18: ; preds = %2 %19 = load ptr, ptr %1, align 4 %20 = select i1 %12, ptr %19, ptr %1 br i1 %5, label %21, label %25 21: ; preds = %18 %22 = load ptr, ptr %0, align 4 %23 = tail call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %22, ptr noundef %20, i32 noundef %7) #18 %24 = icmp eq i32 %23, 0 br label %38 25: ; preds = %18, %34 %26 = phi i32 [ %35, %34 ], [ %8, %18 ] %27 = phi ptr [ %36, %34 ], [ %0, %18 ] %28 = phi ptr [ %37, %34 ], [ %20, %18 ] %29 = icmp eq i32 %26, 0 br i1 %29, label %38, label %30 30: ; preds = %25 %31 = load i8, ptr %27, align 1, !tbaa !14 %32 = load i8, ptr %28, align 1, !tbaa !14 %33 = icmp eq i8 %31, %32 br i1 %33, label %34, label %38 34: ; preds = %30 %35 = add nsw i32 %26, -1 %36 = getelementptr inbounds i8, ptr %27, i32 1 %37 = getelementptr inbounds i8, ptr %28, i32 1 br label %25, !llvm.loop !15 38: ; preds = %30, %25, %21, %2 %39 = phi i1 [ false, %2 ], [ %24, %21 ], [ %29, %25 ], [ %29, %30 ] ret i1 %39 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !16 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !20 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !21 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #16 store ptr %0, ptr %3, align 4, !tbaa.struct !22, !alias.scope !24 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !11 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #17 %10 = load ptr, ptr %1, align 4, !tbaa !7 %11 = load ptr, ptr %4, align 4, !tbaa !20 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !27 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !20 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !38 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #18 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #16 ret ptr %0 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr %2) local_unnamed_addr #6 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %2 to i32 %6 = sub i32 %4, %5 %7 = icmp ugt i32 %6, 2147483631 br i1 %7, label %8, label %9 8: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 9: ; preds = %3 %10 = icmp ult i32 %6, 11 br i1 %10, label %11, label %14 11: ; preds = %9 %12 = trunc i32 %6 to i8 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %12, ptr %13, align 1 br label %21 14: ; preds = %9 %15 = or i32 %6, 15 %16 = add nuw i32 %15, 1 %17 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %16) #20, !noalias !42 store ptr %17, ptr %0, align 4, !tbaa !14 %18 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %19 = or i32 %16, -2147483648 store i32 %19, ptr %18, align 4 %20 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %6, ptr %20, align 4, !tbaa !14 br label %21 21: ; preds = %14, %11 %22 = phi ptr [ %0, %11 ], [ %17, %14 ] br label %23 23: ; preds = %21, %27 %24 = phi ptr [ %28, %27 ], [ %1, %21 ] %25 = phi ptr [ %30, %27 ], [ %22, %21 ] %26 = icmp eq ptr %24, %2 br i1 %26, label %31, label %27 27: ; preds = %23 %28 = getelementptr inbounds i8, ptr %24, i32 -1 %29 = load i8, ptr %28, align 1, !tbaa !14 store i8 %29, ptr %25, align 1, !tbaa !14 %30 = getelementptr inbounds i8, ptr %25, i32 1 br label %23, !llvm.loop !45 31: ; preds = %23 store i8 0, ptr %25, align 1, !tbaa !14 ret void } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #19 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #16 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #17 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #21 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #17 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !46 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #16 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #18 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #21 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #11 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #18 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #12 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #13 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #17, !noalias !48 store ptr %7, ptr %0, align 4, !tbaa !16 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !20 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !23 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #9 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !38, !range !51, !noundef !52 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #18 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #19 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #13 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #19 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #20 ret ptr %7 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #14 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #13 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !53 %3 = load ptr, ptr %2, align 4, !tbaa !16 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !20 tail call void @_ZdlPv(ptr noundef nonnull %3) #22 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #15 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #15 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #16 = { nounwind } attributes #17 = { minsize optsize } attributes #18 = { minsize nounwind optsize } attributes #19 = { minsize noreturn optsize } attributes #20 = { builtin minsize optsize allocsize(0) } attributes #21 = { noreturn } attributes #22 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSSt16initializer_listIiE", !9, i64 0, !10, i64 4} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"long", !5, i64 0} !11 = !{!8, !10, i64 4} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"} !14 = !{!5, !5, i64 0} !15 = distinct !{!15, !13} !16 = !{!17, !9, i64 0} !17 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !18, i64 8} !18 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !19, i64 0} !19 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !20 = !{!17, !9, i64 4} !21 = !{!19, !9, i64 0} !22 = !{i64 0, i64 4, !23} !23 = !{!9, !9, i64 0} !24 = !{!25} !25 = distinct !{!25, !26, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !26 = distinct !{!26, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !27 = !{!28, !30, !32, !34, !36} !28 = distinct !{!28, !29, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !29 = distinct !{!29, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !30 = distinct !{!30, !31, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !31 = distinct !{!31, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !32 = distinct !{!32, !33, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !34 = distinct !{!34, !35, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !36 = distinct !{!36, !37, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !37 = distinct !{!37, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !38 = !{!39, !41, i64 4} !39 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !40, i64 0, !41, i64 4} !40 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !9, i64 0} !41 = !{!"bool", !5, i64 0} !42 = !{!43} !43 = distinct !{!43, !44, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !44 = distinct !{!44, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !45 = distinct !{!45, !13} !46 = !{!47, !47, i64 0} !47 = !{!"vtable pointer", !6, i64 0} !48 = !{!49} !49 = distinct !{!49, !50, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !50 = distinct !{!50, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !51 = !{i8 0, i8 2} !52 = !{} !53 = !{!40, !9, i64 0}
(module $code_106.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 1))) (import "env" "memmove" (func $memmove (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "memcmp" (func $memcmp (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $even_odd_palindrome_int_ (type 3) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 2 global.set $__stack_pointer local.get 1 i32.const 0 local.get 1 i32.const 0 i32.gt_s select i32.const 1 i32.add local.set 7 i32.const 1 local.set 1 loop ;; label = @1 local.get 1 local.get 7 i32.eq if ;; label = @2 local.get 2 i32.const 2 i32.store offset=20 local.get 2 local.get 5 i32.store offset=40 local.get 2 local.get 6 i32.store offset=36 local.get 2 local.get 2 i32.const 36 i32.add i32.store offset=16 local.get 2 local.get 2 i64.load offset=16 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 1 local.get 0 i32.store offset=8 local.get 2 i32.load offset=12 local.tee 3 if ;; label = @3 local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @4 global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @4 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 local.get 3 i32.const 2 i32.shl local.tee 3 call $operator_new_unsigned_long_ local.tee 4 i32.store offset=4 local.get 0 local.get 4 i32.store local.get 0 local.get 3 local.get 4 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 2 i32.load offset=8 local.get 3 call $memmove local.get 3 i32.add i32.store offset=4 end local.get 1 i32.const 1 i32.store8 offset=12 local.get 1 i32.load8_u offset=12 i32.eqz if ;; label = @3 local.get 1 i32.load offset=8 local.tee 3 i32.load local.tee 0 if ;; label = @4 local.get 3 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end end local.get 1 i32.const 16 i32.add global.set $__stack_pointer local.get 2 i32.const 48 i32.add global.set $__stack_pointer else local.get 2 i32.const 36 i32.add local.tee 3 local.get 1 call $std::__2::to_string_int_ local.get 2 i32.const 24 i32.add local.tee 4 local.get 2 i32.load offset=36 local.get 3 local.get 2 i32.load8_s offset=47 local.tee 8 i32.const 0 i32.lt_s local.tee 9 select local.tee 10 local.get 2 i32.load offset=40 local.get 8 i32.const 255 i32.and local.get 9 select i32.add local.get 10 call $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ local.get 5 local.get 3 local.get 4 call $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.get 1 i32.and i32.add local.set 5 local.get 6 local.get 3 local.get 4 call $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.get 1 i32.const 1 i32.and i32.eqz i32.and i32.add local.set 6 local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end) (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1 (type 2) (param i32 i32 i32) (local i32 i32 i32) local.get 1 local.get 2 i32.sub local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @1 block ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 local.get 3 i32.store8 offset=11 br 1 (;@2;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 5 call $operator_new_unsigned_long_ local.set 4 local.get 0 local.get 5 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 local.get 4 i32.store local.get 0 local.get 3 i32.store offset=4 local.get 4 local.set 0 end loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 0 local.get 1 i32.const 1 i32.sub local.tee 1 i32.load8_u i32.store8 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@2;) end end local.get 0 i32.const 0 i32.store8 return end global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable) (func $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 4) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32) block ;; label = @1 local.get 0 i32.load offset=4 local.tee 5 local.get 0 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s local.tee 6 i32.const 0 i32.lt_s select local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s local.tee 4 i32.const 0 i32.lt_s select i32.ne br_if 0 (;@1;) local.get 1 i32.load local.get 1 local.get 4 i32.const 0 i32.lt_s select local.set 1 local.get 6 i32.const 0 i32.ge_s if ;; label = @2 loop ;; label = @3 local.get 2 i32.eqz local.set 3 local.get 2 i32.eqz br_if 2 (;@1;) local.get 0 i32.load8_u local.get 1 i32.load8_u i32.ne br_if 2 (;@1;) local.get 1 i32.const 1 i32.add local.set 1 local.get 0 i32.const 1 i32.add local.set 0 local.get 2 i32.const 1 i32.sub local.set 2 br 0 (;@3;) end unreachable end local.get 0 i32.load local.get 1 local.get 5 call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ i32.eqz local.set 3 end local.get 3) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 1) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 5) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z19even_odd_palindromei" (func $even_odd_palindrome_int_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00"))
CPP/108
/* Write a function count_nums which takes a vector of integers and returns the number of elements which has a sum of digits > 0. If a number is negative, then its first signed digit will be negative: e.g. -123 has signed digits -1, 2, and 3. >>> count_nums({}) == 0 >>> count_nums({-1, 11, -11}) == 1 >>> count_nums({1, 1, 2}) == 3 */ #include<stdio.h> #include<math.h> #include<vector> using namespace std; int count_nums(vector<int> n){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> int count_nums(vector<int> n){
int num=0; for (int i=0;i<n.size();i++) if (n[i]>0) num+=1; else { int sum=0; int w; w=abs(n[i]); while (w>=10) { sum+=w%10; w=w/10; } sum-=w; if (sum>0) num+=1; } return num; }
#undef NDEBUG #include<assert.h> int main(){ assert (count_nums({}) == 0); assert (count_nums({-1, -2, 0}) == 0); assert (count_nums({1, 1, 2, -2, 3, 4, 5}) == 6); assert (count_nums({1, 6, 9, -6, 0, 1, 5}) == 5); assert (count_nums({1, 100, 98, -7, 1, -1}) == 4); assert (count_nums({12, 23, 34, -45, -56, 0}) == 5); assert (count_nums({-0, 1}) == 1); assert (count_nums({1}) == 1); }
#undef NDEBUG #include<assert.h> int main(){ assert (count_nums({}) == 0); assert (count_nums({-1, 11, -11}) == 1); assert (count_nums({1, 1, 2}) == 3); }
; ModuleID = 'c_code/code_107.cpp' source_filename = "c_code/code_107.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z10count_numsNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 br label %9 9: ; preds = %33, %1 %10 = phi i32 [ 0, %1 ], [ %35, %33 ] %11 = phi i32 [ 0, %1 ], [ %36, %33 ] %12 = icmp eq i32 %11, %8 br i1 %12, label %13, label %14 13: ; preds = %9 ret i32 %10 14: ; preds = %9 %15 = getelementptr inbounds i32, ptr %4, i32 %11 %16 = load i32, ptr %15, align 4, !tbaa !11 %17 = icmp sgt i32 %16, 0 br i1 %17, label %33, label %18 18: ; preds = %14 %19 = sub nsw i32 0, %16 br label %20 20: ; preds = %24, %18 %21 = phi i32 [ 0, %18 ], [ %29, %24 ] %22 = phi i32 [ %19, %18 ], [ %26, %24 ] %23 = icmp ugt i32 %22, 9 br i1 %23, label %24, label %30 24: ; preds = %20 %25 = freeze i32 %22 %26 = udiv i32 %25, 10 %27 = mul i32 %26, 10 %28 = sub i32 %25, %27 %29 = add nuw nsw i32 %28, %21 br label %20, !llvm.loop !13 30: ; preds = %20 %31 = icmp ugt i32 %21, %22 %32 = zext i1 %31 to i32 br label %33 33: ; preds = %14, %30 %34 = phi i32 [ %32, %30 ], [ 1, %14 ] %35 = add nuw nsw i32 %10, %34 %36 = add nuw i32 %11, 1 br label %9, !llvm.loop !15 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = distinct !{!15, !14}
(module $code_107.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $count_nums_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 4 i32.sub i32.const 2 i32.shr_s local.set 5 loop ;; label = @1 local.get 1 local.get 5 i32.eq i32.eqz if ;; label = @2 i32.const 1 local.set 0 local.get 4 local.get 1 i32.const 2 i32.shl i32.add i32.load local.tee 6 i32.const 0 i32.le_s if ;; label = @3 i32.const 0 local.set 3 i32.const 0 local.get 6 i32.sub local.set 0 loop ;; label = @4 local.get 0 i32.const 10 i32.lt_u i32.eqz if ;; label = @5 local.get 0 local.get 3 i32.add local.get 0 i32.const 10 i32.div_u local.tee 0 i32.const -10 i32.mul i32.add local.set 3 br 1 (;@4;) end end local.get 0 local.get 3 i32.lt_u local.set 0 end local.get 1 i32.const 1 i32.add local.set 1 local.get 0 local.get 2 i32.add local.set 2 br 1 (;@1;) end end local.get 2) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10count_numsNSt3__26vectorIiNS_9allocatorIiEEEE" (func $count_nums_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/109
/* We have a vector "arr" of N integers arr[1], arr[2], ..., arr[N].The numbers in the vector will be randomly ordered. Your task is to determine if it is possible to get a vector sorted in non-decreasing order by performing the following operation on the given vector: You are allowed to perform right shift operation any number of times. One right shift operation means shifting all elements of the vector by one position in the right direction. The last element of the vector will be moved to the starting position in the vector i.e. 0th index. If it is possible to obtain the sorted vector by performing the above operation then return true else return false. If the given vector is empty then return true. Note: The given vector is guaranteed to have unique elements. For Example: move_one_ball({3, 4, 5, 1, 2})==>true Explanation: By performing 2 right shift operations, non-decreasing order can be achieved for the given vector. move_one_ball({3, 5, 4, 1, 2})==>false Explanation:It is not possible to get non-decreasing order for the given vector by performing any number of right shift operations. */ #include<stdio.h> #include<vector> using namespace std; bool move_one_ball(vector<int> arr){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> bool move_one_ball(vector<int> arr){
int num=0; if (arr.size()==0) return true; for (int i=1;i<arr.size();i++) if (arr[i]<arr[i-1]) num+=1; if (arr[arr.size()-1]>arr[0]) num+=1; if (num<2) return true; return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (move_one_ball({3, 4, 5, 1, 2})==true); assert (move_one_ball({3, 5, 10, 1, 2})==true); assert (move_one_ball({4, 3, 1, 2})==false); assert (move_one_ball({3, 5, 4, 1, 2})==false); assert (move_one_ball({})==true); }
#undef NDEBUG #include<assert.h> int main(){ assert (move_one_ball({3, 4, 5, 1, 2})==true); assert (move_one_ball({3, 5, 4, 1, 2})==false); }
; ModuleID = 'c_code/code_108.cpp' source_filename = "c_code/code_108.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef zeroext i1 @_Z13move_one_ballNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 %9 = icmp eq ptr %3, %4 br i1 %9, label %35, label %10 10: ; preds = %1 %11 = tail call i32 @llvm.umax.i32(i32 %8, i32 1) br label %12 12: ; preds = %10, %25 %13 = phi i32 [ %33, %25 ], [ 0, %10 ] %14 = phi i32 [ %34, %25 ], [ 1, %10 ] %15 = icmp eq i32 %14, %11 br i1 %15, label %16, label %25 16: ; preds = %12 %17 = add nsw i32 %8, -1 %18 = getelementptr inbounds i32, ptr %4, i32 %17 %19 = load i32, ptr %18, align 4, !tbaa !11 %20 = load i32, ptr %4, align 4, !tbaa !11 %21 = icmp sgt i32 %19, %20 %22 = zext i1 %21 to i32 %23 = add nuw nsw i32 %13, %22 %24 = icmp ult i32 %23, 2 br label %35 25: ; preds = %12 %26 = getelementptr inbounds i32, ptr %4, i32 %14 %27 = load i32, ptr %26, align 4, !tbaa !11 %28 = add nsw i32 %14, -1 %29 = getelementptr inbounds i32, ptr %4, i32 %28 %30 = load i32, ptr %29, align 4, !tbaa !11 %31 = icmp slt i32 %27, %30 %32 = zext i1 %31 to i32 %33 = add nuw nsw i32 %13, %32 %34 = add nuw i32 %14, 1 br label %12, !llvm.loop !13 35: ; preds = %16, %1 %36 = phi i1 [ true, %1 ], [ %24, %16 ] ret i1 %36 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_108.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $move_one_ball_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 i32) local.get 0 i32.load offset=4 local.tee 1 local.get 0 i32.load local.tee 2 i32.eq if ;; label = @1 i32.const 1 return end i32.const 1 local.get 1 local.get 2 i32.sub i32.const 2 i32.shr_s local.tee 3 local.get 3 i32.const 1 i32.le_u select local.set 4 i32.const 0 local.set 1 i32.const 1 local.set 0 loop (result i32) ;; label = @1 local.get 0 local.get 4 i32.eq if (result i32) ;; label = @2 local.get 1 local.get 3 i32.const 2 i32.shl local.get 2 i32.add i32.const 4 i32.sub i32.load local.get 2 i32.load i32.gt_s i32.add i32.const 2 i32.lt_u else local.get 1 local.get 2 local.get 0 i32.const 2 i32.shl i32.add local.tee 5 i32.load local.get 5 i32.const 4 i32.sub i32.load i32.lt_s i32.add local.set 1 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z13move_one_ballNSt3__26vectorIiNS_9allocatorIiEEEE" (func $move_one_ball_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/110
/* In this problem, you will implement a function that takes two vectors of numbers, and determines whether it is possible to perform an exchange of elements between them to make lst1 a vector of only even numbers. There is no limit on the number of exchanged elements between lst1 and lst2. If it is possible to exchange elements between the lst1 and lst2 to make all the elements of lst1 to be even, return "YES". Otherwise, return "NO". For example: exchange({1, 2, 3, 4}, {1, 2, 3, 4}) => "YES" exchange({1, 2, 3, 4}, {1, 5, 3, 4}) => "NO" It is assumed that the input vectors will be non-empty. */ #include<stdio.h> #include<vector> #include<string> using namespace std; string exchange(vector<int> lst1,vector<int> lst2){
#include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> string exchange(vector<int> lst1,vector<int> lst2){
int num=0; for (int i=0;i<lst1.size();i++) if (lst1[i]%2==0) num+=1; for (int i=0;i<lst2.size();i++) if (lst2[i]%2==0) num+=1; if (num>=lst1.size()) return "YES"; return "NO"; }
#undef NDEBUG #include<assert.h> int main(){ assert (exchange({1, 2, 3, 4}, {1, 2, 3, 4}) == "YES"); assert (exchange({1, 2, 3, 4}, {1, 5, 3, 4}) == "NO"); assert (exchange({1, 2, 3, 4}, {2, 1, 4, 3}) == "YES" ); assert (exchange({5, 7, 3}, {2, 6, 4}) == "YES"); assert (exchange({5, 7, 3}, {2, 6, 3}) == "NO" ); assert (exchange({3, 2, 6, 1, 8, 9}, {3, 5, 5, 1, 1, 1}) == "NO"); assert (exchange({100, 200}, {200, 200}) == "YES"); }
#undef NDEBUG #include<assert.h> int main(){ assert (exchange({1, 2, 3, 4}, {1, 2, 3, 4}) == "YES"); assert (exchange({1, 2, 3, 4}, {1, 5, 3, 4}) == "NO"); }
; ModuleID = 'c_code/code_109.cpp' source_filename = "c_code/code_109.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any @.str = private unnamed_addr constant [4 x i8] c"YES\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"NO\00", align 1 ; Function Attrs: minsize mustprogress optsize define void @_Z8exchangeNSt3__26vectorIiNS_9allocatorIiEEEES3_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 { %4 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !3 %6 = load ptr, ptr %1, align 4, !tbaa !10 %7 = ptrtoint ptr %5 to i32 %8 = ptrtoint ptr %6 to i32 %9 = sub i32 %7, %8 %10 = ashr exact i32 %9, 2 br label %11 11: ; preds = %23, %3 %12 = phi i32 [ 0, %3 ], [ %28, %23 ] %13 = phi i32 [ 0, %3 ], [ %29, %23 ] %14 = icmp eq i32 %13, %10 br i1 %14, label %15, label %23 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 %17 = load ptr, ptr %16, align 4, !tbaa !3 %18 = load ptr, ptr %2, align 4, !tbaa !10 %19 = ptrtoint ptr %17 to i32 %20 = ptrtoint ptr %18 to i32 %21 = sub i32 %19, %20 %22 = ashr exact i32 %21, 2 br label %30 23: ; preds = %11 %24 = getelementptr inbounds i32, ptr %6, i32 %13 %25 = load i32, ptr %24, align 4, !tbaa !11 %26 = and i32 %25, 1 %27 = xor i32 %26, 1 %28 = add i32 %27, %12 %29 = add nuw i32 %13, 1 br label %11, !llvm.loop !13 30: ; preds = %15, %38 %31 = phi i32 [ %43, %38 ], [ %12, %15 ] %32 = phi i32 [ %44, %38 ], [ 0, %15 ] %33 = icmp eq i32 %32, %22 br i1 %33, label %34, label %38 34: ; preds = %30 %35 = icmp ult i32 %31, %10 %36 = select i1 %35, ptr @.str.1, ptr @.str %37 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %36) #5 ret void 38: ; preds = %30 %39 = getelementptr inbounds i32, ptr %18, i32 %32 %40 = load i32, ptr %39, align 4, !tbaa !11 %41 = and i32 %40, 1 %42 = xor i32 %41, 1 %43 = add i32 %42, %31 %44 = add nuw i32 %32, 1 br label %30, !llvm.loop !15 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #6 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #5 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #2 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #4 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize optsize } attributes #6 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = distinct !{!15, !14}
(module $code_109.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 1))) (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 3)) (func $exchange_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32 i32 i32) (local i32 i32 i32) local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 4 i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 1 loop ;; label = @1 local.get 3 local.get 5 i32.eq if ;; label = @2 block ;; label = @3 local.get 2 i32.load offset=4 local.get 2 i32.load local.tee 2 i32.sub i32.const 2 i32.shr_s local.set 4 i32.const 0 local.set 3 loop ;; label = @4 local.get 3 local.get 4 i32.eq br_if 1 (;@3;) local.get 2 local.get 3 i32.const 2 i32.shl i32.add i32.load i32.const -1 i32.xor i32.const 1 i32.and local.get 1 i32.add local.set 1 local.get 3 i32.const 1 i32.add local.set 3 br 0 (;@4;) end unreachable end else local.get 4 local.get 3 i32.const 2 i32.shl i32.add i32.load i32.const -1 i32.xor i32.const 1 i32.and local.get 1 i32.add local.set 1 local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@1;) end end local.get 0 global.get $__memory_base i32.const 4 i32.const 0 local.get 1 local.get 5 i32.lt_u select i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z8exchangeNSt3__26vectorIiNS_9allocatorIiEEEES3_" (func $exchange_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "YES\00NO\00"))
CPP/111
/* Given a string representing a space separated lowercase letters, return a map of the letter with the most repetition and containing the corresponding count. If several letters have the same occurrence, return all of them. Example: histogram("a b c") == {{"a", 1}, {"b", 1}, {"c", 1}} histogram("a b b a") == {{"a", 2}, {"b", 2}} histogram("a b c a b") == {{"a", 2}, {"b", 2}} histogram("b b b b a") == {{"b", 4}} histogram("") == {} */ #include<stdio.h> #include<string> #include<map> using namespace std; map<char,int> histogram(string test){
#include<stdio.h> #include<math.h> #include<string> #include<map> using namespace std; #include<algorithm> #include<stdlib.h> map<char,int> histogram(string test){
map<char,int> count={},out={}; map <char,int>::iterator it; int max=0; for (int i=0;i<test.length();i++) if (test[i]!=' ') { count[test[i]]+=1; if (count[test[i]]>max) max=count[test[i]]; } for (it=count.begin();it!=count.end();it++) { char w1=it->first; int w2=it->second; if (w2==max) out[w1]=w2; } return out; }
#undef NDEBUG #include<assert.h> bool issame(map<char,int> a,map<char,int> b){ if (a.size()!=b.size()) return false; map <char,int>::iterator it; for (it=a.begin();it!=a.end();it++) { char w1=it->first; int w2=it->second; if (b.find(w1)==b.end()) return false; if (b[w1]!=w2) return false; } return true; } int main(){ assert (issame(histogram("a b b a") , {{'a',2},{'b', 2}})); assert (issame(histogram("a b c a b") , {{'a', 2},{'b', 2}})); assert (issame(histogram("a b c d g") , {{'a', 1}, {'b', 1}, {'c', 1}, {'d', 1}, {'g', 1}})); assert (issame(histogram("r t g") , {{'r', 1},{'t', 1},{'g', 1}})); assert (issame(histogram("b b b b a") , {{'b', 4}})); assert (issame(histogram("r t g") , {{'r', 1},{'t', 1},{'g', 1}})); assert (issame(histogram("") , {})); assert (issame(histogram("a") , {{'a', 1}})); }
#undef NDEBUG #include<assert.h> bool issame(map<char,int> a,map<char,int> b){ if (a.size()!=b.size()) return false; map <char,int>::iterator it; for (it=a.begin();it!=a.end();it++) { char w1=it->first; int w2=it->second; if (b.find(w1)==b.end()) return false; if (b[w1]!=w2) return false; } return true; } int main(){ assert (issame(histogram("a b b a") , {{'a',2},{'b', 2}})); assert (issame(histogram("a b c a b") , {{'a', 2},{'b', 2}})); assert (issame(histogram("a b c") , {{'a', 1},{'b', 1},{'c', 1}})); assert (issame(histogram("b b b b a") , {{'b', 4}})); assert (issame(histogram("") , {})); }
; ModuleID = 'c_code/code_110.cpp' source_filename = "c_code/code_110.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"struct.std::__2::piecewise_construct_t" = type { i8 } %"class.std::__2::map" = type { %"class.std::__2::__tree" } %"class.std::__2::__tree" = type { ptr, %"class.std::__2::__compressed_pair", %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"class.std::__2::__tree_end_node" } %"class.std::__2::__tree_end_node" = type { ptr } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::__tree_node" = type { %"class.std::__2::__tree_node_base.base", %"struct.std::__2::__value_type" } %"class.std::__2::__tree_node_base.base" = type <{ %"class.std::__2::__tree_end_node", ptr, ptr, i8 }> %"struct.std::__2::__value_type" = type { %"struct.std::__2::pair" } %"struct.std::__2::pair" = type { i8, i32 } %"struct.std::__2::pair.10" = type <{ %"class.std::__2::__tree_iterator", i8, [3 x i8] }> %"class.std::__2::__tree_iterator" = type { ptr } %"class.std::__2::tuple" = type { %"struct.std::__2::__tuple_impl" } %"struct.std::__2::__tuple_impl" = type { %"class.std::__2::__tuple_leaf" } %"class.std::__2::__tuple_leaf" = type { ptr } %"class.std::__2::tuple.11" = type { i8 } %"class.std::__2::__tree_node_base" = type <{ %"class.std::__2::__tree_end_node", ptr, ptr, i8, [3 x i8] }> %"class.std::__2::unique_ptr" = type { %"class.std::__2::__compressed_pair.12" } %"class.std::__2::__compressed_pair.12" = type { %"struct.std::__2::__compressed_pair_elem.13", %"struct.std::__2::__compressed_pair_elem.14" } %"struct.std::__2::__compressed_pair_elem.13" = type { ptr } %"struct.std::__2::__compressed_pair_elem.14" = type { %"class.std::__2::__tree_node_destructor" } %"class.std::__2::__tree_node_destructor" = type <{ ptr, i8, [3 x i8] }> $_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEED2Ev = comdat any $_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE = comdat any $_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE25__emplace_unique_key_argsIcJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_4pairINS_15__tree_iteratorIS2_PNS_11__tree_nodeIS2_PvEElEEbEERKT_DpOT0_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE12__find_equalIcEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISE_EERKT_ = comdat any $_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSE_SE_ = comdat any $_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEED2B7v160006Ev = comdat any $_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_ = comdat any $_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_ = comdat any $_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_ = comdat any $_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEE5resetB7v160006EPS5_ = comdat any $_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_ = comdat any $_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_ = comdat any @_ZNSt3__2L19piecewise_constructE = internal constant %"struct.std::__2::piecewise_construct_t" zeroinitializer, align 1 ; Function Attrs: minsize optsize define void @_Z9histogramNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::map") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::map", align 4 %4 = alloca i8, align 1 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #10 %5 = getelementptr inbounds %"class.std::__2::__tree", ptr %3, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::__tree", ptr %3, i32 0, i32 2 store i32 0, ptr %6, align 4, !tbaa !8 store ptr %5, ptr %3, align 4, !tbaa !11 %7 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 store ptr null, ptr %7, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 2 store i32 0, ptr %8, align 4, !tbaa !8 store ptr %7, ptr %0, align 4, !tbaa !11 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 br label %11 11: ; preds = %48, %2 %12 = phi i32 [ 0, %2 ], [ %50, %48 ] %13 = phi i32 [ 0, %2 ], [ %49, %48 ] %14 = load i8, ptr %9, align 1 %15 = icmp slt i8 %14, 0 %16 = load i32, ptr %10, align 4 %17 = zext i8 %14 to i32 %18 = select i1 %15, i32 %16, i32 %17 %19 = icmp ult i32 %12, %18 br i1 %19, label %22, label %20 20: ; preds = %11 %21 = load ptr, ptr %3, align 4, !tbaa !11 br label %51 22: ; preds = %11 %23 = load ptr, ptr %1, align 4 %24 = select i1 %15, ptr %23, ptr %1 %25 = getelementptr inbounds i8, ptr %24, i32 %12 %26 = load i8, ptr %25, align 1, !tbaa !12 %27 = icmp eq i8 %26, 32 br i1 %27, label %48, label %28 28: ; preds = %22 %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 1 dereferenceable(1) %25) #11 %30 = load i32, ptr %29, align 4, !tbaa !13 %31 = add nsw i32 %30, 1 store i32 %31, ptr %29, align 4, !tbaa !13 %32 = load i8, ptr %9, align 1 %33 = icmp slt i8 %32, 0 %34 = load ptr, ptr %1, align 4 %35 = select i1 %33, ptr %34, ptr %1 %36 = getelementptr inbounds i8, ptr %35, i32 %12 %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 1 dereferenceable(1) %36) #11 %38 = load i32, ptr %37, align 4, !tbaa !13 %39 = icmp sgt i32 %38, %13 br i1 %39, label %40, label %48 40: ; preds = %28 %41 = load i8, ptr %9, align 1 %42 = icmp slt i8 %41, 0 %43 = load ptr, ptr %1, align 4 %44 = select i1 %42, ptr %43, ptr %1 %45 = getelementptr inbounds i8, ptr %44, i32 %12 %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 1 dereferenceable(1) %45) #11 %47 = load i32, ptr %46, align 4, !tbaa !13 br label %48 48: ; preds = %22, %40, %28 %49 = phi i32 [ %47, %40 ], [ %13, %28 ], [ %13, %22 ] %50 = add nuw nsw i32 %12, 1 br label %11, !llvm.loop !15 51: ; preds = %62, %20 %52 = phi ptr [ %21, %20 ], [ %63, %62 ] %53 = icmp eq ptr %52, %5 br i1 %53, label %64, label %54 54: ; preds = %51 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10 %55 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %52, i32 0, i32 1 %56 = load i8, ptr %55, align 4, !tbaa !17 store i8 %56, ptr %4, align 1, !tbaa !12 %57 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %52, i32 0, i32 1, i32 0, i32 1 %58 = load i32, ptr %57, align 4, !tbaa !19 %59 = icmp eq i32 %58, %13 br i1 %59, label %60, label %62 60: ; preds = %54 %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 1 dereferenceable(1) %4) #11 store i32 %13, ptr %61, align 4, !tbaa !13 br label %62 62: ; preds = %60, %54 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10 %63 = call noundef ptr @_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_(ptr noundef nonnull %52) #12 br label %51, !llvm.loop !20 64: ; preds = %51 %65 = call noundef ptr @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #10 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 1 dereferenceable(1) %1) local_unnamed_addr #0 comdat { %3 = alloca %"struct.std::__2::pair.10", align 4 %4 = alloca %"class.std::__2::tuple", align 4 %5 = alloca %"class.std::__2::tuple.11", align 1 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10 store ptr %1, ptr %4, align 4 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10 call void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE25__emplace_unique_key_argsIcJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_4pairINS_15__tree_iteratorIS2_PNS_11__tree_nodeIS2_PvEElEEbEERKT_DpOT0_(ptr nonnull sret(%"struct.std::__2::pair.10") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt3__2L19piecewise_constructE, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #11 %6 = load ptr, ptr %3, align 4, !tbaa !21 %7 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %6, i32 0, i32 1, i32 0, i32 1 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10 ret ptr %7 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nounwind optsize define linkonce_odr noundef ptr @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #2 comdat { %2 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 tail call void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %3) #12 ret ptr %0 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = icmp eq ptr %1, null br i1 %3, label %4, label %5 4: ; preds = %2, %5 ret void 5: ; preds = %2 %6 = load ptr, ptr %1, align 4, !tbaa !3 tail call void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %6) #12 %7 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !23 tail call void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8) #12 tail call void @_ZdlPv(ptr noundef nonnull %1) #13 br label %4 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #4 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE25__emplace_unique_key_argsIcJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_4pairINS_15__tree_iteratorIS2_PNS_11__tree_nodeIS2_PvEElEEbEERKT_DpOT0_(ptr noalias sret(%"struct.std::__2::pair.10") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) local_unnamed_addr #0 comdat { %7 = alloca ptr, align 4 %8 = alloca %"class.std::__2::unique_ptr", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10 %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE12__find_equalIcEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISE_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %2) #11 %10 = load ptr, ptr %9, align 4, !tbaa !11 %11 = icmp eq ptr %10, null br i1 %11, label %12, label %24 12: ; preds = %6 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #10 call void @llvm.experimental.noalias.scope.decl(metadata !26) %13 = getelementptr inbounds %"class.std::__2::__tree", ptr %1, i32 0, i32 1 %14 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i32 noundef 24) #14, !noalias !26 %15 = getelementptr inbounds i8, ptr %8, i32 4 %16 = ptrtoint ptr %13 to i32 store i32 %16, ptr %15, align 4, !alias.scope !26 %17 = getelementptr inbounds i8, ptr %8, i32 8 %18 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %14, i32 0, i32 1 %19 = load ptr, ptr %4, align 4, !noalias !26 %20 = load i8, ptr %19, align 1, !tbaa !12, !noalias !26 store i8 %20, ptr %18, align 4, !tbaa !17, !noalias !26 %21 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %14, i32 0, i32 1, i32 0, i32 1 store i32 0, ptr %21, align 4, !tbaa !19, !noalias !26 store i8 1, ptr %17, align 4, !tbaa !29, !alias.scope !26 %22 = load ptr, ptr %7, align 4, !tbaa !11 call void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSE_SE_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull %14) #12 store ptr null, ptr %8, align 4, !tbaa !11 %23 = call noundef ptr @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #10 br label %24 24: ; preds = %12, %6 %25 = phi i8 [ 1, %12 ], [ 0, %6 ] %26 = phi ptr [ %14, %12 ], [ %10, %6 ] %27 = ptrtoint ptr %26 to i32 store i32 %27, ptr %0, align 4, !tbaa !11 %28 = getelementptr inbounds %"struct.std::__2::pair.10", ptr %0, i32 0, i32 1 store i8 %25, ptr %28, align 4, !tbaa !31 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE12__find_equalIcEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISE_EERKT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #5 comdat { %4 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !3 %6 = icmp eq ptr %5, null br i1 %6, label %27, label %7 7: ; preds = %3 %8 = load i8, ptr %2, align 1, !tbaa !12 br label %9 9: ; preds = %24, %7 %10 = phi ptr [ %5, %7 ], [ %25, %24 ] %11 = phi ptr [ %4, %7 ], [ %26, %24 ] %12 = getelementptr inbounds %"class.std::__2::__tree_node", ptr %10, i32 0, i32 1 %13 = load i8, ptr %12, align 4, !tbaa !12 %14 = icmp slt i8 %8, %13 br i1 %14, label %15, label %18 15: ; preds = %9 %16 = load ptr, ptr %10, align 4, !tbaa !3 %17 = icmp eq ptr %16, null br i1 %17, label %27, label %24 18: ; preds = %9 %19 = icmp slt i8 %13, %8 br i1 %19, label %20, label %27 20: ; preds = %18 %21 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %10, i32 0, i32 1 %22 = load ptr, ptr %21, align 4, !tbaa !23 %23 = icmp eq ptr %22, null br i1 %23, label %27, label %24 24: ; preds = %20, %15 %25 = phi ptr [ %16, %15 ], [ %22, %20 ] %26 = phi ptr [ %10, %15 ], [ %21, %20 ] br label %9, !llvm.loop !33 27: ; preds = %18, %20, %15, %3 %28 = phi ptr [ %4, %3 ], [ %10, %15 ], [ %10, %20 ], [ %10, %18 ] %29 = phi ptr [ %4, %3 ], [ %11, %18 ], [ %21, %20 ], [ %10, %15 ] store ptr %28, ptr %1, align 4, !tbaa !11 ret ptr %29 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr void @_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSE_SE_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef %3) local_unnamed_addr #3 comdat { store ptr null, ptr %3, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !23 %6 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 2 store ptr %1, ptr %6, align 4, !tbaa !34 store ptr %3, ptr %2, align 4, !tbaa !11 %7 = load ptr, ptr %0, align 4, !tbaa !11 %8 = load ptr, ptr %7, align 4, !tbaa !3 %9 = icmp eq ptr %8, null br i1 %9, label %12, label %10 10: ; preds = %4 store ptr %8, ptr %0, align 4, !tbaa !11 %11 = load ptr, ptr %2, align 4, !tbaa !11 br label %12 12: ; preds = %10, %4 %13 = phi ptr [ %11, %10 ], [ %3, %4 ] %14 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 1 %15 = load ptr, ptr %14, align 4, !tbaa !3 tail call void @_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_(ptr noundef %15, ptr noundef %13) #12 %16 = getelementptr inbounds %"class.std::__2::__tree", ptr %0, i32 0, i32 2 %17 = load i32, ptr %16, align 4, !tbaa !35 %18 = add i32 %17, 1 store i32 %18, ptr %16, align 4, !tbaa !35 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #2 comdat { tail call void @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEE5resetB7v160006EPS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef null) #12 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__227__tree_balance_after_insertB7v160006IPNS_16__tree_node_baseIPvEEEEvT_S5_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %3) %4 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %4) %5 = icmp eq ptr %1, %0 %6 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %1, i32 0, i32 3 %7 = zext i1 %5 to i8 store i8 %7, ptr %6, align 4, !tbaa !36 br label %8 8: ; preds = %62, %2 %9 = phi ptr [ %1, %2 ], [ %19, %62 ] %10 = icmp eq ptr %9, %0 br i1 %10, label %67, label %11 11: ; preds = %8 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %9, i32 0, i32 2 %13 = load ptr, ptr %12, align 4, !tbaa !34 %14 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 3 %15 = load i8, ptr %14, align 4, !tbaa !36, !range !37, !noundef !38 %16 = icmp eq i8 %15, 0 br i1 %16, label %17, label %67 17: ; preds = %11 %18 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 %19 = load ptr, ptr %18, align 4, !tbaa !34 %20 = load ptr, ptr %19, align 4, !tbaa !3 %21 = icmp eq ptr %20, %13 br i1 %21, label %22, label %43 22: ; preds = %17 %23 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %19, i32 0, i32 1 %24 = load ptr, ptr %23, align 4, !tbaa !23 %25 = icmp eq ptr %24, null br i1 %25, label %30, label %26 26: ; preds = %22 %27 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %24, i32 0, i32 3 %28 = load i8, ptr %27, align 4, !tbaa !36, !range !37, !noundef !38 %29 = icmp eq i8 %28, 0 br i1 %29, label %62, label %30 30: ; preds = %26, %22 %31 = load ptr, ptr %13, align 4, !tbaa !3 %32 = icmp eq ptr %31, %9 br i1 %32, label %38, label %33 33: ; preds = %30 %34 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 tail call void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef nonnull %13) #12 %35 = load ptr, ptr %34, align 4, !tbaa !34 %36 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %35, i32 0, i32 2 %37 = load ptr, ptr %36, align 4, !tbaa !34 br label %38 38: ; preds = %30, %33 %39 = phi ptr [ %19, %30 ], [ %37, %33 ] %40 = phi ptr [ %13, %30 ], [ %35, %33 ] %41 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %40, i32 0, i32 3 store i8 1, ptr %41, align 4, !tbaa !36 %42 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %39, i32 0, i32 3 store i8 0, ptr %42, align 4, !tbaa !36 tail call void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %39) #12 br label %67 43: ; preds = %17 %44 = icmp eq ptr %20, null br i1 %44, label %49, label %45 45: ; preds = %43 %46 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %20, i32 0, i32 3 %47 = load i8, ptr %46, align 4, !tbaa !36, !range !37, !noundef !38 %48 = icmp eq i8 %47, 0 br i1 %48, label %62, label %49 49: ; preds = %45, %43 %50 = load ptr, ptr %13, align 4, !tbaa !3 %51 = icmp eq ptr %50, %9 br i1 %51, label %52, label %57 52: ; preds = %49 %53 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 2 tail call void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef nonnull %13) #12 %54 = load ptr, ptr %53, align 4, !tbaa !34 %55 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %54, i32 0, i32 2 %56 = load ptr, ptr %55, align 4, !tbaa !34 br label %57 57: ; preds = %49, %52 %58 = phi ptr [ %56, %52 ], [ %19, %49 ] %59 = phi ptr [ %54, %52 ], [ %13, %49 ] %60 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %59, i32 0, i32 3 store i8 1, ptr %60, align 4, !tbaa !36 %61 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %58, i32 0, i32 3 store i8 0, ptr %61, align 4, !tbaa !36 tail call void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %58) #12 br label %67 62: ; preds = %45, %26 %63 = phi ptr [ %27, %26 ], [ %46, %45 ] store i8 1, ptr %14, align 4, !tbaa !36 %64 = icmp eq ptr %19, %0 %65 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %19, i32 0, i32 3 %66 = zext i1 %64 to i8 store i8 %66, ptr %65, align 4, !tbaa !36 store i8 1, ptr %63, align 4, !tbaa !36 br label %8, !llvm.loop !39 67: ; preds = %8, %11, %57, %38 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__218__tree_left_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %0) local_unnamed_addr #3 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !23, !nonnull !38, !noundef !38 %5 = load ptr, ptr %4, align 4, !tbaa !3 store ptr %5, ptr %3, align 4, !tbaa !23 %6 = icmp eq ptr %5, null br i1 %6, label %9, label %7 7: ; preds = %1 %8 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %5, i32 0, i32 2 store ptr %0, ptr %8, align 4, !tbaa !34 br label %9 9: ; preds = %7, %1 %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !34 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %4, i32 0, i32 2 store ptr %11, ptr %12, align 4, !tbaa !34 %13 = load ptr, ptr %10, align 4, !tbaa !34 %14 = load ptr, ptr %13, align 4, !tbaa !3 %15 = icmp eq ptr %14, %0 %16 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 1 %17 = select i1 %15, ptr %13, ptr %16 store ptr %4, ptr %17, align 4, !tbaa !11 store ptr %0, ptr %4, align 4, !tbaa !3 store ptr %4, ptr %10, align 4, !tbaa !34 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__219__tree_right_rotateB7v160006IPNS_16__tree_node_baseIPvEEEEvT_(ptr noundef %0) local_unnamed_addr #3 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = load ptr, ptr %0, align 4, !tbaa !3, !nonnull !38, !noundef !38 %4 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !23 store ptr %5, ptr %0, align 4, !tbaa !3 %6 = icmp eq ptr %5, null br i1 %6, label %9, label %7 7: ; preds = %1 %8 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %5, i32 0, i32 2 store ptr %0, ptr %8, align 4, !tbaa !34 br label %9 9: ; preds = %7, %1 %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !34 %12 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %3, i32 0, i32 2 store ptr %11, ptr %12, align 4, !tbaa !34 %13 = load ptr, ptr %10, align 4, !tbaa !34 %14 = load ptr, ptr %13, align 4, !tbaa !3 %15 = icmp eq ptr %14, %0 %16 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %13, i32 0, i32 1 %17 = select i1 %15, ptr %13, ptr %16 store ptr %3, ptr %17, align 4, !tbaa !11 store ptr %0, ptr %4, align 4, !tbaa !23 store ptr %3, ptr %10, align 4, !tbaa !34 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__210unique_ptrINS_11__tree_nodeINS_12__value_typeIciEEPvEENS_22__tree_node_destructorINS_9allocatorIS5_EEEEE5resetB7v160006EPS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = load ptr, ptr %0, align 4, !tbaa !11 store ptr %1, ptr %0, align 4, !tbaa !11 %4 = icmp eq ptr %3, null br i1 %4, label %6, label %5 5: ; preds = %2 tail call void @_ZdlPv(ptr noundef nonnull %3) #13 br label %6 6: ; preds = %5, %2 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__216__tree_next_iterB7v160006IPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEES5_EET_T0_(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) %3 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !23 %5 = icmp eq ptr %4, null br i1 %5, label %8, label %6 6: ; preds = %1 %7 = tail call noundef ptr @_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef nonnull %4) #12 br label %14 8: ; preds = %1, %8 %9 = phi ptr [ %11, %8 ], [ %0, %1 ] %10 = getelementptr inbounds %"class.std::__2::__tree_node_base", ptr %9, i32 0, i32 2 %11 = load ptr, ptr %10, align 4, !tbaa !34 %12 = load ptr, ptr %11, align 4, !tbaa !3 %13 = icmp eq ptr %12, %9 br i1 %13, label %14, label %8, !llvm.loop !40 14: ; preds = %8, %6 %15 = phi ptr [ %7, %6 ], [ %11, %8 ] ret ptr %15 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__210__tree_minB7v160006IPNS_16__tree_node_baseIPvEEEET_S5_(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = icmp ne ptr %0, null tail call void @llvm.assume(i1 %2) br label %3 3: ; preds = %3, %1 %4 = phi ptr [ %0, %1 ], [ %5, %3 ] %5 = load ptr, ptr %4, align 4, !tbaa !3 %6 = icmp eq ptr %5, null br i1 %6, label %7, label %3, !llvm.loop !41 7: ; preds = %3 ret ptr %4 } ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) declare void @llvm.experimental.noalias.scope.decl(metadata) #9 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) } attributes #10 = { nounwind } attributes #11 = { minsize optsize } attributes #12 = { minsize nounwind optsize } attributes #13 = { builtin minsize nounwind optsize } attributes #14 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__215__tree_end_nodeIPNS_16__tree_node_baseIPvEEEE", !5, i64 0} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!9, !10, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemImLi0ELb0EEE", !10, i64 0} !10 = !{!"long", !6, i64 0} !11 = !{!5, !5, i64 0} !12 = !{!6, !6, i64 0} !13 = !{!14, !14, i64 0} !14 = !{!"int", !6, i64 0} !15 = distinct !{!15, !16} !16 = !{!"llvm.loop.mustprogress"} !17 = !{!18, !6, i64 0} !18 = !{!"_ZTSNSt3__24pairIKciEE", !6, i64 0, !14, i64 4} !19 = !{!18, !14, i64 4} !20 = distinct !{!20, !16} !21 = !{!22, !5, i64 0} !22 = !{!"_ZTSNSt3__215__tree_iteratorINS_12__value_typeIciEEPNS_11__tree_nodeIS2_PvEElEE", !5, i64 0} !23 = !{!24, !5, i64 4} !24 = !{!"_ZTSNSt3__216__tree_node_baseIPvEE", !4, i64 0, !5, i64 4, !5, i64 8, !25, i64 12} !25 = !{!"bool", !6, i64 0} !26 = !{!27} !27 = distinct !{!27, !28, !"_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__construct_nodeIJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_10unique_ptrINS_11__tree_nodeIS2_PvEENS_22__tree_node_destructorINS7_ISM_EEEEEEDpOT_: argument 0"} !28 = distinct !{!28, !"_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__construct_nodeIJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_10unique_ptrINS_11__tree_nodeIS2_PvEENS_22__tree_node_destructorINS7_ISM_EEEEEEDpOT_"} !29 = !{!30, !25, i64 4} !30 = !{!"_ZTSNSt3__222__tree_node_destructorINS_9allocatorINS_11__tree_nodeINS_12__value_typeIciEEPvEEEEEE", !5, i64 0, !25, i64 4} !31 = !{!32, !25, i64 4} !32 = !{!"_ZTSNSt3__24pairINS_15__tree_iteratorINS_12__value_typeIciEEPNS_11__tree_nodeIS3_PvEElEEbEE", !22, i64 0, !25, i64 4} !33 = distinct !{!33, !16} !34 = !{!24, !5, i64 8} !35 = !{!10, !10, i64 0} !36 = !{!24, !25, i64 12} !37 = !{i8 0, i8 2} !38 = !{} !39 = distinct !{!39, !16} !40 = distinct !{!40, !16} !41 = distinct !{!41, !16}
(module $code_110.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32 i32) (result i32))) (type (;4;) (func (param i32 i32 i32 i32 i32 i32))) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32 i32))) (type (;7;) (func)) (import "env" "_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_" (func $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_ (type 3))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEED2Ev" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::~__tree__ (type 0))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE25__emplace_unique_key_argsIcJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_4pairINS_15__tree_iteratorIS2_PNS_11__tree_nodeIS2_PvEElEEbEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<char__int>__std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__emplace_unique_key_args<char__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>__std::__2::tuple<>>_char_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>&&__std::__2::tuple<>&&_ (type 4))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE12__find_equalIcEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISE_EERKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__find_equal<char>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__char_const&_ (type 5))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSE_SE_" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_ (type 6))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $histogram_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 1) (param i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i64.const 0 i64.store offset=8 align=4 local.get 2 local.get 2 i32.const 8 i32.add local.tee 7 i32.store offset=4 local.get 0 local.get 0 i32.const 4 i32.add i32.store local.get 0 i64.const 0 i64.store offset=4 align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s local.tee 4 select local.get 3 i32.le_u if ;; label = @2 block ;; label = @3 local.get 2 i32.load offset=4 local.set 1 loop ;; label = @4 local.get 1 local.get 7 i32.eq br_if 1 (;@3;) local.get 2 local.get 1 i32.load8_u offset=16 i32.store8 offset=3 local.get 5 local.get 1 i32.load offset=20 i32.eq if ;; label = @5 local.get 0 local.get 2 i32.const 3 i32.add call $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_ local.get 5 i32.store end block (result i32) ;; label = @5 local.get 1 i32.load offset=4 local.tee 3 if ;; label = @6 local.get 3 local.set 1 loop ;; label = @7 local.get 1 local.tee 3 i32.load local.tee 1 br_if 0 (;@7;) end local.get 3 br 1 (;@5;) end loop ;; label = @6 local.get 1 local.get 1 i32.load offset=8 local.tee 1 i32.load i32.ne br_if 0 (;@6;) end local.get 1 end local.set 1 br 0 (;@4;) end unreachable end else block ;; label = @3 local.get 1 i32.load local.get 1 local.get 4 select local.get 3 i32.add local.tee 6 i32.load8_u i32.const 32 i32.eq br_if 0 (;@3;) local.get 2 i32.const 4 i32.add local.tee 4 local.get 6 call $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_ local.tee 6 local.get 6 i32.load i32.const 1 i32.add i32.store local.get 4 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 3 i32.add call $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_ i32.load local.get 5 i32.le_s br_if 0 (;@3;) local.get 4 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 3 i32.add call $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_ i32.load local.set 5 end local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@1;) end end local.get 2 i32.const 4 i32.add call $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::~__tree__ drop local.get 2 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_.1 (type 3) (param i32 i32) (result i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 local.get 1 i32.store offset=4 local.get 2 i32.const 8 i32.add local.get 0 local.get 1 global.get $__memory_base local.get 2 i32.const 4 i32.add local.get 2 i32.const 3 i32.add call $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<char__int>__std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__emplace_unique_key_args<char__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>__std::__2::tuple<>>_char_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>&&__std::__2::tuple<>&&_ local.get 2 i32.load offset=8 local.get 2 i32.const 16 i32.add global.set $__stack_pointer i32.const 20 i32.add) (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::~__tree__.1 (type 0) (param i32) (result i32) local.get 0 local.get 0 i32.load offset=4 call $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_ local.get 0) (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<char__int>__std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__emplace_unique_key_args<char__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>__std::__2::tuple<>>_char_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>&&__std::__2::tuple<>&&_.1 (type 4) (param i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 local.get 1 local.get 3 i32.const 12 i32.add local.get 2 call $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__find_equal<char>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__char_const&_ local.tee 5 i32.load local.tee 2 if (result i32) ;; label = @1 i32.const 0 else i32.const 24 call $operator_new_unsigned_long_ local.set 2 local.get 3 local.get 1 i32.const 4 i32.add i32.store offset=4 local.get 4 i32.load i32.load8_u local.set 4 local.get 2 i32.const 0 i32.store offset=20 local.get 2 local.get 4 i32.store8 offset=16 local.get 3 i32.const 1 i32.store8 offset=8 local.get 1 local.get 3 i32.load offset=12 local.get 5 local.get 2 call $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_ local.get 3 i32.const 0 i32.store local.get 3 i32.load local.set 1 local.get 3 i32.const 0 i32.store local.get 1 if ;; label = @2 local.get 1 call $operator_delete_void*_ end i32.const 1 end i32.store8 offset=4 local.get 0 local.get 2 i32.store local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_.1 (type 1) (param i32 i32) local.get 1 if ;; label = @1 local.get 0 local.get 1 i32.load call $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_ local.get 0 local.get 1 i32.load offset=4 call $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_ local.get 1 call $operator_delete_void*_ end) (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__find_equal<char>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__char_const&_.1 (type 5) (param i32 i32 i32) (result i32) (local i32 i32) local.get 0 i32.const 4 i32.add local.set 4 block ;; label = @1 local.get 0 i32.load offset=4 local.tee 3 i32.eqz if ;; label = @2 local.get 4 local.set 0 br 1 (;@1;) end local.get 2 i32.load8_s local.set 2 loop ;; label = @2 local.get 3 local.tee 0 i32.load8_s offset=16 local.tee 3 local.get 2 i32.gt_s if ;; label = @3 local.get 0 local.set 4 local.get 0 i32.load local.tee 3 br_if 1 (;@2;) br 2 (;@1;) end local.get 2 local.get 3 i32.le_s br_if 1 (;@1;) local.get 0 i32.const 4 i32.add local.set 4 local.get 0 i32.load offset=4 local.tee 3 br_if 0 (;@2;) end end local.get 1 local.get 0 i32.store local.get 4) (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_.1 (type 6) (param i32 i32 i32 i32) (local i32 i32) local.get 3 local.get 1 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 2 local.get 3 i32.store local.get 0 i32.load i32.load local.tee 1 if ;; label = @1 local.get 0 local.get 1 i32.store local.get 2 i32.load local.set 3 end local.get 3 local.get 3 local.get 0 i32.load offset=4 local.tee 5 i32.eq i32.store8 offset=12 loop ;; label = @1 block ;; label = @2 local.get 3 local.get 5 i32.eq br_if 0 (;@2;) local.get 3 i32.load offset=8 local.tee 2 i32.load8_u offset=12 br_if 0 (;@2;) block ;; label = @3 local.get 2 local.get 2 i32.load offset=8 local.tee 1 i32.load local.tee 4 i32.eq if ;; label = @4 block ;; label = @5 local.get 1 i32.load offset=4 local.tee 4 i32.eqz br_if 0 (;@5;) local.get 4 i32.load8_u offset=12 br_if 0 (;@5;) br 2 (;@3;) end local.get 3 local.get 2 i32.load i32.ne if ;; label = @5 local.get 2 call $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ local.get 2 i32.load offset=8 local.tee 2 i32.load offset=8 local.set 1 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 i32.const 0 i32.store8 offset=12 local.get 1 call $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ br 2 (;@2;) end block ;; label = @4 local.get 4 i32.eqz br_if 0 (;@4;) local.get 4 i32.load8_u offset=12 br_if 0 (;@4;) br 1 (;@3;) end local.get 3 local.get 2 i32.load i32.eq if ;; label = @4 local.get 2 call $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ local.get 2 i32.load offset=8 local.tee 2 i32.load offset=8 local.set 1 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 i32.const 0 i32.store8 offset=12 local.get 1 call $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ br 1 (;@2;) end local.get 2 i32.const 1 i32.store8 offset=12 local.get 1 local.get 1 local.get 5 i32.eq i32.store8 offset=12 local.get 4 i32.const 1 i32.store8 offset=12 local.get 1 local.set 3 br 1 (;@1;) end end local.get 0 local.get 0 i32.load offset=8 i32.const 1 i32.add i32.store offset=8) (func $void_std::__2::__tree_left_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ (type 2) (param i32) (local i32 i32) local.get 0 local.get 0 i32.load offset=4 local.tee 1 i32.load local.tee 2 i32.store offset=4 local.get 2 if ;; label = @1 local.get 2 local.get 0 i32.store offset=8 end local.get 1 local.get 0 i32.load offset=8 i32.store offset=8 local.get 0 i32.load offset=8 local.tee 2 local.get 2 i32.load local.get 0 i32.ne i32.const 2 i32.shl i32.add local.get 1 i32.store local.get 1 local.get 0 i32.store local.get 0 local.get 1 i32.store offset=8) (func $void_std::__2::__tree_right_rotate_abi:v160006_<std::__2::__tree_node_base<void*>*>_std::__2::__tree_node_base<void*>*_ (type 2) (param i32) (local i32 i32) local.get 0 local.get 0 i32.load local.tee 1 i32.load offset=4 local.tee 2 i32.store local.get 2 if ;; label = @1 local.get 2 local.get 0 i32.store offset=8 end local.get 1 local.get 0 i32.load offset=8 i32.store offset=8 local.get 0 i32.load offset=8 local.tee 2 local.get 2 i32.load local.get 0 i32.ne i32.const 2 i32.shl i32.add local.get 1 i32.store local.get 1 local.get 0 i32.store offset=4 local.get 0 local.get 1 i32.store offset=8) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9histogramNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $histogram_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__23mapIciNS_4lessIcEENS_9allocatorINS_4pairIKciEEEEEixERS5_" (func $std::__2::map<char__int__std::__2::less<char>__std::__2::allocator<std::__2::pair<char_const__int>>>::operator___char_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEED2Ev" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::~__tree__.1)) (export "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE25__emplace_unique_key_argsIcJRKNS_21piecewise_construct_tENS_5tupleIJRKcEEENSE_IJEEEEEENS_4pairINS_15__tree_iteratorIS2_PNS_11__tree_nodeIS2_PvEElEEbEERKT_DpOT0_" (func $std::__2::pair<std::__2::__tree_iterator<std::__2::__value_type<char__int>__std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*__long>__bool>_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__emplace_unique_key_args<char__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>__std::__2::tuple<>>_char_const&__std::__2::piecewise_construct_t_const&__std::__2::tuple<char_const&>&&__std::__2::tuple<>&&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE7destroyEPNS_11__tree_nodeIS2_PvEE" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::destroy_std::__2::__tree_node<std::__2::__value_type<char__int>__void*>*_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE12__find_equalIcEERPNS_16__tree_node_baseIPvEERPNS_15__tree_end_nodeISE_EERKT_" (func $std::__2::__tree_node_base<void*>*&_std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__find_equal<char>_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*&__char_const&_.1)) (export "_ZNSt3__26__treeINS_12__value_typeIciEENS_19__map_value_compareIcS2_NS_4lessIcEELb1EEENS_9allocatorIS2_EEE16__insert_node_atEPNS_15__tree_end_nodeIPNS_16__tree_node_baseIPvEEEERSE_SE_" (func $std::__2::__tree<std::__2::__value_type<char__int>__std::__2::__map_value_compare<char__std::__2::__value_type<char__int>__std::__2::less<char>__true>__std::__2::allocator<std::__2::__value_type<char__int>>>::__insert_node_at_std::__2::__tree_end_node<std::__2::__tree_node_base<void*>*>*__std::__2::__tree_node_base<void*>*&__std::__2::__tree_node_base<void*>*_.1)) (data $.rodata (global.get $__memory_base) "\00"))
CPP/112
/* Task We are given two strings s and c, you have to deleted all the characters in s that are equal to any character in c then check if the result string is palindrome. A string is called palindrome if it reads the same backward as forward. You should return a vector containing the result string and "True"/"False" for the check. Example For s = "abcde", c = "ae", the result should be ("bcd","False") For s = "abcdef", c = "b" the result should be ("acdef","False") For s = "abcdedcba", c = "ab", the result should be ("cdedc","True") */ #include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; vector<string> reverse_delete(string s,string c){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> vector<string> reverse_delete(string s,string c){
string n=""; for (int i=0;i<s.length();i++) if (find(c.begin(),c.end(),s[i])==c.end()) n=n+s[i]; if (n.length()==0) return {n,"True"}; string w(n.rbegin(),n.rend()); if (w==n) return {n,"True"}; return {n,"False"}; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(reverse_delete("abcde","ae") , {"bcd","False"})); assert (issame(reverse_delete("abcdef", "b") , {"acdef","False"})); assert (issame(reverse_delete("abcdedcba","ab") , {"cdedc","True"})); assert (issame(reverse_delete("dwik","w") , {"dik","False"})); assert (issame(reverse_delete("a","a") , {"","True"})); assert (issame(reverse_delete("abcdedcba","") , {"abcdedcba","True"})); assert (issame(reverse_delete("abcdedcba","v") , {"abcdedcba","True"})); assert (issame(reverse_delete("vabba","v") , {"abba","True"})); assert (issame(reverse_delete("mamma", "mia") , {"", "True"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(reverse_delete("abcde","ae") , {"bcd","False"})); assert (issame(reverse_delete("abcdef", "b") , {"acdef","False"})); assert (issame(reverse_delete("abcdedcba","ab") , {"cdedc","True"})); }
; ModuleID = 'c_code/code_111.cpp' source_filename = "c_code/code_111.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator.4" = type { i8 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<std::__2::string>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<std::__2::string>::__destroy_vector" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.9" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E = comdat any $_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_ = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"True\00", align 1 @.str.2 = private unnamed_addr constant [6 x i8] c"False\00", align 1 @.str.3 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.4 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z14reverse_deleteNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 { %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::initializer_list", align 4 %7 = alloca [2 x %"class.std::__2::basic_string"], align 4 %8 = alloca %"class.std::__2::basic_string", align 4 %9 = alloca %"class.std::initializer_list", align 4 %10 = alloca [2 x %"class.std::__2::basic_string"], align 4 %11 = alloca %"class.std::initializer_list", align 4 %12 = alloca [2 x %"class.std::__2::basic_string"], align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #17 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull @.str) #18 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %16 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 br label %18 18: ; preds = %65, %3 %19 = phi i32 [ 0, %3 ], [ %66, %65 ] %20 = load i8, ptr %14, align 1 %21 = icmp slt i8 %20, 0 %22 = load i32, ptr %15, align 4 %23 = zext i8 %20 to i32 %24 = select i1 %21, i32 %22, i32 %23 %25 = icmp ult i32 %19, %24 br i1 %25, label %35, label %26 26: ; preds = %18 %27 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %4, i32 0, i32 2 %28 = load i8, ptr %27, align 1 %29 = icmp slt i8 %28, 0 %30 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %4, i32 0, i32 1 %31 = load i32, ptr %30, align 4 %32 = zext i8 %28 to i32 %33 = select i1 %29, i32 %31, i32 %32 %34 = icmp eq i32 %33, 0 br i1 %34, label %67, label %80 35: ; preds = %18 %36 = load i8, ptr %16, align 1 %37 = icmp slt i8 %36, 0 %38 = load ptr, ptr %2, align 4 %39 = select i1 %37, ptr %38, ptr %2 %40 = load i32, ptr %17, align 4 %41 = zext i8 %36 to i32 %42 = select i1 %37, i32 %40, i32 %41 %43 = getelementptr inbounds i8, ptr %39, i32 %42 %44 = load ptr, ptr %1, align 4 %45 = select i1 %21, ptr %44, ptr %1 %46 = getelementptr inbounds i8, ptr %45, i32 %19 %47 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %39, ptr %43, ptr noundef nonnull align 1 dereferenceable(1) %46) #18 %48 = load i8, ptr %16, align 1 %49 = icmp slt i8 %48, 0 %50 = load ptr, ptr %2, align 4 %51 = select i1 %49, ptr %50, ptr %2 %52 = load i32, ptr %17, align 4 %53 = zext i8 %48 to i32 %54 = select i1 %49, i32 %52, i32 %53 %55 = getelementptr inbounds i8, ptr %51, i32 %54 %56 = icmp eq ptr %47, %55 br i1 %56, label %57, label %65 57: ; preds = %35 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #17 %58 = load i8, ptr %14, align 1 %59 = icmp slt i8 %58, 0 %60 = load ptr, ptr %1, align 4 %61 = select i1 %59, ptr %60, ptr %1 %62 = getelementptr inbounds i8, ptr %61, i32 %19 %63 = load i8, ptr %62, align 1, !tbaa !3 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %4, i8 noundef signext %63) #18 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5) #19 %64 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #19 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #17 br label %65 65: ; preds = %35, %57 %66 = add nuw nsw i32 %19, 1 br label %18, !llvm.loop !6 67: ; preds = %26 call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #17 %68 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %69 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 1 %70 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull @.str.1) #18 store ptr %7, ptr %6, align 4, !tbaa !8 %71 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1 store i32 2, ptr %71, align 4, !tbaa !12 %72 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %6) #18 %73 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 2 br label %74 74: ; preds = %74, %67 %75 = phi ptr [ %73, %67 ], [ %76, %74 ] %76 = getelementptr inbounds %"class.std::__2::basic_string", ptr %75, i32 -1 %77 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %76) #19 %78 = icmp eq ptr %76, %7 br i1 %78, label %79, label %74 79: ; preds = %74 call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #17 br label %113 80: ; preds = %26 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #17 %81 = load ptr, ptr %4, align 4 %82 = select i1 %29, ptr %81, ptr %4 %83 = getelementptr inbounds i8, ptr %82, i32 %33 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr nonnull %83, ptr %82) #18 %84 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %4) #19 br i1 %84, label %85, label %98 85: ; preds = %80 call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #17 %86 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %87 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 1 %88 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull @.str.1) #18 store ptr %10, ptr %9, align 4, !tbaa !8 %89 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1 store i32 2, ptr %89, align 4, !tbaa !12 %90 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %9) #18 %91 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 2 br label %92 92: ; preds = %92, %85 %93 = phi ptr [ %91, %85 ], [ %94, %92 ] %94 = getelementptr inbounds %"class.std::__2::basic_string", ptr %93, i32 -1 %95 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %94) #19 %96 = icmp eq ptr %94, %10 br i1 %96, label %97, label %92 97: ; preds = %92 call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #17 br label %111 98: ; preds = %80 call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #17 %99 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %100 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 1 %101 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %100, ptr noundef nonnull @.str.2) #18 store ptr %12, ptr %11, align 4, !tbaa !8 %102 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1 store i32 2, ptr %102, align 4, !tbaa !12 %103 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %11) #18 %104 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 2 br label %105 105: ; preds = %105, %98 %106 = phi ptr [ %104, %98 ], [ %107, %105 ] %107 = getelementptr inbounds %"class.std::__2::basic_string", ptr %106, i32 -1 %108 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %107) #19 %109 = icmp eq ptr %107, %12 br i1 %109, label %110, label %105 110: ; preds = %105 call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #17 br label %111 111: ; preds = %110, %97 %112 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #19 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #17 br label %113 113: ; preds = %111, %79 %114 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #19 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #17 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #19 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #18 ret ptr %0 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %0, ptr %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %0 to i32 %5 = ptrtoint ptr %1 to i32 %6 = load i8, ptr %2, align 1 %7 = sub i32 %5, %4 %8 = getelementptr i8, ptr %0, i32 %7 br label %9 9: ; preds = %15, %3 %10 = phi ptr [ %0, %3 ], [ %16, %15 ] %11 = icmp eq ptr %10, %1 br i1 %11, label %17, label %12 12: ; preds = %9 %13 = load i8, ptr %10, align 1, !tbaa !3 %14 = icmp eq i8 %13, %6 br i1 %14, label %17, label %15 15: ; preds = %12 %16 = getelementptr inbounds i8, ptr %10, i32 1 br label %9, !llvm.loop !13 17: ; preds = %12, %9 %18 = phi ptr [ %10, %12 ], [ %8, %9 ] ret ptr %18 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator.4", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #17 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #18 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #17 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !14 store i8 %2, ptr %24, align 1, !tbaa !3 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !25 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !3 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !3 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #18 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !28 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !32 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !33 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #17 store ptr %0, ptr %3, align 4, !tbaa.struct !34, !alias.scope !35 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !12 %8 = icmp eq i32 %7, 0 br i1 %8, label %12, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #18 %10 = load ptr, ptr %1, align 4, !tbaa !8 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 %7 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %10, ptr noundef nonnull %11, i32 noundef %7) #18 br label %12 12: ; preds = %9, %2 %13 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %13, align 4, !tbaa !38 %14 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #19 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #17 ret ptr %0 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %7 = load i32, ptr %6, align 4 %8 = zext i8 %4 to i32 %9 = select i1 %5, i32 %7, i32 %8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %11 = load i8, ptr %10, align 1 %12 = icmp slt i8 %11, 0 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %14 = load i32, ptr %13, align 4 %15 = zext i8 %11 to i32 %16 = select i1 %12, i32 %14, i32 %15 %17 = icmp eq i32 %9, %16 br i1 %17, label %18, label %38 18: ; preds = %2 %19 = load ptr, ptr %1, align 4 %20 = select i1 %12, ptr %19, ptr %1 br i1 %5, label %21, label %25 21: ; preds = %18 %22 = load ptr, ptr %0, align 4 %23 = tail call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %22, ptr noundef %20, i32 noundef %7) #19 %24 = icmp eq i32 %23, 0 br label %38 25: ; preds = %18, %34 %26 = phi i32 [ %35, %34 ], [ %8, %18 ] %27 = phi ptr [ %36, %34 ], [ %0, %18 ] %28 = phi ptr [ %37, %34 ], [ %20, %18 ] %29 = icmp eq i32 %26, 0 br i1 %29, label %38, label %30 30: ; preds = %25 %31 = load i8, ptr %27, align 1, !tbaa !3 %32 = load i8, ptr %28, align 1, !tbaa !3 %33 = icmp eq i8 %31, %32 br i1 %33, label %34, label %38 34: ; preds = %30 %35 = add nsw i32 %26, -1 %36 = getelementptr inbounds i8, ptr %27, i32 1 %37 = getelementptr inbounds i8, ptr %28, i32 1 br label %25, !llvm.loop !42 38: ; preds = %30, %25, %21, %2 %39 = phi i1 [ false, %2 ], [ %24, %21 ], [ %29, %25 ], [ %29, %30 ] ret i1 %39 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #4 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.3) #20 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #17 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #18 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #21 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #18 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !43 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #17 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #19 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #21 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #12 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #22 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !3 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !3 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #13 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef %7) #23 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !25 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !3 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #14 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #18, !noalias !45 store ptr %7, ptr %0, align 4, !tbaa !28 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !32 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !26 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !32 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #18 store ptr %8, ptr %5, align 4, !tbaa !32 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #9 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !38, !range !48, !noundef !49 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #19 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.4) #20 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #14 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #20 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #22 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.9", align 4 store ptr %3, ptr %5, align 4, !tbaa !26 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #17 store ptr %3, ptr %6, align 4, !tbaa !26 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #17 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #18 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !26 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !26 br label %10, !llvm.loop !50 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.9", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !51 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #19 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #17 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #17 ret ptr %11 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #9 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.9", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !51, !range !48, !noundef !49 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !54 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !55 %5 = load ptr, ptr %4, align 4, !tbaa !26 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !56 %8 = load ptr, ptr %7, align 4, !tbaa !26 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #18 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #14 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %8, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #19 br label %4, !llvm.loop !57 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #14 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !58 %3 = load ptr, ptr %2, align 4, !tbaa !28 %4 = icmp eq ptr %3, null br i1 %4, label %8, label %5 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #19 %6 = load ptr, ptr %0, align 4, !tbaa !58 %7 = load ptr, ptr %6, align 4, !tbaa !28 tail call void @_ZdlPv(ptr noundef %7) #23 br label %8 8: ; preds = %5, %1 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #15 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !28 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %2) #19 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !32 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %4, %2 ], [ %9, %8 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %11, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 -1 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #19 br label %5, !llvm.loop !59 11: ; preds = %5 store ptr %1, ptr %3, align 4, !tbaa !32 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr %2) local_unnamed_addr #16 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %2 to i32 %6 = sub i32 %4, %5 %7 = icmp ugt i32 %6, 2147483631 br i1 %7, label %8, label %9 8: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 unreachable 9: ; preds = %3 %10 = icmp ult i32 %6, 11 br i1 %10, label %11, label %14 11: ; preds = %9 %12 = trunc i32 %6 to i8 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %12, ptr %13, align 1 br label %21 14: ; preds = %9 %15 = or i32 %6, 15 %16 = add nuw i32 %15, 1 %17 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %16) #22, !noalias !60 store ptr %17, ptr %0, align 4, !tbaa !3 %18 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %19 = or i32 %16, -2147483648 store i32 %19, ptr %18, align 4 %20 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %6, ptr %20, align 4, !tbaa !3 br label %21 21: ; preds = %14, %11 %22 = phi ptr [ %0, %11 ], [ %17, %14 ] br label %23 23: ; preds = %21, %27 %24 = phi ptr [ %28, %27 ], [ %1, %21 ] %25 = phi ptr [ %30, %27 ], [ %22, %21 ] %26 = icmp eq ptr %24, %2 br i1 %26, label %31, label %27 27: ; preds = %23 %28 = getelementptr inbounds i8, ptr %24, i32 -1 %29 = load i8, ptr %28, align 1, !tbaa !3 store i8 %29, ptr %25, align 1, !tbaa !3 %30 = getelementptr inbounds i8, ptr %25, i32 1 br label %23, !llvm.loop !63 31: ; preds = %23 store i8 0, ptr %25, align 1, !tbaa !3 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #15 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #19 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #14 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { nounwind } attributes #18 = { minsize optsize } attributes #19 = { minsize nounwind optsize } attributes #20 = { minsize noreturn optsize } attributes #21 = { noreturn } attributes #22 = { builtin minsize optsize allocsize(0) } attributes #23 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = !{!9, !10, i64 0} !9 = !{!"_ZTSSt16initializer_listINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE", !10, i64 0, !11, i64 4} !10 = !{!"any pointer", !4, i64 0} !11 = !{!"long", !4, i64 0} !12 = !{!9, !11, i64 4} !13 = distinct !{!13, !7} !14 = !{!15, !17, !19, !21, !23} !15 = distinct !{!15, !16, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !16 = distinct !{!16, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !17 = distinct !{!17, !18, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !18 = distinct !{!18, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !19 = distinct !{!19, !20, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !20 = distinct !{!20, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !21 = distinct !{!21, !22, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !22 = distinct !{!22, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !23 = distinct !{!23, !24, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !25 = !{i64 0, i64 4, !26, i64 4, i64 4, !27, i64 8, i64 4, !27, i64 11, i64 4, !27, i64 0, i64 11, !3, i64 11, i64 0, !3, i64 11, i64 1, !3, i64 11, i64 1, !3, i64 0, i64 12, !3} !26 = !{!10, !10, i64 0} !27 = !{!11, !11, i64 0} !28 = !{!29, !10, i64 0} !29 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !10, i64 0, !10, i64 4, !30, i64 8} !30 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !31, i64 0} !31 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !10, i64 0} !32 = !{!29, !10, i64 4} !33 = !{!31, !10, i64 0} !34 = !{i64 0, i64 4, !26} !35 = !{!36} !36 = distinct !{!36, !37, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_: argument 0"} !37 = distinct !{!37, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_"} !38 = !{!39, !41, i64 4} !39 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEE", !40, i64 0, !41, i64 4} !40 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorE", !10, i64 0} !41 = !{!"bool", !4, i64 0} !42 = distinct !{!42, !7} !43 = !{!44, !44, i64 0} !44 = !{!"vtable pointer", !5, i64 0} !45 = !{!46} !46 = distinct !{!46, !47, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !47 = distinct !{!47, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !48 = !{i8 0, i8 2} !49 = !{} !50 = distinct !{!50, !7} !51 = !{!52, !41, i64 12} !52 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEEE", !53, i64 0, !41, i64 12} !53 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EE", !10, i64 0, !10, i64 4, !10, i64 8} !54 = !{!53, !10, i64 0} !55 = !{!53, !10, i64 8} !56 = !{!53, !10, i64 4} !57 = distinct !{!57, !7} !58 = !{!40, !10, i64 0} !59 = distinct !{!59, !7} !60 = !{!61} !61 = distinct !{!61, !62, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !62 = distinct !{!62, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !63 = distinct !{!63, !7}
(module $code_111.wasm (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i32 i32 i32) (result i32))) (type (;4;) (func (param i32 i32 i32 i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (type (;7;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 0))) (import "env" "memmove" (func $memmove (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 0))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ (type 4))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 2))) (import "env" "__cxa_throw" (func $__cxa_throw (type 0))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 2))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "memcmp" (func $memcmp (type 3))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $reverse_delete_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 0) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 96 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 i32.const 84 i32.add global.get $__memory_base i32.const 30 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 5 block ;; label = @1 loop ;; label = @2 block ;; label = @3 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 8 select local.get 7 i32.le_u if ;; label = @4 local.get 5 i32.load offset=4 local.get 5 i32.load8_u offset=11 local.tee 1 local.get 1 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.tee 3 br_if 1 (;@3;) local.get 4 i32.const 52 i32.add local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 1 i32.const 12 i32.add global.get $__memory_base i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 2 i32.store offset=80 local.get 4 local.get 1 i32.store offset=76 local.get 4 local.get 4 i64.load offset=76 align=4 i64.store local.get 0 local.get 4 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::vector_abi:v160006__std::initializer_list<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_ local.get 1 i32.const 24 i32.add local.set 2 loop ;; label = @5 local.get 2 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.tee 2 local.get 1 i32.ne br_if 0 (;@5;) end br 3 (;@1;) end block (result i32) ;; label = @4 local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 6 i32.extend8_s i32.const 0 i32.lt_s local.tee 9 select local.set 3 local.get 3 local.get 2 i32.load offset=4 local.get 6 local.get 9 select i32.add local.set 6 local.get 1 i32.load local.get 1 local.get 8 select local.get 7 i32.add i32.load8_u local.set 8 loop ;; label = @5 block ;; label = @6 local.get 3 local.get 6 i32.ne if (result i32) ;; label = @7 local.get 3 i32.load8_u local.get 8 i32.ne br_if 1 (;@6;) local.get 3 else local.get 6 end br 2 (;@4;) end local.get 3 i32.const 1 i32.add local.set 3 br 0 (;@5;) end unreachable end local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.get 2 i32.load offset=4 local.get 3 local.get 6 select i32.add i32.eq if ;; label = @4 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 7 i32.add i32.load8_s local.set 9 global.get $__stack_pointer i32.const 16 i32.sub local.tee 10 global.set $__stack_pointer block (result i32) ;; label = @5 local.get 4 i32.const 52 i32.add local.set 3 local.get 5 i32.load offset=4 local.get 5 i32.load8_u offset=11 local.tee 6 local.get 6 i32.extend8_s i32.const 0 i32.lt_s select local.tee 8 i32.const 1 i32.add local.tee 6 i32.const 2147483632 i32.lt_u if ;; label = @6 local.get 6 i32.const 10 i32.le_u if ;; label = @7 local.get 3 i32.const 0 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 local.get 6 i32.store8 offset=11 local.get 3 br 2 (;@5;) end local.get 6 i32.const 15 i32.or i32.const 1 i32.add local.tee 11 call $operator_new_unsigned_long_ local.set 12 local.get 3 local.get 6 i32.store offset=4 local.get 3 local.get 12 i32.store local.get 3 local.get 11 i32.const -2147483648 i32.or i32.store offset=8 local.get 3 br 1 (;@5;) end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const unreachable end local.tee 6 i32.load local.get 6 local.get 6 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 5 i32.load local.get 5 local.get 5 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 8 call $memmove local.get 8 i32.add local.tee 6 local.get 9 i32.store8 local.get 6 i32.const 0 i32.store8 offset=1 local.get 10 i32.const 16 i32.add global.set $__stack_pointer local.get 5 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @5 local.get 5 i32.load call $operator_delete_void*_ end local.get 5 local.get 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i32.const 0 i32.store8 offset=11 local.get 3 i32.const 0 i32.store8 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 7 i32.const 1 i32.add local.set 7 br 1 (;@2;) end end local.get 4 i32.const 40 i32.add local.tee 1 local.get 5 i32.load local.get 5 local.get 2 select local.tee 2 local.get 3 i32.add local.get 2 call $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ i32.const 0 local.set 7 block ;; label = @2 local.get 1 i32.load offset=4 local.tee 6 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s local.tee 8 i32.const 0 i32.lt_s select local.get 5 i32.load offset=4 local.get 5 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s local.tee 3 i32.const 0 i32.lt_s select i32.ne br_if 0 (;@2;) local.get 5 i32.load local.get 5 local.get 3 i32.const 0 i32.lt_s select local.set 3 local.get 8 i32.const 0 i32.ge_s if ;; label = @3 loop ;; label = @4 local.get 2 i32.eqz local.set 7 local.get 2 i32.eqz br_if 2 (;@2;) local.get 1 i32.load8_u local.get 3 i32.load8_u i32.ne br_if 2 (;@2;) local.get 3 i32.const 1 i32.add local.set 3 local.get 1 i32.const 1 i32.add local.set 1 local.get 2 i32.const 1 i32.sub local.set 2 br 0 (;@4;) end unreachable end local.get 1 i32.load local.get 3 local.get 6 call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ i32.eqz local.set 7 end block ;; label = @2 local.get 7 if ;; label = @3 local.get 4 i32.const 52 i32.add local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 1 i32.const 12 i32.add global.get $__memory_base i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 2 i32.store offset=36 local.get 4 local.get 1 i32.store offset=32 local.get 4 local.get 4 i64.load offset=32 align=4 i64.store offset=8 local.get 0 local.get 4 i32.const 8 i32.add call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::vector_abi:v160006__std::initializer_list<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_ br 1 (;@2;) end local.get 4 i32.const 52 i32.add local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 1 i32.const 12 i32.add global.get $__memory_base i32.const 25 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 2 i32.store offset=28 local.get 4 local.get 1 i32.store offset=24 local.get 4 local.get 4 i64.load offset=24 align=4 i64.store offset=16 local.get 0 local.get 4 i32.const 16 i32.add call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::vector_abi:v160006__std::initializer_list<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_ end local.get 1 i32.const 24 i32.add local.set 2 loop ;; label = @2 local.get 2 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.tee 2 local.get 1 i32.ne br_if 0 (;@2;) end local.get 4 i32.const 40 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 4 i32.const 96 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 1) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::vector_abi:v160006__std::initializer_list<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>_ (type 7) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 3 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 2 if ;; label = @1 local.get 2 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.get 0 local.get 2 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 2 i32.const 12 i32.mul local.tee 4 call $operator_new_unsigned_long_ local.tee 5 i32.store offset=4 local.get 0 local.get 5 i32.store local.get 0 local.get 4 local.get 5 i32.add i32.store offset=8 local.get 0 local.get 1 i32.load local.tee 0 local.get 0 local.get 4 i32.add local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ end local.get 3 i32.const 1 i32.store8 offset=12 local.get 3 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 local.tee 0 i32.load if ;; label = @2 local.get 0 i32.load local.set 2 local.get 0 i32.load offset=4 local.set 1 loop ;; label = @3 local.get 1 local.get 2 i32.ne if ;; label = @4 local.get 1 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 1 br 1 (;@3;) end end local.get 0 local.get 2 i32.store offset=4 local.get 3 i32.load offset=8 i32.load call $operator_delete_void*_ end end local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1 (type 0) (param i32 i32 i32) (local i32 i32 i32) local.get 1 local.get 2 i32.sub local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @1 block ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 local.get 3 i32.store8 offset=11 br 1 (;@2;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 5 call $operator_new_unsigned_long_ local.set 4 local.get 0 local.get 5 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 local.get 4 i32.store local.get 0 local.get 3 i32.store offset=4 local.get 4 local.set 0 end loop ;; label = @2 local.get 1 local.get 2 i32.eq i32.eqz if ;; label = @3 local.get 0 local.get 1 i32.const 1 i32.sub local.tee 1 i32.load8_u i32.store8 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@2;) end end local.get 0 i32.const 0 i32.store8 return end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const unreachable) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1 (type 4) (param i32 i32 i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 local.get 4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.add local.tee 4 i32.store offset=28 local.get 1 i32.const 12 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.load8_u offset=20 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 drop local.get 3 i32.load offset=16 i32.load local.set 1 local.get 3 i32.load offset=12 i32.load local.set 2 loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 1 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 1 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 0 local.get 4 i32.store offset=4) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 3) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const (type 6) global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 5) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z14reverse_deleteNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_" (func $reverse_delete_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00True\00False\00"))
CPP/113
/* Given a vector of strings, where each string consists of only digits, return a vector. Each element i of the output should be 'the number of odd elements in the string i of the input." where all the i's should be replaced by the number of odd digits in the i'th string of the input. >>> odd_count({"1234567"}) {'the number of odd elements 4n the str4ng 4 of the 4nput."} >>> odd_count({"3","11111111"}) {'the number of odd elements 1n the str1ng 1 of the 1nput.", 'the number of odd elements 8n the str8ng 8 of the 8nput."} */ #include<stdio.h> #include<vector> #include<string> #include<map> using namespace std; vector<string> odd_count(vector<string> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<map> using namespace std; #include<algorithm> #include<stdlib.h> vector<string> odd_count(vector<string> lst){
vector<string> out={}; for (int i=0;i<lst.size();i++) { int sum=0; for (int j=0;j<lst[i].length();j++) if (lst[i][j]>=48 and lst[i][j]<=57 and lst[i][j]%2==1) sum+=1; string s="the number of odd elements in the string i of the input."; string s2=""; for (int j=0;j<s.length();j++) if (s[j]=='i') s2=s2+to_string(sum); else s2=s2+s[j]; out.push_back(s2); } return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(odd_count({"1234567"}) , {"the number of odd elements 4n the str4ng 4 of the 4nput."})); assert (issame(odd_count({"3","11111111"}) , {"the number of odd elements 1n the str1ng 1 of the 1nput.", "the number of odd elements 8n the str8ng 8 of the 8nput."})); assert (issame(odd_count({"271", "137", "314"}) , { "the number of odd elements 2n the str2ng 2 of the 2nput.", "the number of odd elements 3n the str3ng 3 of the 3nput.", "the number of odd elements 2n the str2ng 2 of the 2nput." })); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(odd_count({"1234567"}) , {"the number of odd elements 4n the str4ng 4 of the 4nput."})); assert (issame(odd_count({"3","11111111"}) , {"the number of odd elements 1n the str1ng 1 of the 1nput.", "the number of odd elements 8n the str8ng 8 of the 8nput."})); }
; ModuleID = 'c_code/code_112.cpp' source_filename = "c_code/code_112.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator.4" = type { i8 } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_OS9_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertB7v160006EmRKS5_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [57 x i8] c"the number of odd elements in the string i of the input.\00", align 1 @.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.3 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z9odd_countNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = alloca %"class.std::__2::basic_string", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %9, align 4, !tbaa !11 %10 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %11 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %13 13: ; preds = %58, %2 %14 = phi i32 [ 0, %2 ], [ %61, %58 ] %15 = load ptr, ptr %10, align 4, !tbaa !10 %16 = load ptr, ptr %1, align 4, !tbaa !3 %17 = ptrtoint ptr %15 to i32 %18 = ptrtoint ptr %16 to i32 %19 = sub i32 %17, %18 %20 = sdiv exact i32 %19, 12 %21 = icmp ult i32 %14, %20 br i1 %21, label %22, label %75 22: ; preds = %13 %23 = getelementptr inbounds %"class.std::__2::basic_string", ptr %16, i32 %14 %24 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %23, i32 0, i32 2 %25 = load i8, ptr %24, align 1 %26 = icmp slt i8 %25, 0 %27 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %23, i32 0, i32 1 %28 = load i32, ptr %27, align 4 %29 = zext i8 %25 to i32 %30 = select i1 %26, i32 %28, i32 %29 br label %31 31: ; preds = %22, %38 %32 = phi i32 [ %48, %38 ], [ 0, %22 ] %33 = phi i32 [ %49, %38 ], [ 0, %22 ] %34 = icmp eq i32 %33, %30 br i1 %34, label %35, label %38 35: ; preds = %31 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #18 %36 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #18 %37 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull @.str.1) #19 br label %50 38: ; preds = %31 %39 = load ptr, ptr %23, align 4 %40 = select i1 %26, ptr %39, ptr %23 %41 = getelementptr inbounds i8, ptr %40, i32 %33 %42 = load i8, ptr %41, align 1, !tbaa !12 %43 = add i8 %42, -48 %44 = icmp ult i8 %43, 10 %45 = and i8 %42, 1 %46 = select i1 %44, i8 %45, i8 0 %47 = zext i8 %46 to i32 %48 = add i32 %32, %47 %49 = add nuw i32 %33, 1 br label %31, !llvm.loop !13 50: ; preds = %73, %35 %51 = phi i32 [ 0, %35 ], [ %74, %73 ] %52 = load i8, ptr %11, align 1 %53 = icmp slt i8 %52, 0 %54 = load i32, ptr %12, align 4 %55 = zext i8 %52 to i32 %56 = select i1 %53, i32 %54, i32 %55 %57 = icmp ult i32 %51, %56 br i1 %57, label %62, label %58 58: ; preds = %50 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4) #19 %59 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #18 %60 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #18 %61 = add nuw nsw i32 %14, 1 br label %13, !llvm.loop !15 62: ; preds = %50 %63 = load ptr, ptr %3, align 4 %64 = select i1 %53, ptr %63, ptr %3 %65 = getelementptr inbounds i8, ptr %64, i32 %51 %66 = load i8, ptr %65, align 1, !tbaa !12 %67 = icmp eq i8 %66, 105 br i1 %67, label %68, label %71 68: ; preds = %62 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #18 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #18 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, i32 noundef %32) #19 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_OS9_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %6) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %69 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %70 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #18 br label %73 71: ; preds = %62 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %4, i8 noundef signext %66) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7) #20 %72 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #18 br label %73 73: ; preds = %68, %71 %74 = add nuw nsw i32 %51, 1 br label %50, !llvm.loop !16 75: ; preds = %13 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #19 ret ptr %0 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_OS9_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #2 comdat { %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertB7v160006EmRKS5_(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, i8 0, i32 12, i1 false) ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator.4", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #18 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #18 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !17 store i8 %2, ptr %24, align 1, !tbaa !12 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !12 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !28 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #2 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #21 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #18 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #19 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #19 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !29 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #18 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #20 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #22 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #9 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #12 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertB7v160006EmRKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #13 comdat { %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %5 = load i8, ptr %4, align 1 %6 = icmp slt i8 %5, 0 %7 = load ptr, ptr %2, align 4 %8 = select i1 %6, ptr %7, ptr %2 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 %10 = load i32, ptr %9, align 4 %11 = zext i8 %5 to i32 %12 = select i1 %6, i32 %10, i32 %11 %13 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef %8, i32 noundef %12) #19 ret ptr %13 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKcm(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #14 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !12 tail call void @_ZdlPv(ptr noundef %7) #23 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !31 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !12 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #24 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !12 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !12 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #19 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !34 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %24 = load ptr, ptr %21, align 4, !tbaa !34 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !34 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #19 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #20 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #18 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !31 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !12 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !12 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #19 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !28 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !28 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #19, !noalias !38 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !41 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !34 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !42 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !28 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !42 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #19 store ptr %9, ptr %7, align 4, !tbaa !42 %10 = load ptr, ptr %0, align 4, !tbaa !28 store ptr %9, ptr %0, align 4, !tbaa !28 store ptr %10, ptr %7, align 4, !tbaa !28 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !28 %13 = load ptr, ptr %11, align 4, !tbaa !28 store ptr %13, ptr %4, align 4, !tbaa !28 store ptr %12, ptr %11, align 4, !tbaa !28 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !28 %16 = load ptr, ptr %14, align 4, !tbaa !28 store ptr %16, ptr %3, align 4, !tbaa !28 store ptr %15, ptr %14, align 4, !tbaa !28 %17 = load ptr, ptr %7, align 4, !tbaa !42 store ptr %17, ptr %1, align 4, !tbaa !41 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #9 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #20 %2 = load ptr, ptr %0, align 4, !tbaa !41 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #23 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.3) #21 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #13 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #21 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #24 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !28 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !43 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !44 store i8 1, ptr %19, align 4, !tbaa !46 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #9 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !46, !range !50, !noundef !51 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !52 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !53 %5 = load ptr, ptr %4, align 4, !tbaa.struct !54 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !55 %8 = load ptr, ptr %7, align 4, !tbaa.struct !54 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #13 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !56 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #16 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !42 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #20 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !34 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !34 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !57 10: ; preds = %4 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #15 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { nounwind } attributes #19 = { minsize optsize } attributes #20 = { minsize nounwind optsize } attributes #21 = { minsize noreturn optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize nounwind optsize } attributes #24 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!6, !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = distinct !{!15, !14} !16 = distinct !{!16, !14} !17 = !{!18, !20, !22, !24, !26} !18 = distinct !{!18, !19, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !19 = distinct !{!19, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !20 = distinct !{!20, !21, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !21 = distinct !{!21, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !22 = distinct !{!22, !23, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !23 = distinct !{!23, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !24 = distinct !{!24, !25, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !26 = distinct !{!26, !27, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !28 = !{!5, !5, i64 0} !29 = !{!30, !30, i64 0} !30 = !{!"vtable pointer", !7, i64 0} !31 = !{i64 0, i64 4, !28, i64 4, i64 4, !32, i64 8, i64 4, !32, i64 11, i64 4, !32, i64 0, i64 11, !12, i64 11, i64 0, !12, i64 11, i64 1, !12, i64 11, i64 1, !12, i64 0, i64 12, !12} !32 = !{!33, !33, i64 0} !33 = !{!"long", !6, i64 0} !34 = !{!35, !5, i64 8} !35 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !36, i64 12} !36 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !9, i64 0, !37, i64 4} !37 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !38 = !{!39} !39 = distinct !{!39, !40, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !40 = distinct !{!40, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !41 = !{!35, !5, i64 0} !42 = !{!35, !5, i64 4} !43 = distinct !{!43, !14} !44 = !{!45, !5, i64 0} !45 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !46 = !{!47, !49, i64 12} !47 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !48, i64 0, !49, i64 12} !48 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !49 = !{!"bool", !6, i64 0} !50 = !{i8 0, i8 2} !51 = !{} !52 = !{!48, !5, i64 0} !53 = !{!48, !5, i64 8} !54 = !{i64 0, i64 4, !28} !55 = !{!48, !5, i64 4} !56 = distinct !{!56, !14} !57 = distinct !{!57, !14}
(module $code_112.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32 i32) (result i32))) (type (;7;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 2))) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 2))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEmPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::insert_unsigned_long__char_const*__unsigned_long_ (type 6))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 3))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $odd_count_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_ (type 0) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 6 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 2 i32.sub i32.const 12 i32.div_s local.get 9 i32.gt_u if ;; label = @2 i32.const 0 local.set 10 local.get 2 local.get 9 i32.const 12 i32.mul i32.add local.tee 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 5 local.get 5 i32.extend8_s local.tee 3 i32.const 0 i32.lt_s select local.set 4 i32.const 0 local.set 5 loop ;; label = @3 local.get 4 local.get 5 i32.eq if ;; label = @4 local.get 6 i32.const 36 i32.add global.get $__memory_base local.tee 2 i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 7 i32.const 0 local.set 5 local.get 6 i32.const 24 i32.add local.get 2 i32.const 76 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 2 loop ;; label = @5 local.get 6 i32.load offset=40 local.get 6 i32.load8_u offset=47 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 5 i32.le_u if ;; label = @6 block ;; label = @7 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @8 local.get 0 local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@7;) end local.get 0 local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 9 i32.const 1 i32.add local.set 9 br 5 (;@1;) else block ;; label = @7 local.get 7 i32.load local.get 7 local.get 3 select local.get 5 i32.add i32.load8_u local.tee 11 i32.const 105 i32.eq if ;; label = @8 local.get 6 local.get 10 call $std::__2::to_string_int_ local.get 6 i32.const 12 i32.add local.tee 3 local.get 6 i32.const 0 local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 4 i32.extend8_s i32.const 0 i32.lt_s local.tee 8 select local.get 2 i32.load offset=4 local.get 4 local.get 8 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::insert_unsigned_long__char_const*__unsigned_long_ local.tee 4 i64.load align=4 i64.store align=4 local.get 3 local.get 4 i32.load offset=8 i32.store offset=8 local.get 4 i64.const 0 i64.store align=4 local.get 4 i32.const 0 i32.store offset=8 local.get 2 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 6 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@7;) end global.get $__stack_pointer i32.const 16 i32.sub local.tee 12 global.set $__stack_pointer block (result i32) ;; label = @8 local.get 6 i32.const 12 i32.add local.set 3 local.get 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s select local.tee 8 i32.const 1 i32.add local.tee 4 i32.const 2147483632 i32.lt_u if ;; label = @9 local.get 4 i32.const 10 i32.le_u if ;; label = @10 local.get 3 i32.const 0 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 local.get 4 i32.store8 offset=11 local.get 3 br 2 (;@8;) end local.get 4 i32.const 15 i32.or i32.const 1 i32.add local.tee 13 call $operator_new_unsigned_long_ local.set 14 local.get 3 local.get 4 i32.store offset=4 local.get 3 local.get 14 i32.store local.get 3 local.get 13 i32.const -2147483648 i32.or i32.store offset=8 local.get 3 br 1 (;@8;) end global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.tee 4 i32.load local.get 4 local.get 4 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 2 i32.load local.get 2 local.get 2 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 8 call $memmove local.get 8 i32.add local.tee 4 local.get 11 i32.extend8_s i32.store8 local.get 4 i32.const 0 i32.store8 offset=1 local.get 12 i32.const 16 i32.add global.set $__stack_pointer local.get 2 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 5 i32.const 1 i32.add local.set 5 br 1 (;@5;) end unreachable end unreachable else local.get 10 local.get 2 i32.load local.get 2 local.get 3 i32.const 0 i32.lt_s select local.get 5 i32.add i32.load8_u local.tee 7 i32.const 1 i32.and local.get 7 i32.const 48 i32.sub i32.const 255 i32.and i32.const 10 i32.lt_u i32.and i32.add local.set 10 local.get 5 i32.const 1 i32.add local.set 5 br 1 (;@3;) end unreachable end unreachable end end local.get 6 i32.const 48 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 1) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 0) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 3 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 4 i32.const 1 i32.shl local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 178956970 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 12 i32.mul call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 3 local.get 0 i32.load local.set 1 local.get 2 i32.load offset=16 local.set 5 global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 local.get 5 i32.store offset=24 local.get 4 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 4 local.get 4 i32.const 28 i32.add i32.store offset=16 local.get 4 local.get 4 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 3 i32.ne if ;; label = @2 local.get 5 i32.const 12 i32.sub local.tee 5 local.get 3 i32.const 12 i32.sub local.tee 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 4 i32.const 1 i32.store8 offset=20 local.get 4 local.get 5 i32.store offset=28 local.get 4 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 3 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 3 i32.ne if ;; label = @3 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 3 br 1 (;@2;) end end end local.get 4 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 5 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 5 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 4) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9odd_countNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE" (func $odd_count_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00the number of odd elements in the string i of the input.\00"))
CPP/114
/* Given a vector of integers nums, find the minimum sum of any non-empty sub-vector of nums. Example minSubArraySum({2, 3, 4, 1, 2, 4}) == 1 minSubArraySum({-1, -2, -3}) == -6 */ #include<stdio.h> #include<vector> using namespace std; long long minSubArraySum(vector<long long> nums){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> long long minSubArraySum(vector<long long> nums){
long long current,min; current=nums[0]; min=nums[0]; for (int i=1;i<nums.size();i++) { if (current<0) current=current+nums[i]; else current=nums[i]; if (current<min) min=current; } return min; }
#undef NDEBUG #include<assert.h> int main(){ assert (minSubArraySum({2, 3, 4, 1, 2, 4}) == 1); assert (minSubArraySum({-1, -2, -3}) == -6); assert (minSubArraySum({-1, -2, -3, 2, -10}) == -14); assert (minSubArraySum({-9999999999999999}) == -9999999999999999); assert (minSubArraySum({0, 10, 20, 1000000}) == 0); assert (minSubArraySum({-1, -2, -3, 10, -5}) == -6); assert (minSubArraySum({100, -1, -2, -3, 10, -5}) == -6); assert (minSubArraySum({10, 11, 13, 8, 3, 4}) == 3); assert (minSubArraySum({100, -33, 32, -1, 0, -2}) == -33); assert (minSubArraySum({-10}) == -10); assert (minSubArraySum({7}) == 7); assert (minSubArraySum({1, -1}) == -1); }
#undef NDEBUG #include<assert.h> int main(){ assert (minSubArraySum({2, 3, 4, 1, 2, 4}) == 1); assert (minSubArraySum({-1, -2, -3}) == -6); }
; ModuleID = 'c_code/code_113.cpp' source_filename = "c_code/code_113.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i64 @_Z14minSubArraySumNSt3__26vectorIxNS_9allocatorIxEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = load ptr, ptr %0, align 4, !tbaa !3 %3 = load i64, ptr %2, align 8, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !12 %6 = ptrtoint ptr %5 to i32 %7 = ptrtoint ptr %2 to i32 %8 = sub i32 %6, %7 %9 = ashr exact i32 %8, 3 %10 = tail call i32 @llvm.umax.i32(i32 %9, i32 1) br label %11 11: ; preds = %17, %1 %12 = phi i64 [ %3, %1 ], [ %21, %17 ] %13 = phi i64 [ %3, %1 ], [ %22, %17 ] %14 = phi i32 [ 1, %1 ], [ %23, %17 ] %15 = icmp eq i32 %14, %10 br i1 %15, label %16, label %17 16: ; preds = %11 ret i64 %13 17: ; preds = %11 %18 = getelementptr inbounds i64, ptr %2, i32 %14 %19 = load i64, ptr %18, align 8, !tbaa !10 %20 = tail call i64 @llvm.smin.i64(i64 %12, i64 0) %21 = add nsw i64 %19, %20 %22 = tail call i64 @llvm.smin.i64(i64 %21, i64 %13) %23 = add nuw i32 %14, 1 br label %11, !llvm.loop !13 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smin.i64(i64, i64) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIxNS_9allocatorIxEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPxNS_9allocatorIxEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPxLi0ELb0EEE", !5, i64 0} !10 = !{!11, !11, i64 0} !11 = !{!"long long", !6, i64 0} !12 = !{!4, !5, i64 4} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_113.wasm (type (;0;) (func (param i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i64))) (type (;3;) (func (param i32) (result i32))) (import "env" "setTempRet0" (func $setTempRet0 (type 0))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 1)) (func $minSubArraySum_std::__2::vector<long_long__std::__2::allocator<long_long>>_ (type 2) (param i32) (result i64) (local i64 i64 i32 i32) i32.const 1 local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 3 i32.sub i32.const 3 i32.shr_s local.tee 0 local.get 0 i32.const 1 i32.le_u select local.set 4 local.get 3 i64.load local.tee 1 local.set 2 i32.const 1 local.set 0 loop (result i64) ;; label = @1 local.get 0 local.get 4 i32.eq if (result i64) ;; label = @2 local.get 2 else local.get 3 local.get 0 i32.const 3 i32.shl i32.add i64.load local.get 1 i64.const 63 i64.shr_s local.get 1 i64.and i64.add local.tee 1 local.get 2 local.get 1 local.get 2 i64.lt_s select local.set 2 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end) (func $legalstub$minSubArraySum_std::__2::vector<long_long__std::__2::allocator<long_long>>_ (type 3) (param i32) (result i32) (local i64) local.get 0 call $minSubArraySum_std::__2::vector<long_long__std::__2::allocator<long_long>>_ local.tee 1 i64.const 32 i64.shr_u i32.wrap_i64 call $setTempRet0 local.get 1 i32.wrap_i64) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z14minSubArraySumNSt3__26vectorIxNS_9allocatorIxEEEE" (func $legalstub$minSubArraySum_std::__2::vector<long_long__std::__2::allocator<long_long>>_)) (export "orig$_Z14minSubArraySumNSt3__26vectorIxNS_9allocatorIxEEEE" (func $minSubArraySum_std::__2::vector<long_long__std::__2::allocator<long_long>>_)))
CPP/115
/* You are given a rectangular grid of wells. Each row represents a single well, and each 1 in a row represents a single unit of water. Each well has a corresponding bucket that can be used to extract water from it, and all buckets have the same capacity. Your task is to use the buckets to empty the wells. Output the number of times you need to lower the buckets. Example 1: Input: grid : {{0,0,1,0}, {0,1,0,0}, {1,1,1,1}} bucket_capacity : 1 Output: 6 Example 2: Input: grid : {{0,0,1,1}, {0,0,0,0}, {1,1,1,1}, {0,1,1,1}} bucket_capacity : 2 Output: 5 Example 3: Input: grid : {{0,0,0}, {0,0,0}} bucket_capacity : 5 Output: 0 Constraints: * all wells have the same length * 1 <= grid.length <= 10^2 * 1 <= grid{:,1}.length <= 10^2 * grid{i}{j} -> 0 | 1 * 1 <= capacity <= 10 */ #include<stdio.h> #include<vector> using namespace std; int max_fill(vector<vector<int>> grid,int capacity){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> int max_fill(vector<vector<int>> grid,int capacity){
int out=0; for (int i=0;i<grid.size();i++) { int sum=0; for (int j=0;j<grid[i].size();j++) sum+=grid[i][j]; if (sum>0) out+=(sum-1)/capacity+1; } return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (max_fill({{0,0,1,0}, {0,1,0,0}, {1,1,1,1}}, 1) == 6); assert (max_fill({{0,0,1,1}, {0,0,0,0}, {1,1,1,1}, {0,1,1,1}}, 2) == 5); assert (max_fill({{0,0,0}, {0,0,0}}, 5) == 0); assert (max_fill({{1,1,1,1}, {1,1,1,1}}, 2) == 4); assert (max_fill({{1,1,1,1}, {1,1,1,1}}, 9) == 2); }
#undef NDEBUG #include<assert.h> int main(){ assert (max_fill({{0,0,1,0}, {0,1,0,0}, {1,1,1,1}}, 1) == 6); assert (max_fill({{0,0,1,1}, {0,0,0,0}, {1,1,1,1}, {0,1,1,1}}, 2) == 5); assert (max_fill({{0,0,0}, {0,0,0}}, 5) == 0); }
; ModuleID = 'c_code/code_114.cpp' source_filename = "c_code/code_114.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::vector.1" = type { ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z8max_fillNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEEi(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !3 %5 = load ptr, ptr %0, align 4, !tbaa !10 %6 = ptrtoint ptr %4 to i32 %7 = ptrtoint ptr %5 to i32 %8 = sub i32 %6, %7 %9 = sdiv exact i32 %8, 12 br label %10 10: ; preds = %40, %2 %11 = phi i32 [ 0, %2 ], [ %41, %40 ] %12 = phi i32 [ 0, %2 ], [ %42, %40 ] %13 = icmp eq i32 %12, %9 br i1 %13, label %23, label %14 14: ; preds = %10 %15 = getelementptr inbounds %"class.std::__2::vector.1", ptr %5, i32 %12 %16 = getelementptr inbounds %"class.std::__2::vector.1", ptr %5, i32 %12, i32 1 %17 = load ptr, ptr %16, align 4, !tbaa !11 %18 = load ptr, ptr %15, align 4, !tbaa !15 %19 = ptrtoint ptr %17 to i32 %20 = ptrtoint ptr %18 to i32 %21 = sub i32 %19, %20 %22 = ashr exact i32 %21, 2 br label %24 23: ; preds = %10 ret i32 %11 24: ; preds = %14, %30 %25 = phi i32 [ %33, %30 ], [ 0, %14 ] %26 = phi i32 [ %34, %30 ], [ 0, %14 ] %27 = icmp eq i32 %26, %22 br i1 %27, label %28, label %30 28: ; preds = %24 %29 = icmp sgt i32 %25, 0 br i1 %29, label %35, label %40 30: ; preds = %24 %31 = getelementptr inbounds i32, ptr %18, i32 %26 %32 = load i32, ptr %31, align 4, !tbaa !16 %33 = add nsw i32 %32, %25 %34 = add nuw i32 %26, 1 br label %24, !llvm.loop !18 35: ; preds = %28 %36 = add nsw i32 %25, -1 %37 = sdiv i32 %36, %1 %38 = add i32 %11, 1 %39 = add i32 %38, %37 br label %40 40: ; preds = %35, %28 %41 = phi i32 [ %39, %35 ], [ %11, %28 ] %42 = add nuw i32 %12, 1 br label %10, !llvm.loop !20 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_6vectorIiNS_9allocatorIiEEEENS2_IS4_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_6vectorIiNS_9allocatorIiEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !5, i64 4} !12 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !13, i64 8} !13 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !14, i64 0} !14 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !15 = !{!12, !5, i64 0} !16 = !{!17, !17, i64 0} !17 = !{!"int", !6, i64 0} !18 = distinct !{!18, !19} !19 = !{!"llvm.loop.mustprogress"} !20 = distinct !{!20, !19}
(module $code_114.wasm (type (;0;) (func)) (type (;1;) (func (param i32 i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $max_fill_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>__int_ (type 1) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 5 i32.sub i32.const 12 i32.div_s local.set 6 loop ;; label = @1 local.get 3 local.get 6 i32.ne if ;; label = @2 local.get 5 local.get 3 i32.const 12 i32.mul i32.add local.tee 0 i32.load offset=4 local.get 0 i32.load local.tee 7 i32.sub i32.const 2 i32.shr_s local.set 8 i32.const 0 local.set 4 i32.const 0 local.set 0 loop ;; label = @3 local.get 0 local.get 8 i32.eq if ;; label = @4 local.get 4 i32.const 0 i32.gt_s if ;; label = @5 local.get 2 local.get 4 i32.const 1 i32.sub local.get 1 i32.div_s i32.add i32.const 1 i32.add local.set 2 end local.get 3 i32.const 1 i32.add local.set 3 br 3 (;@1;) else local.get 7 local.get 0 i32.const 2 i32.shl i32.add i32.load local.get 4 i32.add local.set 4 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@3;) end unreachable end unreachable end end local.get 2) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z8max_fillNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEEi" (func $max_fill_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>__int_)))
CPP/116
/* In this Kata, you have to sort a vector of non-negative integers according to number of ones in their binary representation in ascending order. For similar number of ones, sort based on decimal value. It must be implemented like this: >>> sort_vector({1, 5, 2, 3, 4}) == {1, 2, 3, 4, 5} >>> sort_vector({-2, -3, -4, -5, -6}) == {-6, -5, -4, -3, -2} >>> sort_vector({1, 0, 2, 3, 4}) == {0, 1, 2, 3, 4} */ #include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; vector<int> sort_array(vector<int> arr){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> sort_array(vector<int> arr){
vector<int> bin={}; int m; for (int i=0;i<arr.size();i++) { int b=0,n=abs(arr[i]); while (n>0) { b+=n%2;n=n/2; } bin.push_back(b); } for (int i=0;i<arr.size();i++) for (int j=1;j<arr.size();j++) if (bin[j]<bin[j-1] or (bin[j]==bin[j-1] and arr[j]<arr[j-1])) { m=arr[j];arr[j]=arr[j-1];arr[j-1]=m; m=bin[j];bin[j]=bin[j-1];bin[j-1]=m; } return arr; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(sort_array({1,5,2,3,4}) , {1, 2, 4, 3, 5})); assert (issame(sort_array({-2,-3,-4,-5,-6}) , {-4, -2, -6, -5, -3})); assert (issame(sort_array({1,0,2,3,4}) , {0, 1, 2, 4, 3})); assert (issame(sort_array({}) , {})); assert (issame(sort_array({2,5,77,4,5,3,5,7,2,3,4}) , {2, 2, 4, 4, 3, 3, 5, 5, 5, 7, 77})); assert (issame(sort_array({3,6,44,12,32,5}) , {32, 3, 5, 6, 12, 44})); assert (issame(sort_array({2,4,8,16,32}) , {2, 4, 8, 16, 32})); assert (issame(sort_array({2,4,8,16,32}) , {2, 4, 8, 16, 32})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(sort_array({1,5,2,3,4}) , {1, 2, 4, 3, 5})); assert (issame(sort_array({-2,-3,-4,-5,-6}) , {-4, -2, -6, -5, -3})); assert (issame(sort_array({1,0,2,3,4}) , {0, 1, 2, 4, 3})); }
; ModuleID = 'c_code/code_115.cpp' source_filename = "c_code/code_115.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z10sort_arrayNSt3__26vectorIiNS_9allocatorIiEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::vector", align 4 %4 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #14 store ptr null, ptr %3, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !10 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 2 store ptr null, ptr %6, align 4, !tbaa !11 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 br label %8 8: ; preds = %29, %2 %9 = phi i32 [ 0, %2 ], [ %30, %29 ] %10 = load ptr, ptr %7, align 4, !tbaa !10 %11 = load ptr, ptr %1, align 4, !tbaa !3 %12 = ptrtoint ptr %10 to i32 %13 = ptrtoint ptr %11 to i32 %14 = sub i32 %12, %13 %15 = ashr exact i32 %14, 2 %16 = icmp ult i32 %9, %15 br i1 %16, label %17, label %31 17: ; preds = %8 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #14 store i32 0, ptr %4, align 4, !tbaa !12 %18 = getelementptr inbounds i32, ptr %11, i32 %9 %19 = load i32, ptr %18, align 4, !tbaa !12 %20 = call i32 @llvm.abs.i32(i32 %19, i1 true) br label %21 21: ; preds = %25, %17 %22 = phi i32 [ 0, %17 ], [ %27, %25 ] %23 = phi i32 [ %20, %17 ], [ %28, %25 ] %24 = icmp eq i32 %23, 0 br i1 %24, label %29, label %25 25: ; preds = %21 %26 = and i32 %23, 1 %27 = add nuw nsw i32 %22, %26 %28 = lshr i32 %23, 1 br label %21, !llvm.loop !14 29: ; preds = %21 store i32 %22, ptr %4, align 4, !tbaa !12 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #14 %30 = add nuw nsw i32 %9, 1 br label %8, !llvm.loop !16 31: ; preds = %8, %42 %32 = phi i32 [ %43, %42 ], [ 0, %8 ] %33 = icmp eq i32 %32, %15 br i1 %33, label %36, label %34 34: ; preds = %31 %35 = load ptr, ptr %3, align 4 br label %39 36: ; preds = %31 %37 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 %38 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #16 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #14 ret void 39: ; preds = %34, %71 %40 = phi i32 [ %72, %71 ], [ 1, %34 ] %41 = icmp eq i32 %40, %15 br i1 %41, label %42, label %44 42: ; preds = %39 %43 = add nuw i32 %32, 1 br label %31, !llvm.loop !17 44: ; preds = %39 %45 = getelementptr inbounds i32, ptr %35, i32 %40 %46 = load i32, ptr %45, align 4, !tbaa !12 %47 = add nsw i32 %40, -1 %48 = getelementptr inbounds i32, ptr %35, i32 %47 %49 = load i32, ptr %48, align 4, !tbaa !12 %50 = icmp slt i32 %46, %49 br i1 %50, label %51, label %56 51: ; preds = %44 %52 = getelementptr inbounds i32, ptr %11, i32 %40 %53 = load i32, ptr %52, align 4, !tbaa !12 %54 = getelementptr inbounds i32, ptr %11, i32 %47 %55 = load i32, ptr %54, align 4, !tbaa !12 br label %64 56: ; preds = %44 %57 = icmp eq i32 %46, %49 br i1 %57, label %58, label %71 58: ; preds = %56 %59 = getelementptr inbounds i32, ptr %11, i32 %40 %60 = load i32, ptr %59, align 4, !tbaa !12 %61 = getelementptr inbounds i32, ptr %11, i32 %47 %62 = load i32, ptr %61, align 4, !tbaa !12 %63 = icmp slt i32 %60, %62 br i1 %63, label %64, label %71 64: ; preds = %51, %58 %65 = phi i32 [ %55, %51 ], [ %62, %58 ] %66 = phi i32 [ %53, %51 ], [ %60, %58 ] %67 = getelementptr inbounds i32, ptr %11, i32 %40 %68 = getelementptr inbounds i32, ptr %11, i32 %47 store i32 %65, ptr %67, align 4, !tbaa !12 store i32 %66, ptr %68, align 4, !tbaa !12 %69 = load i32, ptr %45, align 4, !tbaa !12 %70 = load i32, ptr %48, align 4, !tbaa !12 store i32 %70, ptr %45, align 4, !tbaa !12 store i32 %69, ptr %48, align 4, !tbaa !12 br label %71 71: ; preds = %56, %58, %64 %72 = add nuw i32 %40, 1 br label %39, !llvm.loop !18 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !19 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #15 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #3 comdat { store ptr null, ptr %0, align 4, !tbaa !3 %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %3, align 4, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %4, align 4, !tbaa !11 %5 = load ptr, ptr %1, align 4, !tbaa !3 store ptr %5, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !10 store ptr %7, ptr %3, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !19 store ptr %9, ptr %4, align 4, !tbaa !19 store ptr null, ptr %8, align 4, !tbaa !19 store ptr null, ptr %6, align 4, !tbaa !10 store ptr null, ptr %1, align 4, !tbaa !3 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #4 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #14 store ptr %0, ptr %2, align 4, !tbaa !19 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #16 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #14 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #5 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !20 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef nonnull %3) #17 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #6 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #7 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #14 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #15 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !22 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !22 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #15 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #16 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #14 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #7 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !19 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !19 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #15, !noalias !26 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !29 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !22 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !30 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !19 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !30 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !31 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !31 br label %8, !llvm.loop !36 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !30 %17 = load ptr, ptr %0, align 4, !tbaa !19 store ptr %10, ptr %0, align 4, !tbaa !19 store ptr %17, ptr %6, align 4, !tbaa !19 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !19 %20 = load ptr, ptr %18, align 4, !tbaa !19 store ptr %20, ptr %3, align 4, !tbaa !19 store ptr %19, ptr %18, align 4, !tbaa !19 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !19 %24 = load ptr, ptr %22, align 4, !tbaa !19 store ptr %24, ptr %21, align 4, !tbaa !19 store ptr %23, ptr %22, align 4, !tbaa !19 %25 = load ptr, ptr %6, align 4, !tbaa !30 store ptr %25, ptr %1, align 4, !tbaa !29 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #4 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #16 %2 = load ptr, ptr %0, align 4, !tbaa !29 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #18 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #14 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #15 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #19 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #15 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !37 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #4 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #18 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #20 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #14 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #16 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #19 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !30 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #16 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !22 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !22 br label %5, !llvm.loop !39 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #13 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #13 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #14 = { nounwind } attributes #15 = { minsize optsize } attributes #16 = { minsize nounwind optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { minsize noreturn optsize } attributes #19 = { noreturn } attributes #20 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = distinct !{!16, !15} !17 = distinct !{!17, !15} !18 = distinct !{!18, !15} !19 = !{!5, !5, i64 0} !20 = !{!21, !5, i64 0} !21 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !22 = !{!23, !5, i64 8} !23 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !24, i64 12} !24 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !25, i64 4} !25 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !26 = !{!27} !27 = distinct !{!27, !28, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !28 = distinct !{!28, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !29 = !{!23, !5, i64 0} !30 = !{!23, !5, i64 4} !31 = !{!32, !34} !32 = distinct !{!32, !33, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !33 = distinct !{!33, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !34 = distinct !{!34, !35, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !36 = distinct !{!36, !15} !37 = !{!38, !38, i64 0} !38 = !{!"vtable pointer", !7, i64 0} !39 = distinct !{!39, !15}
(module $code_115.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $sort_array_std::__2::vector<int__std::__2::allocator<int>>_ (type 0) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 0 i32.store offset=12 local.get 3 i64.const 0 i64.store offset=4 align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 4 i32.sub i32.const 2 i32.shr_s local.tee 9 local.get 5 i32.le_u if ;; label = @2 loop ;; label = @3 local.get 9 local.get 10 i32.ne if ;; label = @4 i32.const 1 local.set 2 local.get 3 i32.load offset=4 local.set 11 loop ;; label = @5 local.get 2 local.get 9 i32.eq if ;; label = @6 local.get 10 i32.const 1 i32.add local.set 10 br 3 (;@3;) else block ;; label = @7 block ;; label = @8 local.get 11 local.get 2 i32.const 2 i32.shl local.tee 5 i32.add local.tee 12 i32.load local.tee 7 local.get 11 local.get 2 i32.const 1 i32.sub i32.const 2 i32.shl local.tee 6 i32.add local.tee 13 i32.load local.tee 8 i32.lt_s if ;; label = @9 local.get 4 local.get 6 i32.add i32.load local.set 7 local.get 4 local.get 5 i32.add i32.load local.set 8 br 1 (;@8;) end local.get 7 local.get 8 i32.ne br_if 1 (;@7;) local.get 4 local.get 5 i32.add i32.load local.tee 8 local.get 4 local.get 6 i32.add i32.load local.tee 7 i32.ge_s br_if 1 (;@7;) end local.get 4 local.get 5 i32.add local.get 7 i32.store local.get 4 local.get 6 i32.add local.get 8 i32.store local.get 12 i32.load local.set 5 local.get 12 local.get 13 i32.load i32.store local.get 13 local.get 5 i32.store end local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@5;) end unreachable end unreachable end end local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 1 i32.load i32.store local.get 0 local.get 1 i32.load offset=4 i32.store offset=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 3 i32.const 4 i32.add i32.store offset=12 local.get 0 i32.load offset=12 local.tee 2 i32.load local.tee 1 if ;; label = @3 local.get 2 local.get 1 i32.store offset=4 local.get 1 call $operator_delete_void*_ end local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.const 16 i32.add global.set $__stack_pointer else i32.const 0 local.set 6 local.get 3 i32.const 0 i32.store local.get 4 local.get 5 i32.const 2 i32.shl i32.add i32.load local.tee 2 local.get 2 i32.const 31 i32.shr_s local.tee 2 i32.xor local.get 2 i32.sub local.set 2 loop ;; label = @3 local.get 2 if ;; label = @4 local.get 2 i32.const 1 i32.and local.get 6 i32.add local.set 6 local.get 2 i32.const 1 i32.shr_u local.set 2 br 1 (;@3;) end end local.get 3 local.get 6 i32.store local.get 5 i32.const 1 i32.add local.set 5 block ;; label = @3 local.get 3 i32.const 4 i32.add local.tee 2 i32.load offset=4 local.tee 4 local.get 2 i32.load offset=8 i32.ne if ;; label = @4 local.get 4 local.get 3 i32.load i32.store local.get 2 local.get 4 i32.const 4 i32.add i32.store offset=4 br 1 (;@3;) end local.get 2 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end br 1 (;@1;) end end) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10sort_arrayNSt3__26vectorIiNS_9allocatorIiEEEE" (func $sort_array_std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/117
/* Given a string s and a natural number n, you have been tasked to implement a function that returns a vector of all words from string s that contain exactly n consonants, in order these words appear in the string s. If the string s is empty then the function should return an empty vector. Note: you may assume the input string contains only letters and spaces. Examples: select_words("Mary had a little lamb", 4) ==> {"little"} select_words("Mary had a little lamb", 3) ==> {"Mary", "lamb"} select_words('simple white space", 2) ==> {} select_words("Hello world", 4) ==> {"world"} select_words("Uncle sam", 3) ==> {"Uncle"} */ #include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; vector<string> select_words(string s,int n){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> vector<string> select_words(string s,int n){
string vowels="aeiouAEIOU"; string current=""; vector<string> out={}; int numc=0; s=s+' '; for (int i=0;i<s.length();i++) if (s[i]==' ') { if (numc==n) out.push_back(current); current=""; numc=0; } else { current=current+s[i]; if ((s[i]>=65 and s[i]<=90) or (s[i]>=97 and s[i]<=122)) if (find(vowels.begin(),vowels.end(),s[i])==vowels.end()) numc+=1; } return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(select_words("Mary had a little lamb", 4) , {"little"} )); assert (issame(select_words("Mary had a little lamb", 3) , {"Mary", "lamb"} )); assert (issame(select_words("simple white space", 2) , {} )); assert (issame(select_words("Hello world", 4) , {"world"} )); assert (issame(select_words("Uncle sam", 3) , {"Uncle"})); assert (issame(select_words("", 4) , {})); assert (issame(select_words("a b c d e f", 1) , {"b", "c", "d", "f"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(select_words("Mary had a little lamb", 4) , {"little"} )); assert (issame(select_words("Mary had a little lamb", 3) , {"Mary", "lamb"} )); assert (issame(select_words("simple white space", 2) , {} )); assert (issame(select_words("Hello world", 4) , {"world"} )); assert (issame(select_words("Uncle sam", 3) , {"Uncle"})); }
; ModuleID = 'c_code/code_116.cpp' source_filename = "c_code/code_116.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator.4" = type { i8 } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc = comdat any @.str = private unnamed_addr constant [11 x i8] c"aeiouAEIOU\00", align 1 @.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.3 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z12select_wordsNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEi(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 { %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #18 %8 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull @.str) #19 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #18 %9 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull @.str.1) #19 store ptr null, ptr %0, align 4, !tbaa !3 %10 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %10, align 4, !tbaa !10 %11 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %11, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 32) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %6) #20 %12 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #18 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %4, i32 0, i32 2 %16 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %4, i32 0, i32 1 br label %17 17: ; preds = %72, %3 %18 = phi i32 [ 0, %3 ], [ %74, %72 ] %19 = phi i32 [ 0, %3 ], [ %73, %72 ] %20 = load i8, ptr %13, align 1 %21 = icmp slt i8 %20, 0 %22 = load i32, ptr %14, align 4 %23 = zext i8 %20 to i32 %24 = select i1 %21, i32 %22, i32 %23 %25 = icmp ult i32 %18, %24 br i1 %25, label %26, label %75 26: ; preds = %17 %27 = load ptr, ptr %1, align 4 %28 = select i1 %21, ptr %27, ptr %1 %29 = getelementptr inbounds i8, ptr %28, i32 %18 %30 = load i8, ptr %29, align 1, !tbaa !12 %31 = icmp eq i8 %30, 32 br i1 %31, label %32, label %37 32: ; preds = %26 %33 = icmp eq i32 %19, %2 br i1 %33, label %34, label %35 34: ; preds = %32 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %5) #19 br label %35 35: ; preds = %34, %32 %36 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull @.str.1) #19 br label %72 37: ; preds = %26 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %5, i8 noundef signext %30) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %7) #20 %38 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #18 %39 = load i8, ptr %13, align 1 %40 = icmp slt i8 %39, 0 %41 = load ptr, ptr %1, align 4 %42 = select i1 %40, ptr %41, ptr %1 %43 = getelementptr inbounds i8, ptr %42, i32 %18 %44 = load i8, ptr %43, align 1, !tbaa !12 %45 = icmp sgt i8 %44, 64 br i1 %45, label %46, label %72 46: ; preds = %37 %47 = icmp ult i8 %44, 91 %48 = add nsw i8 %44, -97 %49 = icmp ult i8 %48, 26 %50 = or i1 %47, %49 br i1 %50, label %51, label %72 51: ; preds = %46 %52 = load i8, ptr %15, align 1 %53 = icmp slt i8 %52, 0 %54 = load ptr, ptr %4, align 4 %55 = select i1 %53, ptr %54, ptr %4 %56 = load i32, ptr %16, align 4 %57 = zext i8 %52 to i32 %58 = select i1 %53, i32 %56, i32 %57 %59 = getelementptr inbounds i8, ptr %55, i32 %58 %60 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %55, ptr %59, ptr noundef nonnull align 1 dereferenceable(1) %43) #19 %61 = load i8, ptr %15, align 1 %62 = icmp slt i8 %61, 0 %63 = load ptr, ptr %4, align 4 %64 = select i1 %62, ptr %63, ptr %4 %65 = load i32, ptr %16, align 4 %66 = zext i8 %61 to i32 %67 = select i1 %62, i32 %65, i32 %66 %68 = getelementptr inbounds i8, ptr %64, i32 %67 %69 = icmp eq ptr %60, %68 %70 = zext i1 %69 to i32 %71 = add nsw i32 %19, %70 br label %72 72: ; preds = %46, %37, %51, %35 %73 = phi i32 [ 0, %35 ], [ %71, %51 ], [ %19, %37 ], [ %19, %46 ] %74 = add nuw nsw i32 %18, 1 br label %17, !llvm.loop !13 75: ; preds = %17 %76 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #18 %77 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #18 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #19 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator.4", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #18 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #18 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !15 store i8 %2, ptr %24, align 1, !tbaa !12 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !12 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !26 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %0, ptr %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #4 comdat { %4 = ptrtoint ptr %0 to i32 %5 = ptrtoint ptr %1 to i32 %6 = load i8, ptr %2, align 1 %7 = sub i32 %5, %4 %8 = getelementptr i8, ptr %0, i32 %7 br label %9 9: ; preds = %15, %3 %10 = phi ptr [ %0, %3 ], [ %16, %15 ] %11 = icmp eq ptr %10, %1 br i1 %11, label %17, label %12 12: ; preds = %9 %13 = load i8, ptr %10, align 1, !tbaa !12 %14 = icmp eq i8 %13, %6 br i1 %14, label %17, label %15 15: ; preds = %12 %16 = getelementptr inbounds i8, ptr %10, i32 1 br label %9, !llvm.loop !27 17: ; preds = %12, %9 %18 = phi ptr [ %10, %12 ], [ %8, %9 ] ret ptr %18 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #21 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #18 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #19 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #19 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !28 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #10 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #18 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #20 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #22 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #10 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #10 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #23 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !12 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !12 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #14 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !12 tail call void @_ZdlPv(ptr noundef %7) #24 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !30 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !12 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #19 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !33 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %24 = load ptr, ptr %21, align 4, !tbaa !33 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !33 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #19 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #20 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #18 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !30 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !12 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !12 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #19 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !26 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !26 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #19, !noalias !37 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !40 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !33 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !41 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !26 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !41 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #19 store ptr %9, ptr %7, align 4, !tbaa !41 %10 = load ptr, ptr %0, align 4, !tbaa !26 store ptr %9, ptr %0, align 4, !tbaa !26 store ptr %10, ptr %7, align 4, !tbaa !26 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !26 %13 = load ptr, ptr %11, align 4, !tbaa !26 store ptr %13, ptr %4, align 4, !tbaa !26 store ptr %12, ptr %11, align 4, !tbaa !26 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !26 %16 = load ptr, ptr %14, align 4, !tbaa !26 store ptr %16, ptr %3, align 4, !tbaa !26 store ptr %15, ptr %14, align 4, !tbaa !26 %17 = load ptr, ptr %7, align 4, !tbaa !41 store ptr %17, ptr %1, align 4, !tbaa !40 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #10 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #20 %2 = load ptr, ptr %0, align 4, !tbaa !40 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #24 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.3) #21 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #15 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #21 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #23 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !26 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !42 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !43 store i8 1, ptr %19, align 4, !tbaa !45 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !45, !range !49, !noundef !50 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !51 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !52 %5 = load ptr, ptr %4, align 4, !tbaa.struct !53 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !54 %8 = load ptr, ptr %7, align 4, !tbaa.struct !53 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #15 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !55 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #16 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !41 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #20 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !33 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !33 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !56 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1) #19 ret ptr %4 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #15 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { nounwind } attributes #19 = { minsize optsize } attributes #20 = { minsize nounwind optsize } attributes #21 = { minsize noreturn optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize optsize allocsize(0) } attributes #24 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!6, !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = !{!16, !18, !20, !22, !24} !16 = distinct !{!16, !17, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !17 = distinct !{!17, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !18 = distinct !{!18, !19, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !19 = distinct !{!19, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !20 = distinct !{!20, !21, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !21 = distinct !{!21, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !22 = distinct !{!22, !23, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !23 = distinct !{!23, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !24 = distinct !{!24, !25, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !26 = !{!5, !5, i64 0} !27 = distinct !{!27, !14} !28 = !{!29, !29, i64 0} !29 = !{!"vtable pointer", !7, i64 0} !30 = !{i64 0, i64 4, !26, i64 4, i64 4, !31, i64 8, i64 4, !31, i64 11, i64 4, !31, i64 0, i64 11, !12, i64 11, i64 0, !12, i64 11, i64 1, !12, i64 11, i64 1, !12, i64 0, i64 12, !12} !31 = !{!32, !32, i64 0} !32 = !{!"long", !6, i64 0} !33 = !{!34, !5, i64 8} !34 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !35, i64 12} !35 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !9, i64 0, !36, i64 4} !36 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !37 = !{!38} !38 = distinct !{!38, !39, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !39 = distinct !{!39, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !40 = !{!34, !5, i64 0} !41 = !{!34, !5, i64 4} !42 = distinct !{!42, !14} !43 = !{!44, !5, i64 0} !44 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !45 = !{!46, !48, i64 12} !46 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !47, i64 0, !48, i64 12} !47 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !48 = !{!"bool", !6, i64 0} !49 = !{i8 0, i8 2} !50 = !{} !51 = !{!47, !5, i64 0} !52 = !{!47, !5, i64 8} !53 = !{i64 0, i64 4, !26} !54 = !{!47, !5, i64 4} !55 = distinct !{!55, !14} !56 = distinct !{!56, !14}
(module $code_116.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ (type 0))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $select_words_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__int_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 7 global.set $__stack_pointer local.get 7 i32.const 36 i32.add global.get $__memory_base local.tee 5 i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 4 local.get 7 i32.const 24 i32.add local.get 5 i32.const 30 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 5 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 7 i32.const 12 i32.add local.tee 3 local.get 1 i32.const 32 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 1 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 8 i32.gt_u if ;; label = @2 block ;; label = @3 local.get 1 i32.load local.get 1 local.get 3 select local.get 8 i32.add i32.load8_u local.tee 6 i32.const 32 i32.eq if ;; label = @4 local.get 2 local.get 9 i32.eq if ;; label = @5 block ;; label = @6 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @7 local.get 0 local.get 5 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@6;) end local.get 0 local.get 5 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end end local.get 5 global.get $__memory_base i32.const 30 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ drop i32.const 0 local.set 9 br 1 (;@3;) end local.get 7 i32.const 12 i32.add local.tee 3 local.get 5 local.get 6 i32.extend8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 5 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 8 i32.add local.tee 10 i32.load8_s local.tee 3 i32.const 65 i32.lt_s local.get 3 i32.const 97 i32.sub i32.const 255 i32.and i32.const 25 i32.gt_u local.get 3 i32.const 91 i32.ge_u i32.and i32.or br_if 0 (;@3;) local.get 9 block (result i32) ;; label = @4 local.get 4 i32.load local.get 4 local.get 4 i32.load8_u offset=11 local.tee 6 i32.extend8_s i32.const 0 i32.lt_s local.tee 11 select local.set 3 local.get 3 local.get 4 i32.load offset=4 local.get 6 local.get 11 select i32.add local.set 6 local.get 10 i32.load8_u local.set 10 loop ;; label = @5 block ;; label = @6 local.get 3 local.get 6 i32.ne if (result i32) ;; label = @7 local.get 3 i32.load8_u local.get 10 i32.ne br_if 1 (;@6;) local.get 3 else local.get 6 end br 2 (;@4;) end local.get 3 i32.const 1 i32.add local.set 3 br 0 (;@5;) end unreachable end local.get 4 i32.load local.get 4 local.get 4 i32.load8_u offset=11 local.tee 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.get 4 i32.load offset=4 local.get 3 local.get 6 select i32.add i32.eq i32.add local.set 9 end local.get 8 i32.const 1 i32.add local.set 8 br 1 (;@1;) end end local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 7 i32.const 48 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer block (result i32) ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 i32.const 1 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 3 i32.store8 offset=11 local.get 0 br 2 (;@1;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 6 call $operator_new_unsigned_long_ local.set 7 local.get 0 local.get 3 i32.store offset=4 local.get 0 local.get 7 i32.store local.get 0 local.get 6 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 br 1 (;@1;) end global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.tee 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add local.tee 0 local.get 2 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 5 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 3) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 3 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 4 i32.const 1 i32.shl local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 178956970 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 12 i32.mul call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 3 local.get 0 i32.load local.set 1 local.get 2 i32.load offset=16 local.set 5 global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 local.get 5 i32.store offset=24 local.get 4 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 4 local.get 4 i32.const 28 i32.add i32.store offset=16 local.get 4 local.get 4 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 3 i32.ne if ;; label = @2 local.get 5 i32.const 12 i32.sub local.tee 5 local.get 3 i32.const 12 i32.sub local.tee 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 4 i32.const 1 i32.store8 offset=20 local.get 4 local.get 5 i32.store offset=28 local.get 4 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 3 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 3 i32.ne if ;; label = @3 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 3 br 1 (;@2;) end end end local.get 4 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 5 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 5 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 4) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z12select_wordsNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEi" (func $select_words_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__int_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00aeiouAEIOU\00"))
CPP/118
/* You are given a word. Your task is to find the closest vowel that stands between two consonants from the right side of the word (case sensitive). Vowels in the beginning and ending doesn't count. Return empty string if you didn't find any vowel met the above condition. You may assume that the given string contains English letter only. Example: get_closest_vowel("yogurt") ==> "u" get_closest_vowel("FULL") ==> "U" get_closest_vowel("quick") ==> "" get_closest_vowel("ab") ==> "" */ #include<stdio.h> #include<string> #include<algorithm> using namespace std; string get_closest_vowel(string word){
#include<stdio.h> #include<math.h> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> string get_closest_vowel(string word){
string out=""; string vowels="AEIOUaeiou"; for (int i=word.length()-2;i>=1;i-=1) if (find(vowels.begin(),vowels.end(),word[i])!=vowels.end()) if (find(vowels.begin(),vowels.end(),word[i+1])==vowels.end()) if (find(vowels.begin(),vowels.end(),word[i-1])==vowels.end()) return out+word[i]; return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (get_closest_vowel("yogurt") == "u"); assert (get_closest_vowel("full") == "u"); assert (get_closest_vowel("easy") == ""); assert (get_closest_vowel("eAsy") == ""); assert (get_closest_vowel("ali") == ""); assert (get_closest_vowel("bad") == "a"); assert (get_closest_vowel("most") =="o"); assert (get_closest_vowel("ab") == ""); assert (get_closest_vowel("ba") == ""); assert (get_closest_vowel("quick") == ""); assert (get_closest_vowel("anime") == "i"); assert (get_closest_vowel("Asia") == ""); assert (get_closest_vowel("Above") == "o"); }
#undef NDEBUG #include<assert.h> int main(){ assert (get_closest_vowel("yogurt") == "u"); assert (get_closest_vowel("FULL") == "U"); assert (get_closest_vowel("ab") == ""); assert (get_closest_vowel("quick") == ""); }
; ModuleID = 'c_code/code_117.cpp' source_filename = "c_code/code_117.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [11 x i8] c"AEIOUaeiou\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize optsize define void @_Z17get_closest_vowelNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #13 %5 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #14 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #13 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull @.str.1) #14 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %8 = load i8, ptr %7, align 1 %9 = icmp slt i8 %8, 0 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %11 = load i32, ptr %10, align 4 %12 = zext i8 %8 to i32 %13 = select i1 %9, i32 %11, i32 %12 %14 = add i32 %13, -2 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %4, i32 0, i32 2 %16 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %4, i32 0, i32 1 br label %17 17: ; preds = %85, %2 %18 = phi i32 [ %14, %2 ], [ %86, %85 ] %19 = icmp slt i32 %18, 1 br i1 %19, label %87, label %20 20: ; preds = %17 %21 = load i8, ptr %15, align 1 %22 = icmp slt i8 %21, 0 %23 = load ptr, ptr %4, align 4 %24 = select i1 %22, ptr %23, ptr %4 %25 = load i32, ptr %16, align 4 %26 = zext i8 %21 to i32 %27 = select i1 %22, i32 %25, i32 %26 %28 = getelementptr inbounds i8, ptr %24, i32 %27 %29 = load i8, ptr %7, align 1 %30 = icmp slt i8 %29, 0 %31 = load ptr, ptr %1, align 4 %32 = select i1 %30, ptr %31, ptr %1 %33 = getelementptr inbounds i8, ptr %32, i32 %18 %34 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %24, ptr %28, ptr noundef nonnull align 1 dereferenceable(1) %33) #14 %35 = load i8, ptr %15, align 1 %36 = icmp slt i8 %35, 0 %37 = load ptr, ptr %4, align 4 %38 = select i1 %36, ptr %37, ptr %4 %39 = load i32, ptr %16, align 4 %40 = zext i8 %35 to i32 %41 = select i1 %36, i32 %39, i32 %40 %42 = getelementptr inbounds i8, ptr %38, i32 %41 %43 = icmp eq ptr %34, %42 br i1 %43, label %85, label %44 44: ; preds = %20 %45 = add nuw nsw i32 %18, 1 %46 = load i8, ptr %7, align 1 %47 = icmp slt i8 %46, 0 %48 = load ptr, ptr %1, align 4 %49 = select i1 %47, ptr %48, ptr %1 %50 = getelementptr inbounds i8, ptr %49, i32 %45 %51 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %38, ptr %42, ptr noundef nonnull align 1 dereferenceable(1) %50) #14 %52 = load i8, ptr %15, align 1 %53 = icmp slt i8 %52, 0 %54 = load ptr, ptr %4, align 4 %55 = select i1 %53, ptr %54, ptr %4 %56 = load i32, ptr %16, align 4 %57 = zext i8 %52 to i32 %58 = select i1 %53, i32 %56, i32 %57 %59 = getelementptr inbounds i8, ptr %55, i32 %58 %60 = icmp eq ptr %51, %59 br i1 %60, label %61, label %85 61: ; preds = %44 %62 = add nsw i32 %18, -1 %63 = load i8, ptr %7, align 1 %64 = icmp slt i8 %63, 0 %65 = load ptr, ptr %1, align 4 %66 = select i1 %64, ptr %65, ptr %1 %67 = getelementptr inbounds i8, ptr %66, i32 %62 %68 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %55, ptr %51, ptr noundef nonnull align 1 dereferenceable(1) %67) #14 %69 = load i8, ptr %15, align 1 %70 = icmp slt i8 %69, 0 %71 = load ptr, ptr %4, align 4 %72 = select i1 %70, ptr %71, ptr %4 %73 = load i32, ptr %16, align 4 %74 = zext i8 %69 to i32 %75 = select i1 %70, i32 %73, i32 %74 %76 = getelementptr inbounds i8, ptr %72, i32 %75 %77 = icmp eq ptr %68, %76 br i1 %77, label %78, label %85 78: ; preds = %61 %79 = load i8, ptr %7, align 1 %80 = icmp slt i8 %79, 0 %81 = load ptr, ptr %1, align 4 %82 = select i1 %80, ptr %81, ptr %1 %83 = getelementptr inbounds i8, ptr %82, i32 %18 %84 = load i8, ptr %83, align 1, !tbaa !3 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %84) #14 br label %88 85: ; preds = %20, %61, %44 %86 = add nsw i32 %18, -1 br label %17, !llvm.loop !6 87: ; preds = %17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, i8 0, i32 12, i1 false) br label %88 88: ; preds = %78, %87 %89 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #13 %90 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #13 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #15 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #14 ret ptr %0 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %0, ptr %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %0 to i32 %5 = ptrtoint ptr %1 to i32 %6 = load i8, ptr %2, align 1 %7 = sub i32 %5, %4 %8 = getelementptr i8, ptr %0, i32 %7 br label %9 9: ; preds = %15, %3 %10 = phi ptr [ %0, %3 ], [ %16, %15 ] %11 = icmp eq ptr %10, %1 br i1 %11, label %17, label %12 12: ; preds = %9 %13 = load i8, ptr %10, align 1, !tbaa !3 %14 = icmp eq i8 %13, %6 br i1 %14, label %17, label %15 15: ; preds = %12 %16 = getelementptr inbounds i8, ptr %10, i32 1 br label %9, !llvm.loop !8 17: ; preds = %12, %9 %18 = phi ptr [ %10, %12 ], [ %8, %9 ] ret ptr %18 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #13 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #13 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !9 store i8 %2, ptr %24, align 1, !tbaa !3 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #4 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #5 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #17 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !20 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #8 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #18 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !3 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !3 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #5 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #11 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { noreturn } attributes #18 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = !{!10, !12, !14, !16, !18} !10 = distinct !{!10, !11, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !11 = distinct !{!11, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !12 = distinct !{!12, !13, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !13 = distinct !{!13, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !14 = distinct !{!14, !15, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !15 = distinct !{!15, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !16 = distinct !{!16, !17, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !17 = distinct !{!17, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !18 = distinct !{!18, !19, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !19 = distinct !{!19, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !20 = !{!21, !21, i64 0} !21 = !{!"vtable pointer", !5, i64 0}
(module $code_117.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32 i32) (result i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "strlen" (func $strlen (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "memmove" (func $memmove (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 4)) (func $get_closest_vowel_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 5) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 8 global.set $__stack_pointer local.get 8 i32.const 20 i32.add global.get $__memory_base local.tee 2 i32.const 23 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 3 local.get 8 i32.const 8 i32.add local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 2 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s select i32.const 2 i32.sub local.set 4 block ;; label = @1 loop ;; label = @2 local.get 4 i32.const 0 i32.gt_s if ;; label = @3 block ;; label = @4 local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.tee 7 local.get 7 local.get 2 i32.load offset=4 local.get 5 local.get 6 select i32.add local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 i32.add call $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.tee 7 local.get 2 i32.load offset=4 local.get 5 local.get 6 select i32.add local.tee 5 i32.eq br_if 0 (;@4;) local.get 7 local.get 5 local.get 4 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select i32.add i32.const 1 i32.add call $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ local.tee 5 local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 6 i32.extend8_s i32.const 0 i32.lt_s local.tee 7 select local.tee 9 local.get 2 i32.load offset=4 local.get 6 local.get 7 select i32.add i32.ne br_if 0 (;@4;) local.get 9 local.get 5 local.get 4 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select i32.add i32.const 1 i32.sub call $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.get 2 i32.load offset=4 local.get 5 local.get 6 select i32.add i32.ne br_if 0 (;@4;) local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 i32.add i32.load8_s local.set 5 global.get $__stack_pointer i32.const 16 i32.sub local.tee 6 global.set $__stack_pointer block (result i32) ;; label = @5 local.get 3 i32.load offset=4 local.get 3 i32.load8_u offset=11 local.tee 1 local.get 1 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 i32.const 1 i32.add local.tee 1 i32.const 2147483632 i32.lt_u if ;; label = @6 local.get 1 i32.const 10 i32.le_u if ;; label = @7 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 1 i32.store8 offset=11 local.get 0 br 2 (;@5;) end local.get 1 i32.const 15 i32.or i32.const 1 i32.add local.tee 7 call $operator_new_unsigned_long_ local.set 9 local.get 0 local.get 1 i32.store offset=4 local.get 0 local.get 9 i32.store local.get 0 local.get 7 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 br 1 (;@5;) end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base i32.const 11 i32.add call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.tee 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 3 i32.load local.get 3 local.get 3 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add local.tee 0 local.get 5 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 6 i32.const 16 i32.add global.set $__stack_pointer br 3 (;@1;) end local.get 4 i32.const 1 i32.sub local.set 4 br 1 (;@2;) end end local.get 0 local.get 3 i64.load align=4 i64.store align=4 local.get 0 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 end local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 8 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 1) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ (type 3) (param i32 i32 i32) (result i32) local.get 2 i32.load8_u local.set 2 loop ;; label = @1 block ;; label = @2 local.get 0 local.get 1 i32.ne if (result i32) ;; label = @3 local.get 0 i32.load8_u local.get 2 i32.ne br_if 1 (;@2;) local.get 0 else local.get 1 end return end local.get 0 i32.const 1 i32.add local.set 0 br 0 (;@1;) end unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z17get_closest_vowelNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $get_closest_vowel_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "AEIOUaeiou\00basic_string\00"))
CPP/119
/* You are given a vector of two strings, both strings consist of open parentheses '(' or close parentheses ')' only. Your job is to check if it is possible to concatenate the two strings in some order, that the resulting string will be good. A string S is considered to be good if and only if all parentheses in S are balanced. For example: the string "(())()" is good, while the string "())" is not. Return "Yes" if there's a way to make a good string, and return "No" otherwise. Examples: match_parens({"()(", ")"}) == "Yes" match_parens({")", ")"}) == "No" */ #include<stdio.h> #include<vector> #include<string> using namespace std; string match_parens(vector<string> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> string match_parens(vector<string> lst){
string l1=lst[0]+lst[1]; int i,count=0; bool can=true; for (i=0;i<l1.length();i++) { if (l1[i]=='(') count+=1; if (l1[i]==')') count-=1; if (count<0) can=false; } if (count!=0) return "No"; if (can==true) return "Yes"; l1=lst[1]+lst[0]; can=true; for (i=0;i<l1.length();i++) { if (l1[i]=='(') count+=1; if (l1[i]==')') count-=1; if (count<0) can=false; } if (can==true) return "Yes"; return "No"; }
#undef NDEBUG #include<assert.h> int main(){ assert (match_parens({"()(", ")"}) == "Yes"); assert (match_parens({")", ")"}) == "No"); assert (match_parens({"(()(())", "())())"}) == "No"); assert (match_parens({")())", "(()()("}) == "Yes"); assert (match_parens({"(())))", "(()())(("}) == "Yes"); assert (match_parens({"()", "())"}) == "No"); assert (match_parens({"(()(", "()))()"}) == "Yes"); assert (match_parens({"((((", "((())"}) == "No"); assert (match_parens({")(()", "(()("}) == "No"); assert (match_parens({")(", ")("}) == "No"); assert (match_parens({"(", ")"}) == "Yes"); assert (match_parens({")", "("}) == "Yes" ); }
#undef NDEBUG #include<assert.h> int main(){ assert (match_parens({"()(", ")"}) == "Yes"); assert (match_parens({")", ")"}) == "No"); }
; ModuleID = 'c_code/code_118.cpp' source_filename = "c_code/code_118.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any @.str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize mustprogress optsize define void @_Z12match_parensNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #15 %5 = load ptr, ptr %1, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6) #16 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %8 = load i8, ptr %7, align 1 %9 = icmp slt i8 %8, 0 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 %11 = load i32, ptr %10, align 4 %12 = zext i8 %8 to i32 %13 = select i1 %9, i32 %11, i32 %12 %14 = load ptr, ptr %3, align 4 %15 = select i1 %9, ptr %14, ptr %3 br label %16 16: ; preds = %21, %2 %17 = phi i32 [ 0, %2 ], [ %32, %21 ] %18 = phi i32 [ 0, %2 ], [ %29, %21 ] %19 = phi i1 [ true, %2 ], [ %31, %21 ] %20 = icmp eq i32 %17, %13 br i1 %20, label %33, label %21 21: ; preds = %16 %22 = getelementptr inbounds i8, ptr %15, i32 %17 %23 = load i8, ptr %22, align 1, !tbaa !10 %24 = icmp eq i8 %23, 40 %25 = zext i1 %24 to i32 %26 = add nsw i32 %18, %25 %27 = icmp eq i8 %23, 41 %28 = sext i1 %27 to i32 %29 = add nsw i32 %26, %28 %30 = icmp sgt i32 %29, -1 %31 = select i1 %30, i1 %19, i1 false %32 = add nuw i32 %17, 1 br label %16, !llvm.loop !11 33: ; preds = %16 %34 = icmp ne i32 %18, 0 %35 = select i1 %34, i1 true, i1 %19 %36 = select i1 %34, ptr @.str, ptr @.str.1 br i1 %35, label %67, label %37 37: ; preds = %33 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #15 %38 = load ptr, ptr %1, align 4, !tbaa !3 %39 = getelementptr inbounds %"class.std::__2::basic_string", ptr %38, i32 1 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %38) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #17 %40 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #15 %41 = load i8, ptr %7, align 1 %42 = icmp slt i8 %41, 0 %43 = load i32, ptr %10, align 4 %44 = zext i8 %41 to i32 %45 = select i1 %42, i32 %43, i32 %44 %46 = load ptr, ptr %3, align 4 %47 = select i1 %42, ptr %46, ptr %3 br label %48 48: ; preds = %53, %37 %49 = phi i32 [ 0, %37 ], [ %64, %53 ] %50 = phi i32 [ 0, %37 ], [ %61, %53 ] %51 = phi i1 [ true, %37 ], [ %63, %53 ] %52 = icmp eq i32 %49, %45 br i1 %52, label %65, label %53 53: ; preds = %48 %54 = getelementptr inbounds i8, ptr %47, i32 %49 %55 = load i8, ptr %54, align 1, !tbaa !10 %56 = icmp eq i8 %55, 40 %57 = zext i1 %56 to i32 %58 = add nsw i32 %50, %57 %59 = icmp eq i8 %55, 41 %60 = sext i1 %59 to i32 %61 = add nsw i32 %58, %60 %62 = icmp sgt i32 %61, -1 %63 = select i1 %62, i1 %51, i1 false %64 = add nuw i32 %49, 1 br label %48, !llvm.loop !13 65: ; preds = %48 %66 = select i1 %51, ptr @.str.1, ptr @.str br label %67 67: ; preds = %33, %65 %68 = phi ptr [ %36, %33 ], [ %66, %65 ] %69 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %68) #16 %70 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #15 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #2 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %13 = load i8, ptr %12, align 1 %14 = icmp slt i8 %13, 0 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = zext i8 %13 to i32 %18 = select i1 %14, i32 %16, i32 %17 %19 = add i32 %18, %11 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #15 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #15 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %22 = load i8, ptr %21, align 1 %23 = icmp slt i8 %22, 0 %24 = load ptr, ptr %0, align 4 %25 = select i1 %23, ptr %24, ptr %0 %26 = load i8, ptr %5, align 1 %27 = icmp slt i8 %26, 0 %28 = load ptr, ptr %1, align 4 %29 = select i1 %27, ptr %28, ptr %1 %30 = icmp ult ptr %29, %25 %31 = getelementptr inbounds i8, ptr %25, i32 %11 %32 = icmp ule ptr %31, %29 %33 = or i1 %30, %32 call void @llvm.assume(i1 %33) call void @llvm.memmove.p0.p0.i32(ptr align 1 %25, ptr align 1 %29, i32 %11, i1 false), !noalias !14 %34 = load i8, ptr %12, align 1 %35 = icmp slt i8 %34, 0 %36 = load ptr, ptr %2, align 4 %37 = select i1 %35, ptr %36, ptr %2 %38 = icmp ult ptr %37, %31 %39 = getelementptr inbounds i8, ptr %31, i32 %18 %40 = icmp ule ptr %39, %37 %41 = or i1 %38, %40 call void @llvm.assume(i1 %41) call void @llvm.memmove.p0.p0.i32(ptr align 1 %31, ptr align 1 %37, i32 %18, i1 false), !noalias !25 store i8 0, ptr %39, align 1, !tbaa !10 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #17 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #16 ret ptr %0 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #4 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #2 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #19 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !10 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !10 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #5 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #18 unreachable } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #6 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #7 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #15 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #16 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #20 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #16 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !36 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #10 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #7 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #12 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef %7) #21 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !38 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !10 ret void } attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { nounwind } attributes #16 = { minsize optsize } attributes #17 = { minsize nounwind optsize } attributes #18 = { minsize noreturn optsize } attributes #19 = { builtin minsize optsize allocsize(0) } attributes #20 = { noreturn } attributes #21 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!6, !6, i64 0} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.mustprogress"} !13 = distinct !{!13, !12} !14 = !{!15, !17, !19, !21, !23} !15 = distinct !{!15, !16, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !16 = distinct !{!16, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !17 = distinct !{!17, !18, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !18 = distinct !{!18, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !19 = distinct !{!19, !20, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !20 = distinct !{!20, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !21 = distinct !{!21, !22, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !22 = distinct !{!22, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !23 = distinct !{!23, !24, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !25 = !{!26, !28, !30, !32, !34} !26 = distinct !{!26, !27, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !28 = distinct !{!28, !29, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !29 = distinct !{!29, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !30 = distinct !{!30, !31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !32 = distinct !{!32, !33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !34 = distinct !{!34, !35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !36 = !{!37, !37, i64 0} !37 = !{!"vtable pointer", !7, i64 0} !38 = !{i64 0, i64 4, !39, i64 4, i64 4, !40, i64 8, i64 4, !40, i64 11, i64 4, !40, i64 0, i64 11, !10, i64 11, i64 0, !10, i64 11, i64 1, !10, i64 11, i64 1, !10, i64 0, i64 12, !10} !39 = !{!5, !5, i64 0} !40 = !{!41, !41, i64 0} !41 = !{!"long", !6, i64 0}
(module $code_118.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32 i32) (result i32))) (type (;4;) (func (param i32))) (type (;5;) (func)) (type (;6;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 1))) (import "env" "memmove" (func $memmove (type 3))) (import "env" "strlen" (func $strlen (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $match_parens_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_ (type 6) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i32.const 20 i32.add local.tee 4 local.get 1 i32.load local.tee 3 local.get 3 i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 0 local.set 3 local.get 2 i32.load offset=24 local.get 2 i32.load8_u offset=31 local.tee 5 local.get 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.set 6 local.get 2 i32.load offset=20 local.get 4 local.get 5 select local.set 7 i32.const 0 local.set 4 i32.const 1 local.set 5 loop ;; label = @1 local.get 3 local.get 6 i32.ne if ;; label = @2 local.get 5 local.get 4 local.get 3 local.get 7 i32.add i32.load8_u local.tee 8 i32.const 40 i32.eq i32.add local.get 8 i32.const 41 i32.eq i32.sub local.tee 4 i32.const 0 i32.ge_s i32.and local.set 5 local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@1;) end end global.get $__memory_base local.set 6 i32.const 0 local.set 3 local.get 0 local.get 4 i32.const 0 i32.ne local.get 5 i32.or i32.const 1 i32.and if (result i32) ;; label = @1 local.get 6 i32.const 4 i32.add local.get 6 local.get 4 select else local.get 2 i32.const 8 i32.add local.tee 0 local.get 1 i32.load local.tee 1 i32.const 12 i32.add local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.get 2 i32.const 20 i32.add local.tee 1 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @2 local.get 1 i32.load call $operator_delete_void*_ end local.get 1 local.get 0 i64.load align=4 i64.store align=4 local.get 1 local.get 0 i32.load offset=8 i32.store offset=8 local.get 0 i32.const 0 i32.store8 offset=11 local.get 0 i32.const 0 i32.store8 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 2 i32.load offset=24 local.get 2 i32.load8_s offset=31 local.tee 0 i32.const 255 i32.and local.get 0 i32.const 0 i32.lt_s local.tee 0 select local.set 6 local.get 2 i32.load offset=20 local.get 1 local.get 0 select local.set 0 i32.const 0 local.set 5 i32.const 1 local.set 4 loop ;; label = @2 local.get 3 local.get 6 i32.ne if ;; label = @3 local.get 4 local.get 5 local.get 0 local.get 3 i32.add i32.load8_u local.tee 1 i32.const 40 i32.eq i32.add local.get 1 i32.const 41 i32.eq i32.sub local.tee 5 i32.const 0 i32.ge_s i32.and local.set 4 local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@2;) end end global.get $__memory_base i32.const 0 i32.const 4 local.get 4 i32.const 1 i32.and select i32.add end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 2 i32.const 20 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 6 global.set $__stack_pointer block (result i32) ;; label = @1 local.get 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 5 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 3 i32.store8 offset=11 local.get 0 br 2 (;@1;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 7 call $operator_new_unsigned_long_ local.set 8 local.get 0 local.get 3 i32.store offset=4 local.get 0 local.get 8 i32.store local.get 0 local.get 7 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 br 1 (;@1;) end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base i32.const 7 i32.add call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.tee 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 5 call $memmove local.get 5 i32.add local.get 2 i32.load local.get 2 local.get 2 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add i32.const 0 i32.store8 local.get 6 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 1) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z12match_parensNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE" (func $match_parens_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "Yes\00No\00basic_string\00"))
CPP/120
/* Given a vector arr of integers and a positive integer k, return a sorted vector of length k with the maximum k numbers in arr. Example 1: Input: arr = {-3, -4, 5}, k = 3 Output: {-4, -3, 5} Example 2: Input: arr = {4, -4, 4}, k = 2 Output: {4, 4} Example 3: Input: arr = {-3, 2, 1, 2, -1, -2, 1}, k = 1 Output: {2} Note: 1. The length of the vector will be in the range of {1, 1000}. 2. The elements in the vector will be in the range of {-1000, 1000}. 3. 0 <= k <= len(arr) */ #include<stdio.h> #include<vector> #include<algorithm> using namespace std; vector<int> maximum(vector<int> arr,int k){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> maximum(vector<int> arr,int k){
sort(arr.begin(),arr.end()); vector<int> out(arr.end()-k,arr.end()); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(maximum({-3, -4, 5}, 3) , {-4, -3, 5})); assert (issame(maximum({4, -4, 4}, 2) , {4, 4})); assert (issame(maximum({-3, 2, 1, 2, -1, -2, 1}, 1) , {2})); assert (issame(maximum({123, -123, 20, 0 , 1, 2, -3}, 3) , {2, 20, 123})); assert (issame(maximum({-123, 20, 0 , 1, 2, -3}, 4) , {0, 1, 2, 20})); assert (issame(maximum({5, 15, 0, 3, -13, -8, 0}, 7) , {-13, -8, 0, 0, 3, 5, 15})); assert (issame(maximum({-1, 0, 2, 5, 3, -10}, 2) , {3, 5})); assert (issame(maximum({1, 0, 5, -7}, 1) , {5})); assert (issame(maximum({4, -4}, 2) , {-4, 4})); assert (issame(maximum({-10, 10}, 2) , {-10, 10})); assert (issame(maximum({1, 2, 3, -23, 243, -400, 0}, 0) , {})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(maximum({-3, -4, 5}, 3) , {-4, -3, 5})); assert (issame(maximum({4, -4, 4}, 2) , {4, 4})); assert (issame(maximum({-3, 2, 1, 2, -1, -2, 1}, 1) , {2})); }
; ModuleID = 'c_code/code_119.cpp' source_filename = "c_code/code_119.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__less" = type { i8 } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2INS_11__wrap_iterIPiEELi0EEET_S8_ = comdat any $_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endINS_11__wrap_iterIPiEELi0EEEvT_S8_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z7maximumNSt3__26vectorIiNS_9allocatorIiEEEEi(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 { %4 = load ptr, ptr %1, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 tail call void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %4, ptr %6) #9 %7 = load ptr, ptr %5, align 4, !tbaa !10 %8 = sub nsw i32 0, %2 %9 = getelementptr inbounds i32, ptr %7, i32 %8 %10 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2INS_11__wrap_iterIPiEELi0EEET_S8_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %9, ptr %7) #9 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2INS_11__wrap_iterIPiEELi0EEET_S8_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr %1, ptr %2) unnamed_addr #0 comdat { %4 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !10 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %6, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10 store ptr %0, ptr %4, align 4, !tbaa.struct !12, !alias.scope !14 %7 = icmp eq ptr %2, %1 br i1 %7, label %13, label %8 8: ; preds = %3 %9 = ptrtoint ptr %1 to i32 %10 = ptrtoint ptr %2 to i32 %11 = sub i32 %10, %9 %12 = ashr exact i32 %11, 2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #9 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endINS_11__wrap_iterIPiEELi0EEEvT_S8_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr %2, i32 noundef %12) #9 br label %13 13: ; preds = %8, %3 %14 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %4, i32 0, i32 1 store i8 1, ptr %14, align 4, !tbaa !17 %15 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %4) #11 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %0, ptr %1) local_unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__less", align 1 call void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #9 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #12 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #9, !noalias !21 store ptr %7, ptr %0, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !13 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endINS_11__wrap_iterIPiEELi0EEEvT_S8_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 br label %7 7: ; preds = %11, %4 %8 = phi ptr [ %6, %4 ], [ %14, %11 ] %9 = phi ptr [ %1, %4 ], [ %13, %11 ] %10 = icmp eq ptr %9, %2 br i1 %10, label %15, label %11 11: ; preds = %7 %12 = load i32, ptr %9, align 4, !tbaa !24 store i32 %12, ptr %8, align 4, !tbaa !24 %13 = getelementptr inbounds i32, ptr %9, i32 1 %14 = getelementptr inbounds i32, ptr %8, i32 1 br label %7, !llvm.loop !26 15: ; preds = %7 store ptr %8, ptr %5, align 4, !tbaa !10 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #4 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !17, !range !28, !noundef !29 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #11 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #5 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #12 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #6 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #10 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #9 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #13 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #9 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !30 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #4 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #12 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #14 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #6 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #10 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #11 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #13 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #3 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !32 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef nonnull %3) #15 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #8 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize optsize } attributes #10 = { nounwind } attributes #11 = { minsize nounwind optsize } attributes #12 = { minsize noreturn optsize } attributes #13 = { noreturn } attributes #14 = { builtin minsize optsize allocsize(0) } attributes #15 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{i64 0, i64 4, !13} !13 = !{!5, !5, i64 0} !14 = !{!15} !15 = distinct !{!15, !16, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !16 = distinct !{!16, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !17 = !{!18, !20, i64 4} !18 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !19, i64 0, !20, i64 4} !19 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !20 = !{!"bool", !6, i64 0} !21 = !{!22} !22 = distinct !{!22, !23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !23 = distinct !{!23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !24 = !{!25, !25, i64 0} !25 = !{!"int", !6, i64 0} !26 = distinct !{!26, !27} !27 = !{!"llvm.loop.mustprogress"} !28 = !{i8 0, i8 2} !29 = !{} !30 = !{!31, !31, i64 0} !31 = !{!"vtable pointer", !7, i64 0} !32 = !{!19, !5, i64 0}
(module $code_119.wasm (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEEC2INS_11__wrap_iterIPiEELi0EEET_S8_" (func $std::__2::vector<int__std::__2::allocator<int>>::vector<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>_ (type 2))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endINS_11__wrap_iterIPiEELi0EEEvT_S8_m" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>__unsigned_long_ (type 3))) (import "env" "_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_" (func $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ (type 0))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 0))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $maximum_std::__2::vector<int__std::__2::allocator<int>>__int_ (type 0) (param i32 i32 i32) (local i32 i32 i32) local.get 1 i32.load local.get 1 i32.load offset=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 15 i32.add call $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 0 local.get 1 i32.load offset=4 local.tee 0 local.get 2 i32.const 2 i32.shl i32.sub local.get 0 call $std::__2::vector<int__std::__2::allocator<int>>::vector<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>_ drop) (func $std::__2::vector<int__std::__2::allocator<int>>::vector<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>_.1 (type 2) (param i32 i32 i32) (result i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 3 local.get 0 i32.store offset=8 local.get 1 local.get 2 i32.ne if ;; label = @1 local.get 2 local.get 1 i32.sub i32.const 2 i32.shr_s local.tee 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl local.tee 6 call $operator_new_unsigned_long_ local.tee 5 i32.store offset=4 local.get 0 local.get 5 i32.store local.get 0 local.get 5 local.get 6 i32.add i32.store offset=8 local.get 0 local.get 1 local.get 2 local.get 4 call $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>__unsigned_long_ end local.get 3 i32.const 1 i32.store8 offset=12 local.get 3 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 local.tee 2 i32.load local.tee 1 if ;; label = @2 local.get 2 local.get 1 i32.store offset=4 local.get 1 call $operator_delete_void*_ end end local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>__unsigned_long_.1 (type 3) (param i32 i32 i32 i32) local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 1 local.get 2 i32.eq i32.eqz if ;; label = @2 local.get 3 local.get 1 i32.load i32.store local.get 3 i32.const 4 i32.add local.set 3 local.get 1 i32.const 4 i32.add local.set 1 br 1 (;@1;) end end local.get 0 local.get 3 i32.store offset=4) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z7maximumNSt3__26vectorIiNS_9allocatorIiEEEEi" (func $maximum_std::__2::vector<int__std::__2::allocator<int>>__int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEEC2INS_11__wrap_iterIPiEELi0EEET_S8_" (func $std::__2::vector<int__std::__2::allocator<int>>::vector<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>_.1)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endINS_11__wrap_iterIPiEELi0EEEvT_S8_m" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<std::__2::__wrap_iter<int*>__0>_std::__2::__wrap_iter<int*>__std::__2::__wrap_iter<int*>__unsigned_long_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/121
/* Given a non-empty vector of integers, return the sum of all of the odd elements that are in even positions. Examples solution({5, 8, 7, 1}) ==> 12 solution({3, 3, 3, 3, 3}) ==> 9 solution({30, 13, 24, 321}) ==>0 */ #include<stdio.h> #include<vector> using namespace std; int solutions(vector<int> lst){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> int solutions(vector<int> lst){
int sum=0; for (int i=0;i*2<lst.size();i++) if (lst[i*2]%2==1) sum+=lst[i*2]; return sum; }
#undef NDEBUG #include<assert.h> int main(){ assert (solutions({5, 8, 7, 1}) == 12); assert (solutions({3, 3, 3, 3, 3}) == 9); assert (solutions({30, 13, 24, 321}) == 0); assert (solutions({5, 9}) == 5); assert (solutions({2, 4, 8}) == 0); assert (solutions({30, 13, 23, 32}) == 23); assert (solutions({3, 13, 2, 9}) == 3); }
#undef NDEBUG #include<assert.h> int main(){ assert (solutions({5, 8, 7, 1}) == 12); assert (solutions({3, 3, 3, 3, 3}) == 9); assert (solutions({30, 13, 24, 321}) == 0); }
; ModuleID = 'c_code/code_120.cpp' source_filename = "c_code/code_120.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z9solutionsNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 %9 = add nsw i32 %8, 1 %10 = lshr i32 %9, 1 br label %11 11: ; preds = %16, %1 %12 = phi i32 [ 0, %1 ], [ %23, %16 ] %13 = phi i32 [ 0, %1 ], [ %24, %16 ] %14 = icmp eq i32 %13, %10 br i1 %14, label %15, label %16 15: ; preds = %11 ret i32 %12 16: ; preds = %11 %17 = shl nuw nsw i32 %13, 1 %18 = getelementptr inbounds i32, ptr %4, i32 %17 %19 = load i32, ptr %18, align 4, !tbaa !11 %20 = and i32 %19, -2147483647 %21 = icmp eq i32 %20, 1 %22 = select i1 %21, i32 %19, i32 0 %23 = add nsw i32 %22, %12 %24 = add nuw i32 %13, 1 br label %11, !llvm.loop !13 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_120.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $solutions_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 2 i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add i32.const 1 i32.shr_u local.set 3 i32.const 0 local.set 0 loop (result i32) ;; label = @1 local.get 0 local.get 3 i32.eq if (result i32) ;; label = @2 local.get 1 else local.get 1 local.get 2 local.get 0 i32.const 3 i32.shl i32.add i32.load local.tee 1 i32.const 0 local.get 1 i32.const -2147483647 i32.and i32.const 1 i32.eq select i32.add local.set 1 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9solutionsNSt3__26vectorIiNS_9allocatorIiEEEE" (func $solutions_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/122
/* Given a non-empty vector of integers arr and an integer k, return the sum of the elements with at most two digits from the first k elements of arr. Example: Input: arr = {111,21,3,4000,5,6,7,8,9}, k = 4 Output: 24 # sum of 21 + 3 Constraints: 1. 1 <= len(arr) <= 100 2. 1 <= k <= len(arr) */ #include<stdio.h> #include<vector> using namespace std; int add_elements(vector<int> arr,int k){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> int add_elements(vector<int> arr,int k){
int sum=0; for (int i=0;i<k;i++) if( arr[i]>=-99 and arr[i]<=99) sum+=arr[i]; return sum; }
#undef NDEBUG #include<assert.h> int main(){ assert (add_elements({1,-2,-3,41,57,76,87,88,99}, 3) == -4); assert (add_elements({111,121,3,4000,5,6}, 2) == 0); assert (add_elements({11,21,3,90,5,6,7,8,9}, 4) == 125); assert (add_elements({111,21,3,4000,5,6,7,8,9}, 4) == 24); assert (add_elements({1}, 1) == 1); }
#undef NDEBUG #include<assert.h> int main(){ assert (add_elements({111,21,3,4000,5,6,7,8,9}, 4) == 24); }
; ModuleID = 'c_code/code_121.cpp' source_filename = "c_code/code_121.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z12add_elementsNSt3__26vectorIiNS_9allocatorIiEEEEi(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 { %3 = tail call i32 @llvm.smax.i32(i32 %1, i32 0) br label %4 4: ; preds = %9, %2 %5 = phi i32 [ 0, %2 ], [ %16, %9 ] %6 = phi i32 [ 0, %2 ], [ %17, %9 ] %7 = icmp eq i32 %6, %3 br i1 %7, label %8, label %9 8: ; preds = %4 ret i32 %5 9: ; preds = %4 %10 = load ptr, ptr %0, align 4, !tbaa !3 %11 = getelementptr inbounds i32, ptr %10, i32 %6 %12 = load i32, ptr %11, align 4, !tbaa !10 %13 = add i32 %12, 99 %14 = icmp ult i32 %13, 199 %15 = select i1 %14, i32 %12, i32 0 %16 = add nsw i32 %15, %5 %17 = add nuw i32 %6, 1 br label %4, !llvm.loop !12 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!11, !11, i64 0} !11 = !{!"int", !6, i64 0} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"}
(module $code_121.wasm (type (;0;) (func)) (type (;1;) (func (param i32 i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $add_elements_std::__2::vector<int__std::__2::allocator<int>>__int_ (type 1) (param i32 i32) (result i32) (local i32 i32) local.get 1 i32.const 0 local.get 1 i32.const 0 i32.gt_s select local.set 3 i32.const 0 local.set 1 loop (result i32) ;; label = @1 local.get 1 local.get 3 i32.eq if (result i32) ;; label = @2 local.get 2 else local.get 2 local.get 0 i32.load local.get 1 i32.const 2 i32.shl i32.add i32.load local.tee 2 i32.const 0 local.get 2 i32.const 99 i32.add i32.const 199 i32.lt_u select i32.add local.set 2 local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z12add_elementsNSt3__26vectorIiNS_9allocatorIiEEEEi" (func $add_elements_std::__2::vector<int__std::__2::allocator<int>>__int_)))
CPP/123
/* Given a positive integer n, return a sorted vector that has the odd numbers in collatz sequence. The Collatz conjecture is a conjecture in mathematics that concerns a sequence defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half of the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that no matter what value of n, the sequence will always reach 1. Note: 1. Collatz(1) is {1}. 2. returned vector sorted in increasing order. For example: get_odd_collatz(5) returns {1, 5} // The collatz sequence for 5 is {5, 16, 8, 4, 2, 1}, so the odd numbers are only 1, and 5. */ #include<stdio.h> #include<vector> #include<algorithm> using namespace std; vector<int> get_odd_collatz(int n){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> get_odd_collatz(int n){
vector<int> out={1}; while (n!=1) { if (n%2==1) {out.push_back(n); n=n*3+1;} else n=n/2; } sort(out.begin(),out.end()); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(get_odd_collatz(14) , {1, 5, 7, 11, 13, 17})); assert (issame(get_odd_collatz(5) , {1, 5})); assert (issame(get_odd_collatz(12) , {1, 3, 5})); assert (issame(get_odd_collatz(1) , {1})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(get_odd_collatz(5) , {1, 5})); }
; ModuleID = 'c_code/code_122.cpp' source_filename = "c_code/code_122.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } %"struct.std::__2::__less.6" = type { i8 } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_ = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z15get_odd_collatzi(ptr noalias nonnull sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca i32, align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [1 x i32], align 4 store i32 %1, ptr %3, align 4, !tbaa !3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #14 store i32 1, ptr %5, align 4, !tbaa !3 store ptr %5, ptr %4, align 4, !tbaa !7 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 1, ptr %6, align 4, !tbaa !11 %7 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #14 br label %8 8: ; preds = %20, %2 %9 = phi i32 [ %21, %20 ], [ %1, %2 ] %10 = icmp eq i32 %9, 1 br i1 %10, label %22, label %11 11: ; preds = %8 %12 = and i32 %9, -2147483647 %13 = icmp eq i32 %12, 1 br i1 %13, label %14, label %18 14: ; preds = %11 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %3) #15 %15 = load i32, ptr %3, align 4, !tbaa !3 %16 = mul nsw i32 %15, 3 %17 = add nsw i32 %16, 1 br label %20 18: ; preds = %11 %19 = sdiv i32 %9, 2 br label %20 20: ; preds = %18, %14 %21 = phi i32 [ %19, %18 ], [ %17, %14 ] store i32 %21, ptr %3, align 4, !tbaa !3 br label %8, !llvm.loop !12 22: ; preds = %8 %23 = load ptr, ptr %0, align 4, !tbaa !14 %24 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %25 = load ptr, ptr %24, align 4, !tbaa !18 call void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %23, ptr %25) #15 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !14 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !19 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #14 store ptr %0, ptr %3, align 4, !tbaa.struct !20, !alias.scope !22 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !11 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #15 %10 = load ptr, ptr %1, align 4, !tbaa !7 %11 = load ptr, ptr %4, align 4, !tbaa !18 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !25 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !18 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !36 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #16 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #14 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !21 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !3 store i32 %9, ptr %4, align 4, !tbaa !3 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !18 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #15 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #15, !noalias !40 store ptr %7, ptr %0, align 4, !tbaa !14 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !18 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !21 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #4 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !36, !range !43, !noundef !44 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #16 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #5 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #17 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #6 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #14 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #15 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #15 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !45 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #4 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #17 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #6 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #14 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #16 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #8 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #3 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !47 %3 = load ptr, ptr %2, align 4, !tbaa !14 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !18 tail call void @_ZdlPv(ptr noundef nonnull %3) #20 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #9 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #10 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #14 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !18 %7 = load ptr, ptr %0, align 4, !tbaa !14 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #15 %14 = load ptr, ptr %5, align 4, !tbaa !18 %15 = load ptr, ptr %0, align 4, !tbaa !14 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !48 %23 = load i32, ptr %1, align 4, !tbaa !3 store i32 %23, ptr %22, align 4, !tbaa !3 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !48 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #15 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #16 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #14 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #10 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !21 %8 = load ptr, ptr %0, align 4, !tbaa !14 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !19 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !21 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #15, !noalias !52 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !55 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !48 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !56 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !21 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !18 %5 = load ptr, ptr %0, align 4, !tbaa !14 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !56 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !3, !noalias !57 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !3, !noalias !57 br label %8, !llvm.loop !62 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !56 %17 = load ptr, ptr %0, align 4, !tbaa !21 store ptr %10, ptr %0, align 4, !tbaa !21 store ptr %17, ptr %6, align 4, !tbaa !21 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !21 %20 = load ptr, ptr %18, align 4, !tbaa !21 store ptr %20, ptr %3, align 4, !tbaa !21 store ptr %19, ptr %18, align 4, !tbaa !21 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !21 %24 = load ptr, ptr %22, align 4, !tbaa !21 store ptr %24, ptr %21, align 4, !tbaa !21 store ptr %23, ptr %22, align 4, !tbaa !21 %25 = load ptr, ptr %6, align 4, !tbaa !56 store ptr %25, ptr %1, align 4, !tbaa !55 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #4 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #16 %2 = load ptr, ptr %0, align 4, !tbaa !55 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #20 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !56 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #16 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !48 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !48 br label %5, !llvm.loop !63 10: ; preds = %5 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPiEENS_6__lessIiiEEEEvT_S6_T0_(ptr %0, ptr %1) local_unnamed_addr #10 comdat { %3 = alloca %"struct.std::__2::__less.6", align 1 call void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #15 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #13 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #9 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #14 = { nounwind } attributes #15 = { minsize optsize } attributes #16 = { minsize nounwind optsize } attributes #17 = { minsize noreturn optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } attributes #20 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSSt16initializer_listIiE", !9, i64 0, !10, i64 4} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"long", !5, i64 0} !11 = !{!8, !10, i64 4} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"} !14 = !{!15, !9, i64 0} !15 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !16, i64 8} !16 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !17, i64 0} !17 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !18 = !{!15, !9, i64 4} !19 = !{!17, !9, i64 0} !20 = !{i64 0, i64 4, !21} !21 = !{!9, !9, i64 0} !22 = !{!23} !23 = distinct !{!23, !24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !25 = !{!26, !28, !30, !32, !34} !26 = distinct !{!26, !27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !28 = distinct !{!28, !29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !29 = distinct !{!29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !30 = distinct !{!30, !31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !32 = distinct !{!32, !33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !34 = distinct !{!34, !35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !36 = !{!37, !39, i64 4} !37 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !38, i64 0, !39, i64 4} !38 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !9, i64 0} !39 = !{!"bool", !5, i64 0} !40 = !{!41} !41 = distinct !{!41, !42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !42 = distinct !{!42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !43 = !{i8 0, i8 2} !44 = !{} !45 = !{!46, !46, i64 0} !46 = !{!"vtable pointer", !6, i64 0} !47 = !{!38, !9, i64 0} !48 = !{!49, !9, i64 8} !49 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !9, i64 8, !50, i64 12} !50 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !17, i64 0, !51, i64 4} !51 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !9, i64 0} !52 = !{!53} !53 = distinct !{!53, !54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !54 = distinct !{!54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !55 = !{!49, !9, i64 0} !56 = !{!49, !9, i64 4} !57 = !{!58, !60} !58 = distinct !{!58, !59, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !59 = distinct !{!59, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !60 = distinct !{!60, !61, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !61 = distinct !{!61, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !62 = distinct !{!62, !13} !63 = distinct !{!63, !13}
(module $code_122.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32 i32) (result i32))) (type (;6;) (func (param i32))) (import "env" "memmove" (func $memmove (type 4))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 1))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 5))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 6))) (import "env" "_ZNSt3__26__sortIRNS_6__lessIiiEEPiEEvT0_S5_T_" (func $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 3)) (func $get_odd_collatz_int_ (type 1) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 1 i32.store offset=28 local.get 3 i32.const 1 i32.store offset=24 local.get 3 i32.const 1 i32.store offset=16 local.get 3 local.get 3 i32.const 16 i32.add i32.store offset=20 local.get 3 local.get 3 i64.load offset=20 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 4 local.get 0 i32.store offset=8 local.get 3 i32.load offset=12 local.tee 2 if ;; label = @1 local.get 2 i32.const 1073741824 i32.ge_u if ;; label = @2 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end local.get 0 local.get 2 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.tee 5 i32.store offset=4 local.get 0 local.get 5 i32.store local.get 0 local.get 5 local.get 2 i32.const 2 i32.shl local.tee 2 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 3 i32.load offset=8 local.get 2 call $memmove local.get 2 i32.add i32.store offset=4 end local.get 4 i32.const 1 i32.store8 offset=12 local.get 4 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 4 i32.load offset=8 local.tee 5 i32.load local.tee 2 if ;; label = @2 local.get 5 local.get 2 i32.store offset=4 local.get 2 call $operator_delete_void*_ end end local.get 4 i32.const 16 i32.add global.set $__stack_pointer loop ;; label = @1 local.get 1 i32.const 1 i32.ne if ;; label = @2 local.get 3 block (result i32) ;; label = @3 local.get 1 i32.const -2147483647 i32.and i32.const 1 i32.eq if ;; label = @4 local.get 3 i32.const 28 i32.add local.set 1 block ;; label = @5 local.get 0 i32.load offset=4 local.tee 2 local.get 0 i32.load offset=8 i32.ne if ;; label = @6 local.get 2 local.get 1 i32.load i32.store local.get 0 local.get 2 i32.const 4 i32.add i32.store offset=4 br 1 (;@5;) end local.get 0 local.get 1 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end local.get 3 i32.load offset=28 i32.const 3 i32.mul i32.const 1 i32.add br 1 (;@3;) end local.get 1 i32.const 2 i32.div_s end local.tee 1 i32.store offset=28 br 1 (;@1;) end end local.get 0 i32.load local.get 0 i32.load offset=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 i32.const 15 i32.add call $void_std::__2::__sort<std::__2::__less<int__int>&__int*>_int*__int*__std::__2::__less<int__int>&_ local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.const 32 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 1) (param i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 6 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 2 i32.const 1073741824 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 3 i32.const 1 i32.shr_s local.tee 4 local.get 2 local.get 2 local.get 4 i32.lt_u select local.get 3 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 6 i32.const 12 i32.add local.tee 2 i32.const 0 i32.store offset=12 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=16 local.get 4 if ;; label = @1 local.get 4 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=8 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=12 local.get 2 local.get 5 i32.store offset=4 local.get 2 i32.load offset=8 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=8 local.get 2 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=4 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=4 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=8 i32.store offset=4 local.get 2 local.get 1 i32.store offset=8 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=12 i32.store offset=8 local.get 2 local.get 1 i32.store offset=12 local.get 2 local.get 2 i32.load offset=4 i32.store local.get 2 i32.load offset=4 local.set 1 local.get 2 i32.load offset=8 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=8 br 1 (;@1;) end end local.get 2 i32.load local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 6 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const (type 3) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 3 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ (type 0) (param i32) (result i32) (local i32) local.get 0 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 i32.const 2 i32.shl call $operator_new_unsigned_long_) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z15get_odd_collatzi" (func $get_odd_collatz_int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/124
/* You have to write a function which validates a given date string and returns true if the date is valid otherwise false. The date is valid if all of the following rules are satisfied: 1. The date string is not empty. 2. The number of days is not less than 1 or higher than 31 days for months 1,3,5,7,8,10,12. And the number of days is not less than 1 or higher than 30 days for months 4,6,9,11. And, the number of days is not less than 1 or higher than 29 for the month 2. 3. The months should not be less than 1 or higher than 12. 4. The date should be in the format: mm-dd-yyyy for example: valid_date("03-11-2000") => true valid_date("15-01-2012") => false valid_date("04-0-2040") => false valid_date("06-04-2020") => true valid_date("06/04/2020") => false */ #include<stdio.h> #include<string> using namespace std; bool valid_date(string date){
#include<stdio.h> #include<math.h> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> bool valid_date(string date){
int mm,dd,yy,i; if (date.length()!=10) return false; for (int i=0;i<10;i++) if (i==2 or i==5) { if (date[i]!='-') return false; } else if (date[i]<48 or date[i]>57) return false; mm=atoi(date.substr(0,2).c_str()); dd=atoi(date.substr(3,2).c_str()); yy=atoi(date.substr(6,4).c_str()); if (mm<1 or mm>12) return false; if (dd<1 or dd>31) return false; if (dd==31 and (mm==4 or mm==6 or mm==9 or mm==11 or mm==2)) return false; if (dd==30 and mm==2) return false; return true; }
#undef NDEBUG #include<assert.h> int main(){ assert (valid_date("03-11-2000") == true); assert (valid_date("15-01-2012") == false); assert (valid_date("04-0-2040") == false); assert (valid_date("06-04-2020") == true); assert (valid_date("01-01-2007") == true); assert (valid_date("03-32-2011") == false); assert (valid_date("") == false); assert (valid_date("04-31-3000") == false); assert (valid_date("06-06-2005") == true); assert (valid_date("21-31-2000") == false); assert (valid_date("04-12-2003") == true); assert (valid_date("04122003") == false); assert (valid_date("20030412") == false); assert (valid_date("2003-04") == false); assert (valid_date("2003-04-12") == false); assert (valid_date("04-2003") == false); }
#undef NDEBUG #include<assert.h> int main(){ assert (valid_date("03-11-2000") == true); assert (valid_date("15-01-2012") == false); assert (valid_date("04-0-2040") == false); assert (valid_date("06-04-2020") == true); assert (valid_date("06/04/2020") == false); }
; ModuleID = 'c_code/code_123.cpp' source_filename = "c_code/code_123.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm = comdat any ; Function Attrs: minsize mustprogress optsize define noundef zeroext i1 @_Z10valid_dateNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noundef %0) local_unnamed_addr #0 { %2 = alloca %"class.std::__2::basic_string", align 4 %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = icmp eq i32 %11, 10 br i1 %12, label %13, label %65 13: ; preds = %1, %28 %14 = phi i32 [ %29, %28 ], [ 0, %1 ] switch i32 %14, label %21 [ i32 10, label %30 i32 5, label %15 i32 2, label %15 ] 15: ; preds = %13, %13 %16 = load ptr, ptr %0, align 4 %17 = select i1 %7, ptr %16, ptr %0 %18 = getelementptr inbounds i8, ptr %17, i32 %14 %19 = load i8, ptr %18, align 1, !tbaa !3 %20 = icmp eq i8 %19, 45 br i1 %20, label %28, label %65 21: ; preds = %13 %22 = load ptr, ptr %0, align 4 %23 = select i1 %7, ptr %22, ptr %0 %24 = getelementptr inbounds i8, ptr %23, i32 %14 %25 = load i8, ptr %24, align 1, !tbaa !3 %26 = add i8 %25, -58 %27 = icmp ult i8 %26, -10 br i1 %27, label %65, label %28 28: ; preds = %21, %15 %29 = add nuw nsw i32 %14, 1 br label %13, !llvm.loop !6 30: ; preds = %13 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %2, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 0, i32 noundef 2) #6 %31 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %32 = load i8, ptr %31, align 1 %33 = icmp slt i8 %32, 0 %34 = load ptr, ptr %2, align 4 %35 = select i1 %33, ptr %34, ptr %2 %36 = call i32 @atoi(ptr nocapture noundef %35) #6 %37 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 3, i32 noundef 2) #6 %38 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %39 = load i8, ptr %38, align 1 %40 = icmp slt i8 %39, 0 %41 = load ptr, ptr %3, align 4 %42 = select i1 %40, ptr %41, ptr %3 %43 = call i32 @atoi(ptr nocapture noundef %42) #6 %44 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 6, i32 noundef 4) #6 %45 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5 %46 = add i32 %36, -13 %47 = icmp ult i32 %46, -12 %48 = add i32 %43, -32 %49 = icmp ult i32 %48, -31 %50 = select i1 %47, i1 true, i1 %49 br i1 %50, label %65, label %51 51: ; preds = %30 %52 = icmp eq i32 %43, 31 br i1 %52, label %53, label %56 53: ; preds = %51 %54 = add i32 %36, -2 %55 = icmp ult i32 %54, 10 br i1 %55, label %60, label %56 56: ; preds = %60, %53, %51 %57 = icmp ne i32 %43, 30 %58 = icmp ne i32 %36, 2 %59 = select i1 %57, i1 true, i1 %58 br label %65 60: ; preds = %53 %61 = trunc i32 %54 to i16 %62 = lshr i16 661, %61 %63 = and i16 %62, 1 %64 = icmp eq i16 %63, 0 br i1 %64, label %56, label %65 65: ; preds = %15, %21, %60, %56, %30, %1 %66 = phi i1 [ false, %1 ], [ false, %30 ], [ %59, %56 ], [ false, %60 ], [ false, %21 ], [ false, %15 ] ret i1 %66 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(read) declare i32 @atoi(ptr nocapture noundef) local_unnamed_addr #2 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 comdat { %5 = alloca %"class.std::__2::allocator", align 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5) #6 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize mustprogress nofree nounwind optsize willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { nounwind } attributes #6 = { minsize optsize } attributes #7 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
(module $code_123.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32 i32 i32))) (import "env" "atoi" (func $atoi (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 2)) (func $valid_date_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 0) (param i32) (result i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer block ;; label = @1 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s local.tee 4 i32.const 0 i32.lt_s select i32.const 10 i32.ne if ;; label = @2 i32.const 0 local.set 3 br 1 (;@1;) end loop ;; label = @2 block ;; label = @3 block ;; label = @4 block ;; label = @5 block ;; label = @6 block ;; label = @7 local.get 1 i32.const 2 i32.sub br_table 0 (;@7;) 2 (;@5;) 2 (;@5;) 0 (;@7;) 1 (;@6;) end i32.const 0 local.set 3 local.get 0 i32.load local.get 0 local.get 4 i32.const 0 i32.lt_s select local.get 1 i32.add i32.load8_u i32.const 45 i32.eq br_if 2 (;@4;) br 5 (;@1;) end local.get 1 i32.const 10 i32.eq br_if 2 (;@3;) end i32.const 0 local.set 3 local.get 0 i32.load local.get 0 local.get 4 i32.const 0 i32.lt_s select local.get 1 i32.add i32.load8_u i32.const 58 i32.sub i32.const 255 i32.and i32.const 246 i32.lt_u br_if 3 (;@1;) end local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@2;) end end i32.const 0 local.set 3 local.get 2 i32.const 4 i32.add local.tee 5 local.get 0 i32.const 0 i32.const 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 2 i32.load offset=4 local.get 5 local.get 2 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 1 local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 5 local.get 0 i32.const 3 i32.const 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 2 i32.load offset=4 local.get 2 i32.const 4 i32.add local.get 2 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 4 local.get 2 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 5 local.get 0 i32.const 6 i32.const 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 2 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 1 i32.const 13 i32.sub i32.const -12 i32.lt_u local.get 4 i32.const 32 i32.sub i32.const -31 i32.lt_u i32.or br_if 0 (;@1;) block ;; label = @2 local.get 4 i32.const 31 i32.ne br_if 0 (;@2;) local.get 1 i32.const 2 i32.sub local.tee 0 i32.const 10 i32.ge_u br_if 0 (;@2;) i32.const 661 local.get 0 i32.shr_u i32.const 1 i32.and br_if 1 (;@1;) end local.get 4 i32.const 30 i32.ne local.get 1 i32.const 2 i32.ne i32.or local.set 3 end local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 3) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const (type 3) (param i32 i32 i32 i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 local.get 3 local.get 4 i32.const 15 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ drop local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10valid_dateNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $valid_date_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)))
CPP/125
/* Given a string of words, return a vector of words split on whitespace, if no whitespaces exists in the text you should split on commas ',' if no commas exists you should return a vector with one element, the number of lower-case letters with odd order in the alphabet, ord("a") = 0, ord("b") = 1, ... ord("z") = 25 Examples split_words("Hello world!") ➞ {"Hello", "world!"} split_words("Hello,world!") ➞ {"Hello", "world!"} split_words("abcdef") == {"3"} */ #include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; vector<string> split_words(string txt){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> vector<string> split_words(string txt){
int i; string current=""; vector<string> out={}; if (find(txt.begin(),txt.end(),' ')!=txt.end()) { txt=txt+' '; for (i=0;i<txt.length();i++) if (txt[i]==' ') { if (current.length()>0)out.push_back(current); current=""; } else current=current+txt[i]; return out; } if (find(txt.begin(),txt.end(),',')!=txt.end()) { txt=txt+','; for (i=0;i<txt.length();i++) if (txt[i]==',') { if (current.length()>0)out.push_back(current); current=""; } else current=current+txt[i]; return out; } int num=0; for (i=0;i<txt.length();i++) if (txt[i]>=97 and txt[i]<=122 and txt[i]%2==0) num+=1; return {to_string(num)}; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(split_words("Hello world!") , {"Hello","world!"})); assert (issame(split_words("Hello,world!") , {"Hello","world!"})); assert (issame(split_words("Hello world,!") , {"Hello","world,!"})); assert (issame(split_words("Hello,Hello,world !") , {"Hello,Hello,world","!"})); assert (issame(split_words("abcdef") , {"3"})); assert (issame(split_words("aaabb") , {"2"})); assert (issame(split_words("aaaBb") , {"1"})); assert (issame(split_words("") ,{"0"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(split_words("Hello world!") , {"Hello","world!"})); assert (issame(split_words("Hello,world!") , {"Hello","world!"})); assert (issame(split_words("abcdef") , {"3"})); }
; ModuleID = 'c_code/code_124.cpp' source_filename = "c_code/code_124.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator.4" = type { i8 } %"struct.std::__2::__exception_guard_exceptions.13" = type <{ %"class.std::__2::vector<std::__2::string>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<std::__2::string>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } %"struct.std::__2::__exception_guard_exceptions.15" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse.16", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse.16" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_ = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.2 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z11split_wordsNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::vector", align 4 %5 = alloca i8, align 1 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = alloca %"class.std::__2::basic_string", align 4 %8 = alloca i8, align 1 %9 = alloca %"class.std::__2::basic_string", align 4 %10 = alloca %"class.std::__2::basic_string", align 4 %11 = alloca %"class.std::initializer_list", align 4 %12 = alloca [1 x %"class.std::__2::basic_string"], align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #18 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #18 store ptr null, ptr %4, align 4, !tbaa !3 %14 = getelementptr inbounds %"class.std::__2::vector", ptr %4, i32 0, i32 1 store ptr null, ptr %14, align 4, !tbaa !10 %15 = getelementptr inbounds %"class.std::__2::vector", ptr %4, i32 0, i32 2 store ptr null, ptr %15, align 4, !tbaa !11 %16 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %17 = load i8, ptr %16, align 1 %18 = icmp slt i8 %17, 0 %19 = load ptr, ptr %1, align 4 %20 = select i1 %18, ptr %19, ptr %1 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %22 = load i32, ptr %21, align 4 %23 = zext i8 %17 to i32 %24 = select i1 %18, i32 %22, i32 %23 %25 = getelementptr inbounds i8, ptr %20, i32 %24 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #18 store i8 32, ptr %5, align 1, !tbaa !12 %26 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %20, ptr %25, ptr noundef nonnull align 1 dereferenceable(1) %5) #19 %27 = load i8, ptr %16, align 1 %28 = icmp slt i8 %27, 0 %29 = load ptr, ptr %1, align 4 %30 = select i1 %28, ptr %29, ptr %1 %31 = load i32, ptr %21, align 4 %32 = zext i8 %27 to i32 %33 = select i1 %28, i32 %31, i32 %32 %34 = getelementptr inbounds i8, ptr %30, i32 %33 %35 = icmp eq ptr %26, %34 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #18 br i1 %35, label %74, label %36 36: ; preds = %2 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 32) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %6) #20 %37 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #18 %38 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %39 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %40 40: ; preds = %66, %36 %41 = phi i32 [ 0, %36 ], [ %67, %66 ] %42 = load i8, ptr %16, align 1 %43 = icmp slt i8 %42, 0 %44 = load i32, ptr %21, align 4 %45 = zext i8 %42 to i32 %46 = select i1 %43, i32 %44, i32 %45 %47 = icmp ult i32 %41, %46 br i1 %47, label %48, label %68 48: ; preds = %40 %49 = load ptr, ptr %1, align 4 %50 = select i1 %43, ptr %49, ptr %1 %51 = getelementptr inbounds i8, ptr %50, i32 %41 %52 = load i8, ptr %51, align 1, !tbaa !12 %53 = icmp eq i8 %52, 32 br i1 %53, label %54, label %64 54: ; preds = %48 %55 = load i8, ptr %38, align 1 %56 = icmp slt i8 %55, 0 %57 = load i32, ptr %39, align 4 %58 = zext i8 %55 to i32 %59 = select i1 %56, i32 %57, i32 %58 %60 = icmp eq i32 %59, 0 br i1 %60, label %62, label %61 61: ; preds = %54 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3) #19 br label %62 62: ; preds = %61, %54 %63 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 br label %66 64: ; preds = %48 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %52) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %7) #20 %65 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #18 br label %66 66: ; preds = %62, %64 %67 = add nuw nsw i32 %41, 1 br label %40, !llvm.loop !13 68: ; preds = %40 %69 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %70 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %71 = load ptr, ptr %4, align 4, !tbaa !3 store ptr %71, ptr %0, align 4, !tbaa !3 %72 = load ptr, ptr %14, align 4, !tbaa !10 store ptr %72, ptr %69, align 4, !tbaa !10 %73 = load ptr, ptr %15, align 4, !tbaa !15 store ptr %73, ptr %70, align 4, !tbaa !15 store ptr null, ptr %15, align 4, !tbaa !15 store ptr null, ptr %14, align 4, !tbaa !10 store ptr null, ptr %4, align 4, !tbaa !3 br label %142 74: ; preds = %2 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #18 store i8 44, ptr %8, align 1, !tbaa !12 %75 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %30, ptr %26, ptr noundef nonnull align 1 dereferenceable(1) %8) #19 %76 = load i8, ptr %16, align 1 %77 = icmp slt i8 %76, 0 %78 = load ptr, ptr %1, align 4 %79 = select i1 %77, ptr %78, ptr %1 %80 = load i32, ptr %21, align 4 %81 = zext i8 %76 to i32 %82 = select i1 %77, i32 %80, i32 %81 %83 = getelementptr inbounds i8, ptr %79, i32 %82 %84 = icmp eq ptr %75, %83 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #18 br i1 %84, label %123, label %85 85: ; preds = %74 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 44) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %9) #20 %86 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #18 %87 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %88 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %89 89: ; preds = %115, %85 %90 = phi i32 [ 0, %85 ], [ %116, %115 ] %91 = load i8, ptr %16, align 1 %92 = icmp slt i8 %91, 0 %93 = load i32, ptr %21, align 4 %94 = zext i8 %91 to i32 %95 = select i1 %92, i32 %93, i32 %94 %96 = icmp ult i32 %90, %95 br i1 %96, label %97, label %117 97: ; preds = %89 %98 = load ptr, ptr %1, align 4 %99 = select i1 %92, ptr %98, ptr %1 %100 = getelementptr inbounds i8, ptr %99, i32 %90 %101 = load i8, ptr %100, align 1, !tbaa !12 %102 = icmp eq i8 %101, 44 br i1 %102, label %103, label %113 103: ; preds = %97 %104 = load i8, ptr %87, align 1 %105 = icmp slt i8 %104, 0 %106 = load i32, ptr %88, align 4 %107 = zext i8 %104 to i32 %108 = select i1 %105, i32 %106, i32 %107 %109 = icmp eq i32 %108, 0 br i1 %109, label %111, label %110 110: ; preds = %103 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3) #19 br label %111 111: ; preds = %110, %103 %112 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #19 br label %115 113: ; preds = %97 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #18 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %101) #19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %10) #20 %114 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #18 br label %115 115: ; preds = %111, %113 %116 = add nuw nsw i32 %90, 1 br label %89, !llvm.loop !16 117: ; preds = %89 %118 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %119 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %120 = load ptr, ptr %4, align 4, !tbaa !3 store ptr %120, ptr %0, align 4, !tbaa !3 %121 = load ptr, ptr %14, align 4, !tbaa !10 store ptr %121, ptr %118, align 4, !tbaa !10 %122 = load ptr, ptr %15, align 4, !tbaa !15 store ptr %122, ptr %119, align 4, !tbaa !15 store ptr null, ptr %15, align 4, !tbaa !15 store ptr null, ptr %14, align 4, !tbaa !10 store ptr null, ptr %4, align 4, !tbaa !3 br label %142 123: ; preds = %74, %127 %124 = phi i32 [ %136, %127 ], [ 0, %74 ] %125 = phi i32 [ %137, %127 ], [ 0, %74 ] %126 = icmp eq i32 %125, %82 br i1 %126, label %138, label %127 127: ; preds = %123 %128 = getelementptr inbounds i8, ptr %79, i32 %125 %129 = load i8, ptr %128, align 1, !tbaa !12 %130 = add i8 %129, -97 %131 = icmp ult i8 %130, 26 %132 = and i8 %129, 1 %133 = xor i8 %132, 1 %134 = select i1 %131, i8 %133, i8 0 %135 = zext i8 %134 to i32 %136 = add i32 %124, %135 %137 = add nuw i32 %125, 1 br label %123, !llvm.loop !17 138: ; preds = %123 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #18 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %12, i32 noundef %124) #19 store ptr %12, ptr %11, align 4, !tbaa !18 %139 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1 store i32 1, ptr %139, align 4, !tbaa !21 %140 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %11) #19 %141 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #18 br label %142 142: ; preds = %138, %117, %68 %143 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #18 %144 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #18 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #19 ret ptr %0 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %0, ptr %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %0 to i32 %5 = ptrtoint ptr %1 to i32 %6 = load i8, ptr %2, align 1 %7 = sub i32 %5, %4 %8 = getelementptr i8, ptr %0, i32 %7 br label %9 9: ; preds = %15, %3 %10 = phi ptr [ %0, %3 ], [ %16, %15 ] %11 = icmp eq ptr %10, %1 br i1 %11, label %17, label %12 12: ; preds = %9 %13 = load i8, ptr %10, align 1, !tbaa !12 %14 = icmp eq i8 %13, %6 br i1 %14, label %17, label %15 15: ; preds = %12 %16 = getelementptr inbounds i8, ptr %10, i32 1 br label %9, !llvm.loop !22 17: ; preds = %12, %9 %18 = phi ptr [ %10, %12 ], [ %8, %9 ] ret ptr %18 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator.4", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #18 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #18 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !23 store i8 %2, ptr %24, align 1, !tbaa !12 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !12 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !15 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #5 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions.13", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #18 store ptr %0, ptr %3, align 4, !tbaa.struct !34, !alias.scope !35 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !21 %8 = icmp eq i32 %7, 0 br i1 %8, label %12, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #19 %10 = load ptr, ptr %1, align 4, !tbaa !18 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 %7 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %10, ptr noundef nonnull %11, i32 noundef %7) #19 br label %12 12: ; preds = %9, %2 %13 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %3, i32 0, i32 1 store i8 1, ptr %13, align 4, !tbaa !38 %14 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #20 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #18 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { %2 = alloca %"class.std::__2::vector<std::__2::string>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #18 store ptr %0, ptr %2, align 4, !tbaa !15 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #20 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #18 ret ptr %0 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #8 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #5 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #9 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #21 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #10 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #18 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #19 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #19 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !42 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #6 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #10 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #18 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #20 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #22 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #14 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !44 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %8, label %5 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #20 %6 = load ptr, ptr %0, align 4, !tbaa !44 %7 = load ptr, ptr %6, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef %7) #23 br label %8 8: ; preds = %5, %1 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #15 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !3 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %2) #20 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %4, %2 ], [ %9, %8 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %11, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 -1 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #20 br label %5, !llvm.loop !45 11: ; preds = %5 store ptr %1, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #24 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !12 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !12 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #16 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !12 tail call void @_ZdlPv(ptr noundef %7) #23 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !46 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !12 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #19 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !48 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %24 = load ptr, ptr %21, align 4, !tbaa !48 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !48 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #19 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #20 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #18 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !46 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !12 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !12 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #19 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !15 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !15 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #19, !noalias !52 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !55 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !48 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !56 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !15 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !56 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #19 store ptr %9, ptr %7, align 4, !tbaa !56 %10 = load ptr, ptr %0, align 4, !tbaa !15 store ptr %9, ptr %0, align 4, !tbaa !15 store ptr %10, ptr %7, align 4, !tbaa !15 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !15 %13 = load ptr, ptr %11, align 4, !tbaa !15 store ptr %13, ptr %4, align 4, !tbaa !15 store ptr %12, ptr %11, align 4, !tbaa !15 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !15 %16 = load ptr, ptr %14, align 4, !tbaa !15 store ptr %16, ptr %3, align 4, !tbaa !15 store ptr %15, ptr %14, align 4, !tbaa !15 %17 = load ptr, ptr %7, align 4, !tbaa !56 store ptr %17, ptr %1, align 4, !tbaa !55 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #6 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #20 %2 = load ptr, ptr %0, align 4, !tbaa !55 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #23 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #9 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #21 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #14 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #21 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #24 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !15 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !57 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !58 store i8 1, ptr %19, align 4, !tbaa !60 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !60, !range !63, !noundef !64 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !65 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !66 %5 = load ptr, ptr %4, align 4, !tbaa.struct !34 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !67 %8 = load ptr, ptr %7, align 4, !tbaa.struct !34 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #14 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !68 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #15 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !56 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #20 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !48 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !48 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !69 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #14 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1) #19 ret ptr %4 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #14 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #19, !noalias !70 store ptr %7, ptr %0, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !15 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #19 store ptr %8, ptr %5, align 4, !tbaa !10 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !38, !range !63, !noundef !64 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.15", align 4 store ptr %3, ptr %5, align 4, !tbaa !15 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 store ptr %3, ptr %6, align 4, !tbaa !15 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #19 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !15 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !15 br label %10, !llvm.loop !73 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.15", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !74 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %11 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.15", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !74, !range !63, !noundef !64 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !77 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.16", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !78 %5 = load ptr, ptr %4, align 4, !tbaa !15 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.16", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !79 %8 = load ptr, ptr %7, align 4, !tbaa !15 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #14 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %8, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !80 10: ; preds = %4 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #9 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { nounwind } attributes #19 = { minsize optsize } attributes #20 = { minsize nounwind optsize } attributes #21 = { minsize noreturn optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize nounwind optsize } attributes #24 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!6, !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = !{!5, !5, i64 0} !16 = distinct !{!16, !14} !17 = distinct !{!17, !14} !18 = !{!19, !5, i64 0} !19 = !{!"_ZTSSt16initializer_listINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE", !5, i64 0, !20, i64 4} !20 = !{!"long", !6, i64 0} !21 = !{!19, !20, i64 4} !22 = distinct !{!22, !14} !23 = !{!24, !26, !28, !30, !32} !24 = distinct !{!24, !25, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !26 = distinct !{!26, !27, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !27 = distinct !{!27, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !28 = distinct !{!28, !29, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !29 = distinct !{!29, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !30 = distinct !{!30, !31, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !32 = distinct !{!32, !33, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !34 = !{i64 0, i64 4, !15} !35 = !{!36} !36 = distinct !{!36, !37, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_: argument 0"} !37 = distinct !{!37, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_"} !38 = !{!39, !41, i64 4} !39 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEE", !40, i64 0, !41, i64 4} !40 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorE", !5, i64 0} !41 = !{!"bool", !6, i64 0} !42 = !{!43, !43, i64 0} !43 = !{!"vtable pointer", !7, i64 0} !44 = !{!40, !5, i64 0} !45 = distinct !{!45, !14} !46 = !{i64 0, i64 4, !15, i64 4, i64 4, !47, i64 8, i64 4, !47, i64 11, i64 4, !47, i64 0, i64 11, !12, i64 11, i64 0, !12, i64 11, i64 1, !12, i64 11, i64 1, !12, i64 0, i64 12, !12} !47 = !{!20, !20, i64 0} !48 = !{!49, !5, i64 8} !49 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !50, i64 12} !50 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !9, i64 0, !51, i64 4} !51 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !52 = !{!53} !53 = distinct !{!53, !54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !54 = distinct !{!54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !55 = !{!49, !5, i64 0} !56 = !{!49, !5, i64 4} !57 = distinct !{!57, !14} !58 = !{!59, !5, i64 0} !59 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !60 = !{!61, !41, i64 12} !61 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !62, i64 0, !41, i64 12} !62 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !63 = !{i8 0, i8 2} !64 = !{} !65 = !{!62, !5, i64 0} !66 = !{!62, !5, i64 8} !67 = !{!62, !5, i64 4} !68 = distinct !{!68, !14} !69 = distinct !{!69, !14} !70 = !{!71} !71 = distinct !{!71, !72, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !72 = distinct !{!72, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !73 = distinct !{!73, !14} !74 = !{!75, !41, i64 12} !75 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEEE", !76, i64 0, !41, i64 12} !76 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EE", !5, i64 0, !5, i64 4, !5, i64 8} !77 = !{!76, !5, i64 0} !78 = !{!76, !5, i64 8} !79 = !{!76, !5, i64 4} !80 = distinct !{!80, !14}
(module $code_124.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32 i32))) (type (;7;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ (type 1))) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ (type 6))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 2))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 3))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $split_words_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 0) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const -64 i32.add local.tee 3 global.set $__stack_pointer local.get 3 i32.const 52 i32.add global.get $__memory_base i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 6 local.get 3 i64.const 0 i64.store offset=40 align=4 local.get 3 i32.const 0 i32.store offset=48 local.get 1 i32.load local.set 2 local.get 1 i32.load offset=4 local.set 5 local.get 1 i32.load8_u offset=11 local.set 4 local.get 3 i32.const 32 i32.store8 offset=28 block ;; label = @1 local.get 2 local.get 1 local.get 4 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.tee 7 local.get 7 local.get 5 local.get 4 local.get 2 select i32.add local.get 3 i32.const 28 i32.add local.tee 4 call $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ local.tee 2 local.get 1 i32.load local.get 1 local.get 1 i32.load8_u offset=11 local.tee 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 7 select local.tee 8 local.get 1 i32.load offset=4 local.get 5 local.get 7 select i32.add i32.ne if ;; label = @2 local.get 4 local.get 1 i32.const 32 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 1 local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop i32.const 0 local.set 4 loop ;; label = @3 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.get 4 i32.gt_u if ;; label = @4 block ;; label = @5 local.get 1 i32.load local.get 1 local.get 2 select local.get 4 i32.add i32.load8_u local.tee 5 i32.const 32 i32.eq if ;; label = @6 local.get 6 i32.load offset=4 local.get 6 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s select if ;; label = @7 local.get 3 i32.const 40 i32.add local.get 6 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::push_back_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end local.get 6 global.get $__memory_base i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ drop br 1 (;@5;) end local.get 3 i32.const 28 i32.add local.tee 2 local.get 6 local.get 5 i32.extend8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 6 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 1 i32.add local.set 4 br 1 (;@3;) end end local.get 0 local.get 3 i32.load offset=40 i32.store local.get 0 local.get 3 i32.load offset=44 i32.store offset=4 local.get 0 local.get 3 i32.load offset=48 i32.store offset=8 local.get 3 i32.const 0 i32.store offset=48 local.get 3 i64.const 0 i64.store offset=40 align=4 br 1 (;@1;) end local.get 3 i32.const 44 i32.store8 offset=28 i32.const 0 local.set 4 block ;; label = @2 local.get 8 local.get 2 local.get 3 i32.const 28 i32.add call $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ local.get 1 i32.load local.get 1 local.get 1 i32.load8_u offset=11 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.tee 7 local.get 1 i32.load offset=4 local.get 2 local.get 5 select local.tee 2 i32.add i32.eq if ;; label = @3 i32.const 0 local.set 1 loop ;; label = @4 local.get 1 local.get 2 i32.eq br_if 2 (;@2;) local.get 4 local.get 1 local.get 7 i32.add i32.load8_u local.tee 5 i32.const -1 i32.xor i32.const 1 i32.and local.get 5 i32.const 97 i32.sub i32.const 255 i32.and i32.const 26 i32.lt_u i32.and i32.add local.set 4 local.get 1 i32.const 1 i32.add local.set 1 br 0 (;@4;) end unreachable end local.get 3 i32.const 28 i32.add local.tee 2 local.get 1 i32.const 44 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 1 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop loop ;; label = @3 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.get 4 i32.gt_u if ;; label = @4 block ;; label = @5 local.get 1 i32.load local.get 1 local.get 2 select local.get 4 i32.add i32.load8_u local.tee 5 i32.const 44 i32.eq if ;; label = @6 local.get 6 i32.load offset=4 local.get 6 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s select if ;; label = @7 local.get 3 i32.const 40 i32.add local.get 6 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::push_back_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end local.get 6 global.get $__memory_base i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ drop br 1 (;@5;) end local.get 3 i32.const 28 i32.add local.tee 2 local.get 6 local.get 5 i32.extend8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 6 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 1 i32.add local.set 4 br 1 (;@3;) end end local.get 0 local.get 3 i32.load offset=40 i32.store local.get 0 local.get 3 i32.load offset=44 i32.store offset=4 local.get 0 local.get 3 i32.load offset=48 i32.store offset=8 local.get 3 i32.const 0 i32.store offset=48 local.get 3 i64.const 0 i64.store offset=40 align=4 br 1 (;@1;) end local.get 3 i32.const 28 i32.add local.tee 2 local.get 4 call $std::__2::to_string_int_ local.get 3 i32.const 1 i32.store offset=24 local.get 3 local.get 2 i32.store offset=20 local.get 3 local.get 3 i64.load offset=20 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 4 local.get 0 i32.store offset=8 local.get 3 i32.load offset=12 local.tee 1 if ;; label = @2 local.get 1 i32.const 357913942 i32.ge_u if ;; label = @3 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end local.get 0 local.get 1 call $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ local.tee 5 i32.store offset=4 local.get 0 local.get 5 i32.store local.get 0 local.get 5 local.get 1 i32.const 12 i32.mul local.tee 7 i32.add i32.store offset=8 local.get 0 local.get 3 i32.load offset=8 local.tee 0 local.get 0 local.get 7 i32.add local.get 1 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ end local.get 4 i32.const 1 i32.store8 offset=12 local.get 4 i32.const 8 i32.add local.tee 0 i32.load8_u offset=4 i32.eqz if ;; label = @2 local.get 0 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ end local.get 4 i32.const 16 i32.add global.set $__stack_pointer local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 3 i32.const 40 i32.add i32.store offset=12 local.get 0 i32.const 12 i32.add call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 6 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 3 i32.const -64 i32.sub global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 1) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::__wrap_iter<char*>_std::__2::find_abi:v160006_<std::__2::__wrap_iter<char*>__char>_std::__2::__wrap_iter<char*>__std::__2::__wrap_iter<char*>__char_const&_ (type 5) (param i32 i32 i32) (result i32) local.get 2 i32.load8_u local.set 2 loop ;; label = @1 block ;; label = @2 local.get 0 local.get 1 i32.ne if (result i32) ;; label = @3 local.get 0 i32.load8_u local.get 2 i32.ne br_if 1 (;@2;) local.get 0 else local.get 1 end return end local.get 0 i32.const 1 i32.add local.set 0 br 0 (;@1;) end unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ (type 3) (param i32 i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer block (result i32) ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 i32.const 1 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 3 i32.store8 offset=11 local.get 0 br 2 (;@1;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 6 call $operator_new_unsigned_long_ local.set 7 local.get 0 local.get 3 i32.store offset=4 local.get 0 local.get 7 i32.store local.get 0 local.get 6 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 br 1 (;@1;) end global.get $__memory_base i32.const 7 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.tee 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add local.tee 0 local.get 2 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 5 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 0) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::push_back_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0) (param i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @1 local.get 0 local.get 1 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ return end local.get 0 local.get 1 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 4 i32.const 357913942 i32.ge_u if ;; label = @1 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 3 i32.const 1 i32.shl local.tee 5 local.get 4 local.get 4 local.get 5 i32.lt_u select local.get 3 i32.const 178956970 i32.ge_u select local.set 3 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 4 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 3 if ;; label = @1 local.get 3 call $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ local.set 4 end local.get 2 local.get 4 i32.store offset=12 local.get 2 local.get 4 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 4 local.get 3 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 5 local.get 2 i32.load offset=16 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 5 i32.ne if ;; label = @2 local.get 4 i32.const 12 i32.sub local.tee 4 local.get 1 i32.const 12 i32.sub local.tee 1 i64.load align=4 i64.store align=4 local.get 4 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 local.get 1 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 local.get 4 i32.store offset=28 local.get 3 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 5 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 5 i32.ne if ;; label = @3 local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 5 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 4 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 4 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1 (type 6) (param i32 i32 i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 local.get 4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.add local.tee 4 i32.store offset=28 local.get 1 i32.const 12 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.load8_u offset=20 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 drop local.get 3 i32.load offset=16 i32.load local.set 1 local.get 3 i32.load offset=12 i32.load local.set 2 loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 1 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 1 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 0 local.get 4 i32.store offset=4) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ (type 4) (param i32) (local i32 i32 i32) local.get 0 i32.load local.tee 1 i32.load if ;; label = @1 local.get 1 i32.load local.set 3 local.get 1 i32.load offset=4 local.set 2 loop ;; label = @2 local.get 2 local.get 3 i32.ne if ;; label = @3 local.get 2 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 2 br 1 (;@2;) end end local.get 1 local.get 3 i32.store offset=4 local.get 0 i32.load i32.load call $operator_delete_void*_ end) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 4) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const (type 7) global.get $__memory_base call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable) (func $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ (type 2) (param i32) (result i32) (local i32) local.get 0 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 i32.const 12 i32.mul call $operator_new_unsigned_long_) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z11split_wordsNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $split_words_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00basic_string\00"))
CPP/126
/* Given a vector of numbers, return whether or not they are sorted in ascending order. If vector has more than 1 duplicate of the same number, return false. Assume no negative numbers and only integers. Examples is_sorted({5}) ➞ true is_sorted({1, 2, 3, 4, 5}) ➞ true is_sorted({1, 3, 2, 4, 5}) ➞ false is_sorted({1, 2, 3, 4, 5, 6}) ➞ true is_sorted({1, 2, 3, 4, 5, 6, 7}) ➞ true is_sorted({1, 3, 2, 4, 5, 6, 7}) ➞ false is_sorted({1, 2, 2, 3, 3, 4}) ➞ true is_sorted({1, 2, 2, 2, 3, 4}) ➞ false */ #include<stdio.h> #include<vector> #include<algorithm> using namespace std; bool is_sorted(vector<int> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> bool is_sorted(vector<int> lst){
for (int i=1;i<lst.size();i++) { if (lst[i]<lst[i-1]) return false; if (i>=2 and lst[i]==lst[i-1] and lst[i]==lst[i-2]) return false; } return true; }
#undef NDEBUG #include<assert.h> int main(){ assert (is_sorted({5}) == true); assert (is_sorted({1, 2, 3, 4, 5}) == true); assert (is_sorted({1, 3, 2, 4, 5}) == false); assert (is_sorted({1, 2, 3, 4, 5, 6}) == true); assert (is_sorted({1, 2, 3, 4, 5, 6, 7}) == true); assert (is_sorted({1, 3, 2, 4, 5, 6, 7}) == false); assert (is_sorted({}) == true); assert (is_sorted({1}) == true); assert (is_sorted({3, 2, 1}) == false); assert (is_sorted({1, 2, 2, 2, 3, 4}) == false); assert (is_sorted({1, 2, 3, 3, 3, 4}) == false); assert (is_sorted({1, 2, 2, 3, 3, 4}) == true); assert (is_sorted({1, 2, 3, 4}) == true); }
#undef NDEBUG #include<assert.h> int main(){ assert (is_sorted({5}) == true); assert (is_sorted({1, 2, 3, 4, 5}) == true); assert (is_sorted({1, 3, 2, 4, 5}) == false); assert (is_sorted({1, 2, 3, 4, 5, 6}) == true); assert (is_sorted({1, 2, 3, 4, 5, 6, 7}) == true); assert (is_sorted({1, 3, 2, 4, 5, 6, 7}) == false); assert (is_sorted({1, 2, 2, 2, 3, 4}) == false); assert (is_sorted({1, 2, 2, 3, 3, 4}) == true); }
; ModuleID = 'c_code/code_125.cpp' source_filename = "c_code/code_125.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef zeroext i1 @_Z9is_sortedNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 %9 = tail call i32 @llvm.umax.i32(i32 %8, i32 1) br label %10 10: ; preds = %29, %1 %11 = phi i32 [ 1, %1 ], [ %30, %29 ] %12 = icmp eq i32 %11, %9 br i1 %12, label %31, label %13 13: ; preds = %10 %14 = getelementptr inbounds i32, ptr %4, i32 %11 %15 = load i32, ptr %14, align 4, !tbaa !11 %16 = add nsw i32 %11, -1 %17 = getelementptr inbounds i32, ptr %4, i32 %16 %18 = load i32, ptr %17, align 4, !tbaa !11 %19 = icmp slt i32 %15, %18 br i1 %19, label %31, label %20 20: ; preds = %13 %21 = icmp ugt i32 %11, 1 %22 = icmp eq i32 %15, %18 %23 = and i1 %21, %22 br i1 %23, label %24, label %29 24: ; preds = %20 %25 = add nsw i32 %11, -2 %26 = getelementptr inbounds i32, ptr %4, i32 %25 %27 = load i32, ptr %26, align 4, !tbaa !11 %28 = icmp eq i32 %15, %27 br i1 %28, label %31, label %29 29: ; preds = %20, %24 %30 = add nuw i32 %11, 1 br label %10, !llvm.loop !13 31: ; preds = %24, %13, %10 %32 = icmp uge i32 %11, %8 ret i1 %32 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_125.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $is_sorted_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32) i32.const 1 local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 5 i32.sub i32.const 2 i32.shr_s local.tee 2 local.get 2 i32.const 1 i32.le_u select local.set 1 i32.const 1 local.set 0 block ;; label = @1 loop ;; label = @2 local.get 0 local.get 1 i32.eq br_if 1 (;@1;) block ;; label = @3 local.get 5 local.get 0 i32.const 2 i32.shl i32.add local.tee 3 i32.load local.tee 4 local.get 3 i32.const 4 i32.sub i32.load local.tee 6 i32.lt_s br_if 0 (;@3;) local.get 4 local.get 6 i32.ne local.get 0 i32.const 2 i32.lt_u i32.or i32.eqz if ;; label = @4 local.get 4 local.get 3 i32.const 8 i32.sub i32.load i32.eq br_if 1 (;@3;) end local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@2;) end end local.get 0 local.set 1 end local.get 1 local.get 2 i32.ge_u) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9is_sortedNSt3__26vectorIiNS_9allocatorIiEEEE" (func $is_sorted_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/127
/* You are given two intervals, where each interval is a pair of integers. For example, interval = (start, end) = (1, 2). The given intervals are closed which means that the interval (start, end) includes both start and end. For each given interval, it is assumed that its start is less or equal its end. Your task is to determine whether the length of intersection of these two intervals is a prime number. Example, the intersection of the intervals (1, 3), (2, 4) is (2, 3) which its length is 1, which not a prime number. If the length of the intersection is a prime number, return "YES", otherwise, return "NO". If the two intervals don't intersect, return "NO". {input/output} samples: intersection({1, 2}, {2, 3}) ==> "NO" intersection({-1, 1}, {0, 4}) ==> "NO" intersection({-3, -1}, {-5, 5}) ==> "YES" */ #include<stdio.h> #include<vector> #include<string> using namespace std; string intersection( vector<int> interval1,vector<int> interval2){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> string intersection( vector<int> interval1,vector<int> interval2){
int inter1,inter2,l,i; inter1=max(interval1[0],interval2[0]); inter2=min(interval1[1],interval2[1]); l=inter2-inter1; if (l<2) return "NO"; for (i=2;i*i<=l;i++) if (l%i==0) return "NO"; return "YES"; }
#undef NDEBUG #include<assert.h> int main(){ assert (intersection({1, 2}, {2, 3}) == "NO"); assert (intersection({-1, 1}, {0, 4}) == "NO"); assert (intersection({-3, -1}, {-5, 5}) == "YES"); assert (intersection({-2, 2}, {-4, 0}) == "YES"); assert (intersection({-11, 2}, {-1, -1}) == "NO"); assert (intersection({1, 2}, {3, 5}) == "NO"); assert (intersection({1, 2}, {1, 2}) == "NO"); assert (intersection({-2, -2}, {-3, -2}) == "NO"); }
#undef NDEBUG #include<assert.h> int main(){ assert (intersection({1, 2}, {2, 3}) == "NO"); assert (intersection({-1, 1}, {0, 4}) == "NO"); assert (intersection({-3, -1}, {-5, 5}) == "YES"); }
; ModuleID = 'c_code/code_126.cpp' source_filename = "c_code/code_126.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any @.str = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 ; Function Attrs: minsize mustprogress optsize define void @_Z12intersectionNSt3__26vectorIiNS_9allocatorIiEEEES3_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 { %4 = load ptr, ptr %1, align 4, !tbaa !3 %5 = load ptr, ptr %2, align 4, !tbaa !3 %6 = load i32, ptr %4, align 4 %7 = load i32, ptr %5, align 4 %8 = tail call i32 @llvm.smax.i32(i32 %6, i32 %7) %9 = getelementptr inbounds i32, ptr %4, i32 1 %10 = getelementptr inbounds i32, ptr %5, i32 1 %11 = load i32, ptr %10, align 4 %12 = load i32, ptr %9, align 4 %13 = tail call i32 @llvm.smin.i32(i32 %11, i32 %12) %14 = sub nsw i32 %13, %8 %15 = icmp slt i32 %14, 2 br i1 %15, label %24, label %16 16: ; preds = %3, %20 %17 = phi i32 [ %23, %20 ], [ 2, %3 ] %18 = mul nsw i32 %17, %17 %19 = icmp sgt i32 %18, %14 br i1 %19, label %24, label %20 20: ; preds = %16 %21 = srem i32 %14, %17 %22 = icmp eq i32 %21, 0 %23 = add nuw nsw i32 %17, 1 br i1 %22, label %24, label %16, !llvm.loop !10 24: ; preds = %16, %20, %3 %25 = phi ptr [ @.str, %3 ], [ @.str, %20 ], [ @.str.1, %16 ] %26 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %25) #6 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #7 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #6 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #2 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #4 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #5 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #5 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #6 = { minsize optsize } attributes #7 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = distinct !{!10, !11} !11 = !{!"llvm.loop.mustprogress"}
(module $code_126.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 1))) (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 3)) (func $intersection_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32 i32 i32) (local i32 i32 i32 i32) local.get 2 i32.load local.tee 3 i32.load local.set 4 local.get 1 i32.load local.tee 5 i32.load local.set 1 i32.const 2 local.set 2 global.get $__memory_base local.set 6 local.get 0 block (result i32) ;; label = @1 local.get 6 i32.const 4 i32.add local.get 3 i32.load offset=4 local.tee 3 local.get 5 i32.load offset=4 local.tee 5 local.get 3 local.get 5 i32.lt_s select local.get 1 local.get 4 local.get 1 local.get 4 i32.gt_s select i32.sub local.tee 1 i32.const 2 i32.lt_s br_if 0 (;@1;) drop loop ;; label = @2 global.get $__memory_base local.get 1 local.get 2 local.get 2 i32.mul i32.lt_s br_if 1 (;@1;) drop global.get $__memory_base local.set 4 local.get 1 local.get 2 i32.rem_s local.get 2 i32.const 1 i32.add local.set 2 br_if 0 (;@2;) end local.get 4 i32.const 4 i32.add end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z12intersectionNSt3__26vectorIiNS_9allocatorIiEEEES3_" (func $intersection_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "YES\00NO\00"))
CPP/128
/* You are given a vector arr of integers and you need to return sum of magnitudes of integers multiplied by product of all signs of each number in the vector, represented by 1, -1 or 0. Note: return -32768 for empty arr. Example: >>> prod_signs({1, 2, 2, -4}) == -9 >>> prod_signs({0, 1}) == 0 >>> prod_signs({}) == -32768 */ #include<stdio.h> #include<math.h> #include<vector> using namespace std; int prod_signs(vector<int> arr){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> int prod_signs(vector<int> arr){
if (arr.size()==0) return -32768; int i,sum=0,prods=1; for (i=0;i<arr.size();i++) { sum+=abs(arr[i]); if (arr[i]==0) prods=0; if (arr[i]<0) prods=-prods; } return sum*prods; }
#undef NDEBUG #include<assert.h> int main(){ assert (prod_signs({1, 2, 2, -4}) == -9); assert (prod_signs({0, 1}) == 0); assert (prod_signs({1, 1, 1, 2, 3, -1, 1}) == -10); assert (prod_signs({}) == -32768); assert (prod_signs({2, 4,1, 2, -1, -1, 9}) == 20); assert (prod_signs({-1, 1, -1, 1}) == 4); assert (prod_signs({-1, 1, 1, 1}) == -4); assert (prod_signs({-1, 1, 1, 0}) == 0); }
#undef NDEBUG #include<assert.h> int main(){ assert (prod_signs({1, 2, 2, -4}) == -9); assert (prod_signs({0, 1}) == 0); assert (prod_signs({}) == -32768); }
; ModuleID = 'c_code/code_127.cpp' source_filename = "c_code/code_127.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z10prod_signsNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 %9 = icmp eq ptr %3, %4 br i1 %9, label %28, label %10 10: ; preds = %1, %15 %11 = phi i32 [ %25, %15 ], [ 0, %1 ] %12 = phi i32 [ %19, %15 ], [ 0, %1 ] %13 = phi i32 [ %24, %15 ], [ 1, %1 ] %14 = icmp eq i32 %11, %8 br i1 %14, label %26, label %15 15: ; preds = %10 %16 = getelementptr inbounds i32, ptr %4, i32 %11 %17 = load i32, ptr %16, align 4, !tbaa !11 %18 = tail call i32 @llvm.abs.i32(i32 %17, i1 true) %19 = add nuw nsw i32 %18, %12 %20 = icmp eq i32 %17, 0 %21 = select i1 %20, i32 0, i32 %13 %22 = icmp slt i32 %17, 0 %23 = sub nsw i32 0, %21 %24 = select i1 %22, i32 %23, i32 %21 %25 = add nuw i32 %11, 1 br label %10, !llvm.loop !13 26: ; preds = %10 %27 = mul nsw i32 %13, %12 br label %28 28: ; preds = %1, %26 %29 = phi i32 [ %27, %26 ], [ -32768, %1 ] ret i32 %29 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_127.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $prod_signs_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 i32) local.get 0 i32.load offset=4 local.tee 1 local.get 0 i32.load local.tee 4 i32.eq if ;; label = @1 i32.const -32768 return end local.get 1 local.get 4 i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 1 local.set 1 i32.const 0 local.set 0 loop ;; label = @1 local.get 0 local.get 5 i32.eq i32.eqz if ;; label = @2 i32.const 0 local.get 1 i32.const 0 local.get 4 local.get 0 i32.const 2 i32.shl i32.add i32.load local.tee 3 select local.tee 1 i32.sub local.get 1 local.get 3 i32.const 0 i32.lt_s select local.set 1 local.get 2 local.get 3 local.get 3 i32.const 31 i32.shr_s local.tee 2 i32.xor local.get 2 i32.sub i32.add local.set 2 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end local.get 1 local.get 2 i32.mul) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10prod_signsNSt3__26vectorIiNS_9allocatorIiEEEE" (func $prod_signs_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/129
/* Given a grid with N rows and N columns (N >= 2) and a positive integer k, each cell of the grid contains a value. Every integer in the range {1, N * N} inclusive appears exactly once on the cells of the grid. You have to find the minimum path of length k in the grid. You can start from any cell, and in each step you can move to any of the neighbor cells, in other words, you can go to cells which share an edge with you current cell. Please note that a path of length k means visiting exactly k cells (not necessarily distinct). You CANNOT go off the grid. A path A (of length k) is considered less than a path B (of length k) if after making the ordered vectors of the values on the cells that A and B go through (let's call them lst_A and lst_B), lst_A is lexicographically less than lst_B, in other words, there exist an integer index i (1 <= i <= k) such that lst_A[i] < lst_B[i] and for any j (1 <= j < i) we have lst_A[j] = lst_B[j]. It is guaranteed that the answer is unique. Return an ordered vector of the values on the cells that the minimum path go through. Examples: Input: grid = { {1,2,3}, {4,5,6}, {7,8,9}}, k = 3 Output: {1, 2, 1} Input: grid = { {5,9,3}, {4,1,6}, {7,8,2}}, k = 1 Output: {1} */ #include<stdio.h> #include<vector> using namespace std; vector<int> minPath(vector<vector<int>> grid, int k){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> minPath(vector<vector<int>> grid, int k){
int i,j,x,y,min; for (i=0;i<grid.size();i++) for (j=0;j<grid[i].size();j++) if (grid[i][j]==1) { x=i;y=j; } min=grid.size()*grid.size(); if (x>0 and grid[x-1][y]<min) min=grid[x-1][y]; if (x<grid.size()-1 and grid[x+1][y]<min) min=grid[x+1][y]; if (y>0 and grid[x][y-1]<min) min=grid[x][y-1]; if (y<grid.size()-1 and grid[x][y+1]<min) min=grid[x][y+1]; vector<int> out={}; for (i=0;i<k;i++) if (i%2==0) out.push_back(1); else out.push_back(min); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(minPath({{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, 3) , {1, 2, 1})); assert (issame(minPath({{5, 9, 3}, {4, 1, 6}, {7, 8, 2}}, 1) , {1})); assert (issame(minPath({{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}}, 4) , {1, 2, 1, 2})); assert (issame(minPath({{6, 4, 13, 10}, {5, 7, 12, 1}, {3, 16, 11, 15}, {8, 14, 9, 2}}, 7) , {1, 10, 1, 10, 1, 10, 1})); assert (issame(minPath({{8, 14, 9, 2}, {6, 4, 13, 15}, {5, 7, 1, 12}, {3, 10, 11, 16}}, 5) , {1, 7, 1, 7, 1})); assert (issame(minPath({{11, 8, 7, 2}, {5, 16, 14, 4}, {9, 3, 15, 6}, {12, 13, 10, 1}}, 9) , {1, 6, 1, 6, 1, 6, 1, 6, 1})); assert (issame(minPath({{12, 13, 10, 1}, {9, 3, 15, 6}, {5, 16, 14, 4}, {11, 8, 7, 2}}, 12) , {1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6})); assert (issame(minPath({{2, 7, 4}, {3, 1, 5}, {6, 8, 9}}, 8) , {1, 3, 1, 3, 1, 3, 1, 3})); assert (issame(minPath({{6, 1, 5}, {3, 8, 9}, {2, 7, 4}}, 8) , {1, 5, 1, 5, 1, 5, 1, 5})); assert (issame(minPath({{1, 2}, {3, 4}}, 10) , {1, 2, 1, 2, 1, 2, 1, 2, 1, 2})); assert (issame(minPath({{1, 3}, {3, 2}}, 10) , {1, 3, 1, 3, 1, 3, 1, 3, 1, 3})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(minPath({{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, 3) , {1, 2, 1})); assert (issame(minPath({{5, 9, 3}, {4, 1, 6}, {7, 8, 2}}, 1) , {1})); }
; ModuleID = 'c_code/code_128.cpp' source_filename = "c_code/code_128.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::vector.1" = type { ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z7minPathNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEEi(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 { %4 = alloca i32, align 4 %5 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #13 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !3 %8 = load ptr, ptr %1, align 4, !tbaa !10 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 br label %13 13: ; preds = %39, %3 %14 = phi i32 [ 0, %3 ], [ %40, %39 ] %15 = phi i32 [ undef, %3 ], [ %29, %39 ] %16 = phi i32 [ undef, %3 ], [ %30, %39 ] %17 = icmp eq i32 %14, %12 br i1 %17, label %41, label %18 18: ; preds = %13 %19 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %14 %20 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %14, i32 1 %21 = load ptr, ptr %20, align 4, !tbaa !11 %22 = load ptr, ptr %19, align 4, !tbaa !15 %23 = ptrtoint ptr %21 to i32 %24 = ptrtoint ptr %22 to i32 %25 = sub i32 %23, %24 %26 = ashr exact i32 %25, 2 br label %27 27: ; preds = %18, %32 %28 = phi i32 [ %38, %32 ], [ 0, %18 ] %29 = phi i32 [ %36, %32 ], [ %15, %18 ] %30 = phi i32 [ %37, %32 ], [ %16, %18 ] %31 = icmp eq i32 %28, %26 br i1 %31, label %39, label %32 32: ; preds = %27 %33 = getelementptr inbounds i32, ptr %22, i32 %28 %34 = load i32, ptr %33, align 4, !tbaa !16 %35 = icmp eq i32 %34, 1 %36 = select i1 %35, i32 %14, i32 %29 %37 = select i1 %35, i32 %28, i32 %30 %38 = add nuw i32 %28, 1 br label %27, !llvm.loop !18 39: ; preds = %27 %40 = add nuw i32 %14, 1 br label %13, !llvm.loop !20 41: ; preds = %13 %42 = mul i32 %12, %12 store i32 %42, ptr %4, align 4, !tbaa !16 %43 = icmp sgt i32 %15, 0 br i1 %43, label %44, label %52 44: ; preds = %41 %45 = add nsw i32 %15, -1 %46 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %45 %47 = load ptr, ptr %46, align 4, !tbaa !15 %48 = getelementptr inbounds i32, ptr %47, i32 %16 %49 = load i32, ptr %48, align 4, !tbaa !16 %50 = icmp slt i32 %49, %42 br i1 %50, label %51, label %52 51: ; preds = %44 store i32 %49, ptr %4, align 4, !tbaa !16 br label %52 52: ; preds = %51, %44, %41 %53 = phi i32 [ %49, %51 ], [ %42, %44 ], [ %42, %41 ] %54 = add nsw i32 %12, -1 %55 = icmp ult i32 %15, %54 br i1 %55, label %56, label %64 56: ; preds = %52 %57 = add nuw nsw i32 %15, 1 %58 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %57 %59 = load ptr, ptr %58, align 4, !tbaa !15 %60 = getelementptr inbounds i32, ptr %59, i32 %16 %61 = load i32, ptr %60, align 4, !tbaa !16 %62 = icmp slt i32 %61, %53 br i1 %62, label %63, label %64 63: ; preds = %56 store i32 %61, ptr %4, align 4, !tbaa !16 br label %64 64: ; preds = %63, %56, %52 %65 = phi i32 [ %61, %63 ], [ %53, %56 ], [ %53, %52 ] %66 = icmp sgt i32 %16, 0 br i1 %66, label %67, label %75 67: ; preds = %64 %68 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %15 %69 = add nsw i32 %16, -1 %70 = load ptr, ptr %68, align 4, !tbaa !15 %71 = getelementptr inbounds i32, ptr %70, i32 %69 %72 = load i32, ptr %71, align 4, !tbaa !16 %73 = icmp slt i32 %72, %65 br i1 %73, label %74, label %75 74: ; preds = %67 store i32 %72, ptr %4, align 4, !tbaa !16 br label %75 75: ; preds = %74, %67, %64 %76 = phi i32 [ %72, %74 ], [ %65, %67 ], [ %65, %64 ] %77 = icmp ult i32 %16, %54 br i1 %77, label %78, label %86 78: ; preds = %75 %79 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 %15 %80 = add nuw nsw i32 %16, 1 %81 = load ptr, ptr %79, align 4, !tbaa !15 %82 = getelementptr inbounds i32, ptr %81, i32 %80 %83 = load i32, ptr %82, align 4, !tbaa !16 %84 = icmp slt i32 %83, %76 br i1 %84, label %85, label %86 85: ; preds = %78 store i32 %83, ptr %4, align 4, !tbaa !16 br label %86 86: ; preds = %85, %78, %75 store ptr null, ptr %0, align 4, !tbaa !15 %87 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %87, align 4, !tbaa !11 %88 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %88, align 4, !tbaa !21 %89 = tail call i32 @llvm.smax.i32(i32 %2, i32 0) br label %90 90: ; preds = %98, %86 %91 = phi i32 [ 0, %86 ], [ %99, %98 ] %92 = icmp eq i32 %91, %89 br i1 %92, label %100, label %93 93: ; preds = %90 %94 = and i32 %91, 1 %95 = icmp eq i32 %94, 0 br i1 %95, label %96, label %97 96: ; preds = %93 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #13 store i32 1, ptr %5, align 4, !tbaa !16 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %5) #14 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #13 br label %98 97: ; preds = %93 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %4) #14 br label %98 98: ; preds = %96, %97 %99 = add nuw i32 %91, 1 br label %90, !llvm.loop !22 100: ; preds = %90 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #13 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !11 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !23 %7 = icmp ult ptr %4, %6 br i1 %7, label %8, label %11 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !16 store i32 %9, ptr %4, align 4, !tbaa !16 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !11 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #14 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !11 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !23 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !16 store i32 %9, ptr %4, align 4, !tbaa !16 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !11 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #14 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #13 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !11 %7 = load ptr, ptr %0, align 4, !tbaa !15 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #14 %14 = load ptr, ptr %5, align 4, !tbaa !11 %15 = load ptr, ptr %0, align 4, !tbaa !15 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !24 %23 = load i32, ptr %1, align 4, !tbaa !16 store i32 %23, ptr %22, align 4, !tbaa !16 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !24 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #14 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #13 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !23 %8 = load ptr, ptr %0, align 4, !tbaa !15 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !21 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !23 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #14, !noalias !28 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !31 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !24 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !32 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !23 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !11 %5 = load ptr, ptr %0, align 4, !tbaa !15 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !32 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !16, !noalias !33 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !16, !noalias !33 br label %8, !llvm.loop !38 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !32 %17 = load ptr, ptr %0, align 4, !tbaa !23 store ptr %10, ptr %0, align 4, !tbaa !23 store ptr %17, ptr %6, align 4, !tbaa !23 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !23 %20 = load ptr, ptr %18, align 4, !tbaa !23 store ptr %20, ptr %3, align 4, !tbaa !23 store ptr %19, ptr %18, align 4, !tbaa !23 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !23 %24 = load ptr, ptr %22, align 4, !tbaa !23 store ptr %24, ptr %21, align 4, !tbaa !23 store ptr %23, ptr %22, align 4, !tbaa !23 %25 = load ptr, ptr %6, align 4, !tbaa !32 store ptr %25, ptr %1, align 4, !tbaa !31 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #5 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #15 %2 = load ptr, ptr %0, align 4, !tbaa !31 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !39 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #5 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #8 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #16 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #7 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #13 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #15 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !32 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !24 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !24 br label %5, !llvm.loop !41 10: ; preds = %5 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #13 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !11 %7 = load ptr, ptr %0, align 4, !tbaa !15 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #14 %14 = load ptr, ptr %5, align 4, !tbaa !11 %15 = load ptr, ptr %0, align 4, !tbaa !15 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !24 %23 = load i32, ptr %1, align 4, !tbaa !16 store i32 %23, ptr %22, align 4, !tbaa !16 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !24 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #14 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #13 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #12 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_6vectorIiNS_9allocatorIiEEEENS2_IS4_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_6vectorIiNS_9allocatorIiEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !5, i64 4} !12 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !13, i64 8} !13 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !14, i64 0} !14 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !15 = !{!12, !5, i64 0} !16 = !{!17, !17, i64 0} !17 = !{!"int", !6, i64 0} !18 = distinct !{!18, !19} !19 = !{!"llvm.loop.mustprogress"} !20 = distinct !{!20, !19} !21 = !{!14, !5, i64 0} !22 = distinct !{!22, !19} !23 = !{!5, !5, i64 0} !24 = !{!25, !5, i64 8} !25 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !26, i64 12} !26 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !14, i64 0, !27, i64 4} !27 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !28 = !{!29} !29 = distinct !{!29, !30, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !30 = distinct !{!30, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !31 = !{!25, !5, i64 0} !32 = !{!25, !5, i64 4} !33 = !{!34, !36} !34 = distinct !{!34, !35, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !35 = distinct !{!35, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !36 = distinct !{!36, !37, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !37 = distinct !{!37, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !38 = distinct !{!38, !19} !39 = !{!40, !40, i64 0} !40 = !{!"vtable pointer", !7, i64 0} !41 = distinct !{!41, !19}
(module $code_128.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ (type 0))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $minPath_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>__int_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 8 i32.sub i32.const 12 i32.div_s local.set 7 loop ;; label = @1 local.get 3 local.get 7 i32.ne if ;; label = @2 local.get 8 local.get 3 i32.const 12 i32.mul i32.add local.tee 1 i32.load offset=4 local.get 1 i32.load local.tee 9 i32.sub i32.const 2 i32.shr_s local.set 10 i32.const 0 local.set 1 loop ;; label = @3 local.get 1 local.get 10 i32.ne if ;; label = @4 local.get 1 local.get 5 local.get 9 local.get 1 i32.const 2 i32.shl i32.add i32.load i32.const 1 i32.eq local.tee 11 select local.set 5 local.get 3 local.get 6 local.get 11 select local.set 6 local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@3;) end end local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@1;) end end local.get 4 local.get 7 local.get 7 i32.mul local.tee 1 i32.store offset=12 block ;; label = @1 local.get 6 i32.const 0 i32.le_s br_if 0 (;@1;) local.get 6 i32.const 12 i32.mul local.get 8 i32.add i32.const 12 i32.sub i32.load local.get 5 i32.const 2 i32.shl i32.add i32.load local.tee 3 local.get 1 i32.ge_s br_if 0 (;@1;) local.get 4 local.get 3 i32.store offset=12 local.get 3 local.set 1 end block ;; label = @1 local.get 6 local.get 7 i32.const 1 i32.sub local.tee 7 i32.ge_u br_if 0 (;@1;) local.get 6 i32.const 12 i32.mul local.get 8 i32.add i32.load offset=12 local.get 5 i32.const 2 i32.shl i32.add i32.load local.tee 3 local.get 1 i32.ge_s br_if 0 (;@1;) local.get 4 local.get 3 i32.store offset=12 local.get 3 local.set 1 end block ;; label = @1 local.get 5 i32.const 0 i32.le_s br_if 0 (;@1;) local.get 8 local.get 6 i32.const 12 i32.mul i32.add i32.load local.get 5 i32.const 2 i32.shl i32.add i32.const 4 i32.sub i32.load local.tee 3 local.get 1 i32.ge_s br_if 0 (;@1;) local.get 4 local.get 3 i32.store offset=12 local.get 3 local.set 1 end block ;; label = @1 local.get 5 local.get 7 i32.ge_u br_if 0 (;@1;) local.get 1 local.get 8 local.get 6 i32.const 12 i32.mul i32.add i32.load local.get 5 i32.const 2 i32.shl i32.add i32.load offset=4 local.tee 3 i32.le_s br_if 0 (;@1;) local.get 4 local.get 3 i32.store offset=12 end i32.const 0 local.set 1 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 i32.const 0 local.get 2 i32.const 0 i32.gt_s select local.set 5 loop ;; label = @1 local.get 1 local.get 5 i32.ne if ;; label = @2 block ;; label = @3 local.get 1 i32.const 1 i32.and i32.eqz if ;; label = @4 local.get 4 i32.const 1 i32.store offset=8 local.get 4 i32.const 8 i32.add local.set 2 block ;; label = @5 local.get 0 i32.load offset=4 local.tee 3 local.get 0 i32.load offset=8 i32.lt_u if ;; label = @6 local.get 3 local.get 2 i32.load i32.store local.get 0 local.get 3 i32.const 4 i32.add i32.store offset=4 br 1 (;@5;) end local.get 0 local.get 2 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ end br 1 (;@3;) end local.get 4 i32.const 12 i32.add local.set 2 block ;; label = @4 local.get 0 i32.load offset=4 local.tee 3 local.get 0 i32.load offset=8 i32.ne if ;; label = @5 local.get 3 local.get 2 i32.load i32.store local.get 0 local.get 3 i32.const 4 i32.add i32.store offset=4 br 1 (;@4;) end local.get 0 local.get 2 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end end local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z7minPathNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEEi" (func $minPath_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>__int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/130
/* Everyone knows Fibonacci sequence, it was studied deeply by mathematicians in the last couple centuries. However, what people don't know is Tribonacci sequence. Tribonacci sequence is defined by the recurrence: tri(1) = 3 tri(n) = 1 + n / 2, if n is even. tri(n) = tri(n - 1) + tri(n - 2) + tri(n + 1), if n is odd. For example: tri(2) = 1 + (2 / 2) = 2 tri(4) = 3 tri(3) = tri(2) + tri(1) + tri(4) = 2 + 3 + 3 = 8 You are given a non-negative integer number n, you have to a return a vector of the first n + 1 numbers of the Tribonacci sequence. Examples: tri(3) = {1, 3, 2, 8} */ #include<stdio.h> #include<vector> using namespace std; vector<int> tri(int n){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> tri(int n){
vector<int> out={1,3}; if (n==0) return {1}; for (int i=2;i<=n;i++) { if (i%2==0) out.push_back(1+i/2); else out.push_back(out[i-1]+out[i-2]+1+(i+1)/2); } return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(tri(3) , {1, 3, 2, 8})); assert (issame(tri(4) , {1, 3, 2, 8, 3})); assert (issame(tri(5) , {1, 3, 2, 8, 3, 15})); assert (issame(tri(6) , {1, 3, 2, 8, 3, 15, 4})); assert (issame(tri(7) , {1, 3, 2, 8, 3, 15, 4, 24})); assert (issame(tri(8) , {1, 3, 2, 8, 3, 15, 4, 24, 5})); assert (issame(tri(9) , {1, 3, 2, 8, 3, 15, 4, 24, 5, 35})); assert (issame(tri(20) , {1, 3, 2, 8, 3, 15, 4, 24, 5, 35, 6, 48, 7, 63, 8, 80, 9, 99, 10, 120, 11})); assert (issame(tri(0) , {1})); assert (issame(tri(1) , {1, 3})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(tri(3) , {1, 3, 2, 8})); }
; ModuleID = 'c_code/code_129.cpp' source_filename = "c_code/code_129.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z3trii(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::vector", align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [2 x i32], align 4 %6 = alloca %"class.std::initializer_list", align 4 %7 = alloca [1 x i32], align 4 %8 = alloca i32, align 4 %9 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #14 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #14 store i32 1, ptr %5, align 4, !tbaa !3 %10 = getelementptr inbounds i32, ptr %5, i32 1 store i32 3, ptr %10, align 4, !tbaa !3 store ptr %5, ptr %4, align 4, !tbaa !7 %11 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 2, ptr %11, align 4, !tbaa !11 %12 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4) #15 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #14 %13 = icmp eq i32 %1, 0 br i1 %13, label %17, label %14 14: ; preds = %2 %15 = call i32 @llvm.smax.i32(i32 %1, i32 1) %16 = add nuw i32 %15, 1 br label %20 17: ; preds = %2 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #14 store i32 1, ptr %7, align 4, !tbaa !3 store ptr %7, ptr %6, align 4, !tbaa !7 %18 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1 store i32 1, ptr %18, align 4, !tbaa !11 %19 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %6) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #14 br label %53 20: ; preds = %38, %14 %21 = phi i32 [ 2, %14 ], [ %39, %38 ] %22 = icmp eq i32 %21, %16 br i1 %22, label %23, label %31 23: ; preds = %20 %24 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %25 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %26 = load ptr, ptr %3, align 4, !tbaa !12 store ptr %26, ptr %0, align 4, !tbaa !12 %27 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 1 %28 = load ptr, ptr %27, align 4, !tbaa !16 store ptr %28, ptr %24, align 4, !tbaa !16 %29 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 2 %30 = load ptr, ptr %29, align 4, !tbaa !17 store ptr %30, ptr %25, align 4, !tbaa !17 store ptr null, ptr %29, align 4, !tbaa !17 store ptr null, ptr %27, align 4, !tbaa !16 store ptr null, ptr %3, align 4, !tbaa !12 br label %53 31: ; preds = %20 %32 = and i32 %21, 1 %33 = icmp eq i32 %32, 0 br i1 %33, label %34, label %40 34: ; preds = %31 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #14 %35 = lshr i32 %21, 1 %36 = add nuw nsw i32 %35, 1 store i32 %36, ptr %8, align 4, !tbaa !3 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %8) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #14 %37 = add nuw i32 %21, 1 br label %38 38: ; preds = %34, %40 %39 = phi i32 [ %37, %34 ], [ %48, %40 ] br label %20, !llvm.loop !18 40: ; preds = %31 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #14 %41 = add nsw i32 %21, -1 %42 = load ptr, ptr %3, align 4, !tbaa !12 %43 = getelementptr inbounds i32, ptr %42, i32 %41 %44 = load i32, ptr %43, align 4, !tbaa !3 %45 = add nsw i32 %21, -2 %46 = getelementptr inbounds i32, ptr %42, i32 %45 %47 = load i32, ptr %46, align 4, !tbaa !3 %48 = add nuw i32 %21, 1 %49 = lshr i32 %48, 1 %50 = add nuw nsw i32 %49, 1 %51 = add i32 %50, %44 %52 = add i32 %51, %47 store i32 %52, ptr %9, align 4, !tbaa !3 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %9) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #14 br label %38 53: ; preds = %23, %17 %54 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #16 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #14 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !12 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !16 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !20 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #14 store ptr %0, ptr %3, align 4, !tbaa.struct !21, !alias.scope !22 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !11 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #15 %10 = load ptr, ptr %1, align 4, !tbaa !7 %11 = load ptr, ptr %4, align 4, !tbaa !16 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !25 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !16 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !36 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #16 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #14 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !16 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !17 %7 = icmp ult ptr %4, %6 br i1 %7, label %8, label %11 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !3 store i32 %9, ptr %4, align 4, !tbaa !3 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !16 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #15 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #3 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #14 store ptr %0, ptr %2, align 4, !tbaa !17 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #16 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #14 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #15, !noalias !40 store ptr %7, ptr %0, align 4, !tbaa !12 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !16 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !17 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !36, !range !43, !noundef !44 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #16 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #5 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #17 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #6 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #14 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #15 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #15 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !45 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #3 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #17 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #6 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #14 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #16 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #8 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #4 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !47 %3 = load ptr, ptr %2, align 4, !tbaa !12 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 tail call void @_ZdlPv(ptr noundef nonnull %3) #20 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #9 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #10 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #14 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !16 %7 = load ptr, ptr %0, align 4, !tbaa !12 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #15 %14 = load ptr, ptr %5, align 4, !tbaa !16 %15 = load ptr, ptr %0, align 4, !tbaa !12 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !48 %23 = load i32, ptr %1, align 4, !tbaa !3 store i32 %23, ptr %22, align 4, !tbaa !3 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !48 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #15 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #16 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #14 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #10 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !17 %8 = load ptr, ptr %0, align 4, !tbaa !12 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !20 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !17 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #15, !noalias !52 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !55 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !48 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !56 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !17 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !16 %5 = load ptr, ptr %0, align 4, !tbaa !12 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !56 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !3, !noalias !57 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !3, !noalias !57 br label %8, !llvm.loop !62 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !56 %17 = load ptr, ptr %0, align 4, !tbaa !17 store ptr %10, ptr %0, align 4, !tbaa !17 store ptr %17, ptr %6, align 4, !tbaa !17 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !17 %20 = load ptr, ptr %18, align 4, !tbaa !17 store ptr %20, ptr %3, align 4, !tbaa !17 store ptr %19, ptr %18, align 4, !tbaa !17 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !17 %24 = load ptr, ptr %22, align 4, !tbaa !17 store ptr %24, ptr %21, align 4, !tbaa !17 store ptr %23, ptr %22, align 4, !tbaa !17 %25 = load ptr, ptr %6, align 4, !tbaa !56 store ptr %25, ptr %1, align 4, !tbaa !55 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #3 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #16 %2 = load ptr, ptr %0, align 4, !tbaa !55 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #20 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !56 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #16 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !48 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !48 br label %5, !llvm.loop !63 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #13 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #13 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #9 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #14 = { nounwind } attributes #15 = { minsize optsize } attributes #16 = { minsize nounwind optsize } attributes #17 = { minsize noreturn optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } attributes #20 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSSt16initializer_listIiE", !9, i64 0, !10, i64 4} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"long", !5, i64 0} !11 = !{!8, !10, i64 4} !12 = !{!13, !9, i64 0} !13 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !14, i64 8} !14 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !15, i64 0} !15 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !16 = !{!13, !9, i64 4} !17 = !{!9, !9, i64 0} !18 = distinct !{!18, !19} !19 = !{!"llvm.loop.mustprogress"} !20 = !{!15, !9, i64 0} !21 = !{i64 0, i64 4, !17} !22 = !{!23} !23 = distinct !{!23, !24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !25 = !{!26, !28, !30, !32, !34} !26 = distinct !{!26, !27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !28 = distinct !{!28, !29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !29 = distinct !{!29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !30 = distinct !{!30, !31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !32 = distinct !{!32, !33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !34 = distinct !{!34, !35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !36 = !{!37, !39, i64 4} !37 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !38, i64 0, !39, i64 4} !38 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !9, i64 0} !39 = !{!"bool", !5, i64 0} !40 = !{!41} !41 = distinct !{!41, !42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !42 = distinct !{!42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !43 = !{i8 0, i8 2} !44 = !{} !45 = !{!46, !46, i64 0} !46 = !{!"vtable pointer", !6, i64 0} !47 = !{!38, !9, i64 0} !48 = !{!49, !9, i64 8} !49 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !9, i64 8, !50, i64 12} !50 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !15, i64 0, !51, i64 4} !51 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !9, i64 0} !52 = !{!53} !53 = distinct !{!53, !54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !54 = distinct !{!54, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !55 = !{!49, !9, i64 0} !56 = !{!49, !9, i64 4} !57 = !{!58, !60} !58 = distinct !{!58, !59, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !59 = distinct !{!59, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !60 = distinct !{!60, !61, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !61 = distinct !{!61, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !62 = distinct !{!62, !19} !63 = distinct !{!63, !19}
(module $code_129.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func (param i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ (type 0))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 6))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 2))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 4)) (func $tri_int_ (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const -64 i32.add local.tee 2 global.set $__stack_pointer local.get 2 i32.const 2 i32.store offset=48 local.get 2 i64.const 12884901889 i64.store offset=36 align=4 local.get 2 local.get 2 i32.const 36 i32.add i32.store offset=44 local.get 2 local.get 2 i64.load offset=44 align=4 i64.store offset=16 local.get 2 i32.const 52 i32.add local.get 2 i32.const 16 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ local.set 3 block ;; label = @1 local.get 1 if ;; label = @2 i32.const 1 local.get 1 local.get 1 i32.const 1 i32.le_s select i32.const 1 i32.add local.set 4 i32.const 2 local.set 1 loop ;; label = @3 local.get 1 local.get 4 i32.eq if ;; label = @4 local.get 0 local.get 3 i32.load i32.store local.get 0 local.get 3 i32.load offset=4 i32.store offset=4 local.get 0 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i32.const 0 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 br 3 (;@1;) end local.get 1 i32.const 1 i32.and if ;; label = @4 local.get 2 local.get 3 i32.load local.get 1 i32.const 2 i32.shl i32.add local.tee 5 i32.const 4 i32.sub i32.load local.get 1 i32.const 1 i32.add local.tee 1 i32.const 1 i32.shr_u i32.add local.get 5 i32.const 8 i32.sub i32.load i32.add i32.const 1 i32.add i32.store offset=36 local.get 3 local.get 2 i32.const 36 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::push_back_abi:v160006__int&&_ else local.get 2 local.get 1 i32.const 1 i32.shr_u i32.const 1 i32.add i32.store offset=36 local.get 3 local.get 2 i32.const 36 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::push_back_abi:v160006__int&&_ local.get 1 i32.const 1 i32.add local.set 1 end br 0 (;@3;) end unreachable end local.get 2 i32.const 1 i32.store offset=32 local.get 2 i32.const 1 i32.store offset=36 local.get 2 local.get 2 i32.const 36 i32.add i32.store offset=28 local.get 2 local.get 2 i64.load offset=28 align=4 i64.store offset=8 local.get 0 local.get 2 i32.const 8 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ drop end global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 3 i32.store offset=12 local.get 0 i32.const 12 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 2 i32.const -64 i32.sub global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ (type 2) (param i32 i32) (result i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 3 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 2 if ;; label = @1 local.get 2 i32.const 1073741824 i32.ge_u if ;; label = @2 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end local.get 0 local.get 2 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.tee 4 i32.store offset=4 local.get 0 local.get 4 i32.store local.get 0 local.get 4 local.get 2 i32.const 2 i32.shl local.tee 2 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 1 i32.load local.get 2 local.tee 1 call $memmove local.get 1 i32.add i32.store offset=4 end local.get 3 i32.const 1 i32.store8 offset=12 local.get 3 i32.const 8 i32.add local.tee 1 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ end local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $std::__2::vector<int__std::__2::allocator<int>>::push_back_abi:v160006__int&&_ (type 0) (param i32 i32) (local i32) local.get 0 i32.load offset=4 local.tee 2 local.get 0 i32.load offset=8 i32.lt_u if ;; label = @1 local.get 2 local.get 1 i32.load i32.store local.get 0 local.get 2 i32.const 4 i32.add i32.store offset=4 return end local.get 0 local.get 1 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 6 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 2 i32.const 1073741824 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 3 i32.const 1 i32.shr_s local.tee 4 local.get 2 local.get 2 local.get 4 i32.lt_u select local.get 3 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 6 i32.const 12 i32.add local.tee 2 i32.const 0 i32.store offset=12 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=16 local.get 4 if ;; label = @1 local.get 4 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=8 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=12 local.get 2 local.get 5 i32.store offset=4 local.get 2 i32.load offset=8 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=8 local.get 2 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=4 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=4 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=8 i32.store offset=4 local.get 2 local.get 1 i32.store offset=8 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=12 i32.store offset=8 local.get 2 local.get 1 i32.store offset=12 local.get 2 local.get 2 i32.load offset=4 i32.store local.get 2 i32.load offset=4 local.set 1 local.get 2 i32.load offset=8 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=8 br 1 (;@1;) end end local.get 2 i32.load local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 6 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ (type 3) (param i32) (local i32) local.get 0 i32.load local.tee 1 i32.load local.tee 0 if ;; label = @1 local.get 1 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end) (func $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const (type 4) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 3 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ (type 1) (param i32) (result i32) (local i32) local.get 0 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 i32.const 2 i32.shl call $operator_new_unsigned_long_) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z3trii" (func $tri_int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/131
/* Given a positive integer n, return the product of the odd digits. Return 0 if all digits are even. For example: digits(1) == 1 digits(4) == 0 digits(235) == 15 */ #include<stdio.h> #include<string> using namespace std; int digits(int n){
#include<stdio.h> #include<math.h> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> int digits(int n){
int prod=1,has=0; string s=to_string(n); for (int i=0;i<s.length();i++) if (s[i]%2==1) { has=1; prod=prod*(s[i]-48); } if (has==0) return 0; return prod; }
#undef NDEBUG #include<assert.h> int main(){ assert (digits(5) == 5); assert (digits(54) == 5); assert (digits(120) ==1); assert (digits(5014) == 5); assert (digits(98765) == 315); assert (digits(5576543) == 2625); assert (digits(2468) == 0); }
#undef NDEBUG #include<assert.h> int main(){ assert (digits(1) == 1); assert (digits(4) == 0); assert (digits(235) ==15); }
; ModuleID = 'c_code/code_130.cpp' source_filename = "c_code/code_130.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } ; Function Attrs: minsize mustprogress optsize define noundef i32 @_Z6digitsi(i32 noundef %0) local_unnamed_addr #0 { %2 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #4 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %2, i32 noundef %0) #5 %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 %7 = load i32, ptr %6, align 4 %8 = zext i8 %4 to i32 %9 = select i1 %5, i32 %7, i32 %8 %10 = load ptr, ptr %2, align 4 %11 = select i1 %5, ptr %10, ptr %2 br label %12 12: ; preds = %21, %1 %13 = phi i32 [ 1, %1 ], [ %29, %21 ] %14 = phi i32 [ 0, %1 ], [ %30, %21 ] %15 = phi i32 [ 0, %1 ], [ %31, %21 ] %16 = icmp eq i32 %15, %9 br i1 %16, label %17, label %21 17: ; preds = %12 %18 = icmp eq i32 %14, 0 %19 = select i1 %18, i32 0, i32 %13 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #6 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #4 ret i32 %19 21: ; preds = %12 %22 = getelementptr inbounds i8, ptr %11, i32 %15 %23 = load i8, ptr %22, align 1, !tbaa !3 %24 = sext i8 %23 to i32 %25 = and i32 %24, -2147483647 %26 = icmp eq i32 %25, 1 %27 = add nsw i32 %24, -48 %28 = select i1 %26, i32 %27, i32 1 %29 = mul nsw i32 %28, %13 %30 = select i1 %26, i32 1, i32 %14 %31 = add nuw i32 %15, 1 br label %12, !llvm.loop !6 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { nounwind } attributes #5 = { minsize optsize } attributes #6 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
(module $code_130.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func)) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 2)) (func $digits_int_ (type 0) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i32.const 4 i32.add local.tee 1 local.get 0 call $std::__2::to_string_int_ local.get 2 i32.load offset=8 local.get 2 i32.load8_u offset=15 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s local.tee 0 select local.set 4 local.get 2 i32.load offset=4 local.get 1 local.get 0 select local.set 5 i32.const 1 local.set 1 i32.const 0 local.set 0 loop (result i32) ;; label = @1 local.get 0 local.get 4 i32.eq if (result i32) ;; label = @2 local.get 2 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 1 i32.const 0 local.get 3 select else local.get 1 local.get 0 local.get 5 i32.add i32.load8_s local.tee 1 i32.const 48 i32.sub i32.const 1 local.get 1 i32.const -2147483647 i32.and i32.const 1 i32.eq local.tee 6 select i32.mul local.set 1 i32.const 1 local.get 3 local.get 6 select local.set 3 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z6digitsi" (func $digits_int_)))
CPP/132
/* Create a function that takes a string as input which contains only square brackets. The function should return true if and only if there is a valid subsequence of brackets where at least one bracket in the subsequence is nested. is_nested("[[]]") ➞ true is_nested("[]]]]]]][[[[[]") ➞ false is_nested("[][]") ➞ false is_nested("[]") ➞ false is_nested("[[][]]") ➞ true is_nested("[[]][[") ➞ true */ #include<stdio.h> #include<string> using namespace std; bool is_nested(string str){
#include<stdio.h> #include<math.h> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> bool is_nested(string str){
int count=0,maxcount=0; for (int i=0;i<str.length();i++) { if (str[i]=='[') count+=1; if (str[i]==']') count-=1; if (count<0) count=0; if (count>maxcount) maxcount=count; if (count<=maxcount-2) return true; } return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (is_nested("[[]]") == true); assert (is_nested("[]]]]]]][[[[[]") == false); assert (is_nested("[][]") == false); assert (is_nested(("[]")) == false); assert (is_nested("[[[[]]]]") == true); assert (is_nested("[]]]]]]]]]]") == false); assert (is_nested("[][][[]]") == true); assert (is_nested("[[]") == false); assert (is_nested("[]]") == false); assert (is_nested("[[]][[") == true); assert (is_nested("[[][]]") == true); assert (is_nested("") == false); assert (is_nested("[[[[[[[[") == false); assert (is_nested("]]]]]]]]") == false); }
#undef NDEBUG #include<assert.h> int main(){ assert (is_nested("[[]]") == true); assert (is_nested("[]]]]]]][[[[[]") == false); assert (is_nested("[][]") == false); assert (is_nested("[]") == false); assert (is_nested("[[]][[") == true); assert (is_nested("[[][]]") == true); }
; ModuleID = 'c_code/code_131.cpp' source_filename = "c_code/code_131.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef zeroext i1 @_Z9is_nestedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %3 = load i8, ptr %2, align 1 %4 = icmp slt i8 %3, 0 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %6 = load i32, ptr %5, align 4 %7 = zext i8 %3 to i32 %8 = select i1 %4, i32 %6, i32 %7 br label %9 9: ; preds = %14, %1 %10 = phi i32 [ 0, %1 ], [ %25, %14 ] %11 = phi i32 [ 0, %1 ], [ %26, %14 ] %12 = phi i32 [ 0, %1 ], [ %29, %14 ] %13 = icmp eq i32 %12, %8 br i1 %13, label %30, label %14 14: ; preds = %9 %15 = load ptr, ptr %0, align 4 %16 = select i1 %4, ptr %15, ptr %0 %17 = getelementptr inbounds i8, ptr %16, i32 %12 %18 = load i8, ptr %17, align 1, !tbaa !3 %19 = icmp eq i8 %18, 91 %20 = zext i1 %19 to i32 %21 = add nuw nsw i32 %10, %20 %22 = icmp eq i8 %18, 93 %23 = sext i1 %22 to i32 %24 = add nsw i32 %21, %23 %25 = tail call i32 @llvm.smax.i32(i32 %24, i32 0) %26 = tail call i32 @llvm.smax.i32(i32 %25, i32 %11) %27 = add nsw i32 %26, -2 %28 = icmp sgt i32 %25, %27 %29 = add nuw i32 %12, 1 br i1 %28, label %9, label %30, !llvm.loop !6 30: ; preds = %9, %14 %31 = icmp ult i32 %12, %8 ret i1 %31 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
(module $code_131.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $is_nested_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 1 local.get 1 i32.extend8_s i32.const 0 i32.lt_s local.tee 6 select local.set 3 loop ;; label = @1 block ;; label = @2 local.get 3 local.get 5 local.tee 1 i32.eq if ;; label = @3 local.get 3 local.set 1 br 1 (;@2;) end local.get 1 i32.const 1 i32.add local.set 5 local.get 2 local.get 0 i32.load local.get 0 local.get 6 select local.get 1 i32.add i32.load8_u local.tee 7 i32.const 91 i32.eq i32.add local.get 7 i32.const 93 i32.eq i32.sub local.tee 2 i32.const 0 local.get 2 i32.const 0 i32.gt_s select local.tee 2 local.get 2 local.get 4 local.get 2 local.get 4 i32.gt_s select local.tee 4 i32.const 2 i32.sub i32.gt_s br_if 1 (;@1;) end end local.get 1 local.get 3 i32.lt_u) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z9is_nestedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $is_nested_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)))
CPP/133
/* You are given a vector of numbers. You need to return the sum of squared numbers in the given vector, round each element in the vector to the upper int(Ceiling) first. Examples: For lst = {1,2,3} the output should be 14 For lst = {1,4,9} the output should be 98 For lst = {1,3,5,7} the output should be 84 For lst = {1.4,4.2,0} the output should be 29 For lst = {-2.4,1,1} the output should be 6 */ #include<stdio.h> #include<math.h> #include<vector> using namespace std; int sum_squares(vector<float> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> int sum_squares(vector<float> lst){
int sum=0; for (int i=0;i<lst.size();i++) sum+=ceil(lst[i])*ceil(lst[i]); return sum; }
#undef NDEBUG #include<assert.h> int main(){ assert (sum_squares({1,2,3})==14); assert (sum_squares({1.0,2,3})==14); assert (sum_squares({1,3,5,7})==84); assert (sum_squares({1.4,4.2,0})==29); assert (sum_squares({-2.4,1,1})==6); assert (sum_squares({100,1,15,2})==10230); assert (sum_squares({10000,10000})==200000000); assert (sum_squares({-1.4,4.6,6.3})==75); assert (sum_squares({-1.4,17.9,18.9,19.9})==1086); assert (sum_squares({0})==0); assert (sum_squares({-1})==1); assert (sum_squares({-1,1,0})==2); }
#undef NDEBUG #include<assert.h> int main(){ assert (sum_squares({1,2,3})==14); assert (sum_squares({1,4,9})==98); assert (sum_squares({1,3,5,7})==84); assert (sum_squares({1.4,4.2,0})==29); assert (sum_squares({-2.4,1,1})==6); }
; ModuleID = 'c_code/code_132.cpp' source_filename = "c_code/code_132.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z11sum_squaresNSt3__26vectorIfNS_9allocatorIfEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 br label %9 9: ; preds = %14, %1 %10 = phi i32 [ 0, %1 ], [ %20, %14 ] %11 = phi i32 [ 0, %1 ], [ %21, %14 ] %12 = icmp eq i32 %11, %8 br i1 %12, label %13, label %14 13: ; preds = %9 ret i32 %10 14: ; preds = %9 %15 = getelementptr inbounds float, ptr %4, i32 %11 %16 = load float, ptr %15, align 4, !tbaa !11 %17 = tail call float @llvm.ceil.f32(float %16) %18 = sitofp i32 %10 to float %19 = tail call float @llvm.fmuladd.f32(float %17, float %17, float %18) %20 = fptosi float %19 to i32 %21 = add nuw i32 %11, 1 br label %9, !llvm.loop !13 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare float @llvm.fmuladd.f32(float, float, float) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare float @llvm.ceil.f32(float) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIfNS_9allocatorIfEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPfNS_9allocatorIfEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPfLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"float", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_132.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $sum_squares_std::__2::vector<float__std::__2::allocator<float>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32 f32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 3 i32.sub i32.const 2 i32.shr_s local.set 4 i32.const 0 local.set 0 loop ;; label = @1 local.get 0 local.get 4 i32.ne if ;; label = @2 local.get 0 i32.const 1 i32.add local.set 2 local.get 3 local.get 0 i32.const 2 i32.shl i32.add f32.load f32.ceil local.tee 5 local.get 5 f32.mul local.get 1 f32.convert_i32_s f32.add local.tee 5 f32.abs f32.const 0x1p+31 (;=2.14748e+09;) f32.lt if ;; label = @3 local.get 5 i32.trunc_f32_s local.set 1 local.get 2 local.set 0 br 2 (;@1;) else i32.const -2147483648 local.set 1 local.get 2 local.set 0 br 2 (;@1;) end unreachable end end local.get 1) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z11sum_squaresNSt3__26vectorIfNS_9allocatorIfEEEE" (func $sum_squares_std::__2::vector<float__std::__2::allocator<float>>_)))
CPP/134
/* Create a function that returns true if the last character of a given string is an alphabetical character and is not a part of a word, and false otherwise. Note: "word" is a group of characters separated by space. Examples: check_if_last_char_is_a_letter("apple pie") ➞ false check_if_last_char_is_a_letter("apple pi e") ➞ true check_if_last_char_is_a_letter("apple pi e ") ➞ false check_if_last_char_is_a_letter("") ➞ false */ #include<stdio.h> #include<string> using namespace std; bool check_if_last_char_is_a_letter(string txt){
#include<stdio.h> #include<math.h> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> bool check_if_last_char_is_a_letter(string txt){
if (txt.length()==0) return false; char chr=txt[txt.length()-1]; if (chr<65 or (chr>90 and chr<97) or chr>122) return false; if (txt.length()==1) return true; chr=txt[txt.length()-2]; if ((chr>=65 and chr<=90) or (chr>=97 and chr<=122)) return false; return true; }
#undef NDEBUG #include<assert.h> int main(){ assert (check_if_last_char_is_a_letter("apple") == false); assert (check_if_last_char_is_a_letter("apple pi e") == true); assert (check_if_last_char_is_a_letter("eeeee") == false); assert (check_if_last_char_is_a_letter("A") == true); assert (check_if_last_char_is_a_letter("Pumpkin pie ") == false); assert (check_if_last_char_is_a_letter("Pumpkin pie 1") == false); assert (check_if_last_char_is_a_letter("") == false); assert (check_if_last_char_is_a_letter("eeeee e ") == false); assert (check_if_last_char_is_a_letter("apple pie") == false); assert (check_if_last_char_is_a_letter("apple pi e ") == false); }
#undef NDEBUG #include<assert.h> int main(){ assert (check_if_last_char_is_a_letter("apple pi e") == true); assert (check_if_last_char_is_a_letter("") == false); assert (check_if_last_char_is_a_letter("apple pie") == false); assert (check_if_last_char_is_a_letter("apple pi e ") == false); }
; ModuleID = 'c_code/code_133.cpp' source_filename = "c_code/code_133.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef zeroext i1 @_Z30check_if_last_char_is_a_letterNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %3 = load i8, ptr %2, align 1 %4 = icmp slt i8 %3, 0 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %6 = load i32, ptr %5, align 4 %7 = zext i8 %3 to i32 %8 = select i1 %4, i32 %6, i32 %7 %9 = icmp eq i32 %8, 0 br i1 %9, label %34, label %10 10: ; preds = %1 %11 = add i32 %8, -1 %12 = load ptr, ptr %0, align 4 %13 = select i1 %4, ptr %12, ptr %0 %14 = getelementptr inbounds i8, ptr %13, i32 %11 %15 = load i8, ptr %14, align 1, !tbaa !3 %16 = icmp slt i8 %15, 65 br i1 %16, label %34, label %17 17: ; preds = %10 %18 = icmp sgt i8 %15, 90 br i1 %18, label %28, label %19 19: ; preds = %28, %17 %20 = icmp eq i32 %8, 1 br i1 %20, label %34, label %21 21: ; preds = %19 %22 = add i32 %8, -2 %23 = getelementptr inbounds i8, ptr %13, i32 %22 %24 = load i8, ptr %23, align 1, !tbaa !3 %25 = and i8 %24, -33 %26 = add i8 %25, -91 %27 = icmp ult i8 %26, -26 br label %34 28: ; preds = %17 %29 = add i8 %15, -91 %30 = zext i8 %29 to i64 %31 = lshr i64 133143986239, %30 %32 = and i64 %31, 1 %33 = icmp eq i64 %32, 0 br i1 %33, label %19, label %34 34: ; preds = %28, %21, %10, %19, %1 %35 = phi i1 [ false, %1 ], [ false, %10 ], [ true, %19 ], [ %27, %21 ], [ false, %28 ] ret i1 %35 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"}
(module $code_133.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $check_if_last_char_is_a_letter_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 1) (param i32) (result i32) (local i32 i32 i32) block ;; label = @1 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 1 local.get 1 i32.extend8_s local.tee 3 i32.const 0 i32.lt_s select local.tee 1 i32.eqz br_if 0 (;@1;) local.get 1 local.get 0 i32.load local.get 0 local.get 3 i32.const 0 i32.lt_s select i32.add local.tee 3 i32.const 1 i32.sub i32.load8_s local.tee 0 i32.const 65 i32.lt_s i64.const 133143986239 local.get 0 i32.const 91 i32.sub i64.extend_i32_u i64.shr_u i64.const 1 i64.and i64.eqz i32.eqz local.get 0 i32.const 90 i32.gt_u i32.and i32.or br_if 0 (;@1;) i32.const 1 local.set 2 local.get 1 i32.const 1 i32.eq br_if 0 (;@1;) local.get 3 i32.const 2 i32.sub i32.load8_u i32.const 223 i32.and i32.const 91 i32.sub i32.const 255 i32.and i32.const 230 i32.lt_u return end local.get 2) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z30check_if_last_char_is_a_letterNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $check_if_last_char_is_a_letter_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)))
CPP/135
/* Create a function which returns the largest index of an element which is not greater than or equal to the element immediately preceding it. If no such element exists then return -1. The given vector will not contain duplicate values. Examples: can_arrange({1,2,4,3,5}) = 3 can_arrange({1,2,3}) = -1 */ #include<stdio.h> #include<vector> using namespace std; int can_arrange(vector<int> arr){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> int can_arrange(vector<int> arr){
int max=-1; for (int i=0;i<arr.size();i++) if (arr[i]<=i) max=i; return max; }
#undef NDEBUG #include<assert.h> int main(){ assert (can_arrange({1,2,4,3,5})==3); assert (can_arrange({1,2,4,5})==-1); assert (can_arrange({1,4,2,5,6,7,8,9,10})==2); assert (can_arrange({4,8,5,7,3})==4); assert (can_arrange({})==-1); }
#undef NDEBUG #include<assert.h> int main(){ assert (can_arrange({1,2,4,3,5})==3); assert (can_arrange({1,2,3})==-1); }
; ModuleID = 'c_code/code_134.cpp' source_filename = "c_code/code_134.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z11can_arrangeNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 br label %9 9: ; preds = %14, %1 %10 = phi i32 [ -1, %1 ], [ %18, %14 ] %11 = phi i32 [ 0, %1 ], [ %19, %14 ] %12 = icmp eq i32 %11, %8 br i1 %12, label %13, label %14 13: ; preds = %9 ret i32 %10 14: ; preds = %9 %15 = getelementptr inbounds i32, ptr %4, i32 %11 %16 = load i32, ptr %15, align 4, !tbaa !11 %17 = icmp sgt i32 %16, %11 %18 = select i1 %17, i32 %10, i32 %11 %19 = add nuw i32 %11, 1 br label %9, !llvm.loop !13 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_134.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $can_arrange_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 2 i32.sub i32.const 2 i32.shr_s local.set 3 i32.const 0 local.set 0 i32.const -1 local.set 1 loop (result i32) ;; label = @1 local.get 0 local.get 3 i32.eq if (result i32) ;; label = @2 local.get 1 else local.get 1 local.get 0 local.get 2 local.get 0 i32.const 2 i32.shl i32.add i32.load local.get 0 i32.gt_s select local.set 1 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z11can_arrangeNSt3__26vectorIiNS_9allocatorIiEEEE" (func $can_arrange_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/136
/* Create a function that returns a vector (a, b), where "a" is the largest of negative integers, and "b" is the smallest of positive integers in a vector. If there is no negative or positive integers, return them as 0. Examples: largest_smallest_integers({2, 4, 1, 3, 5, 7}) == {0, 1} largest_smallest_integers({}) == {0,0} largest_smallest_integers({0}) == {0,0} */ #include<stdio.h> #include<vector> using namespace std; vector<int> largest_smallest_integers(vector<int> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> largest_smallest_integers(vector<int> lst){
int maxneg=0,minpos=0; for (int i=0;i<lst.size();i++) { if (lst[i]<0 and (maxneg==0 or lst[i]>maxneg)) maxneg=lst[i]; if (lst[i]>0 and (minpos==0 or lst[i]<minpos)) minpos=lst[i]; } return {maxneg,minpos}; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(largest_smallest_integers({2, 4, 1, 3, 5, 7}) , {0, 1})); assert (issame(largest_smallest_integers({2, 4, 1, 3, 5, 7, 0}) , {0, 1})); assert (issame(largest_smallest_integers({1, 3, 2, 4, 5, 6, -2}) , {-2, 1})); assert (issame(largest_smallest_integers({4, 5, 3, 6, 2, 7, -7}) , {-7, 2})); assert (issame(largest_smallest_integers({7, 3, 8, 4, 9, 2, 5, -9}) , {-9, 2})); assert (issame(largest_smallest_integers({}) , {0, 0})); assert (issame(largest_smallest_integers({0}) , {0, 0})); assert (issame(largest_smallest_integers({-1, -3, -5, -6}) , {-1, 0})); assert (issame(largest_smallest_integers({-1, -3, -5, -6, 0}) , {-1, 0})); assert (issame(largest_smallest_integers({-6, -4, -4, -3, 1}) , {-3, 1})); assert (issame(largest_smallest_integers({-6, -4, -4, -3, -100, 1}) , {-3, 1})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(largest_smallest_integers({2, 4, 1, 3, 5, 7}) , {0, 1})); assert (issame(largest_smallest_integers({}) , {0, 0})); assert (issame(largest_smallest_integers({0}) , {0, 0})); }
; ModuleID = 'c_code/code_135.cpp' source_filename = "c_code/code_135.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize mustprogress optsize define void @_Z25largest_smallest_integersNSt3__26vectorIiNS_9allocatorIiEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::initializer_list", align 4 %4 = alloca [2 x i32], align 4 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !3 %7 = load ptr, ptr %1, align 4, !tbaa !10 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 br label %12 12: ; preds = %37, %2 %13 = phi i32 [ 0, %2 ], [ %38, %37 ] %14 = phi i32 [ 0, %2 ], [ %39, %37 ] %15 = phi i32 [ 0, %2 ], [ %40, %37 ] %16 = icmp eq i32 %15, %11 br i1 %16, label %17, label %21 17: ; preds = %12 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10 store i32 %13, ptr %4, align 4, !tbaa !11 %18 = getelementptr inbounds i32, ptr %4, i32 1 store i32 %14, ptr %18, align 4, !tbaa !11 store ptr %4, ptr %3, align 4, !tbaa !13 %19 = getelementptr inbounds %"class.std::initializer_list", ptr %3, i32 0, i32 1 store i32 2, ptr %19, align 4, !tbaa !16 %20 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %3) #11 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10 ret void 21: ; preds = %12 %22 = getelementptr inbounds i32, ptr %7, i32 %15 %23 = load i32, ptr %22, align 4, !tbaa !11 %24 = icmp slt i32 %23, 0 br i1 %24, label %25, label %30 25: ; preds = %21 %26 = icmp eq i32 %13, 0 %27 = icmp sgt i32 %23, %13 %28 = or i1 %26, %27 %29 = select i1 %28, i32 %23, i32 %13 br label %37 30: ; preds = %21 %31 = icmp eq i32 %23, 0 br i1 %31, label %37, label %32 32: ; preds = %30 %33 = icmp eq i32 %14, 0 %34 = icmp slt i32 %23, %14 %35 = or i1 %33, %34 %36 = select i1 %35, i32 %23, i32 %14 br label %37 37: ; preds = %32, %25, %30 %38 = phi i32 [ %13, %30 ], [ %29, %25 ], [ %13, %32 ] %39 = phi i32 [ %14, %30 ], [ %14, %25 ], [ %36, %32 ] %40 = add nuw i32 %15, 1 br label %12, !llvm.loop !17 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !19 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10 store ptr %0, ptr %3, align 4, !tbaa.struct !20, !alias.scope !22 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !16 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #11 %10 = load ptr, ptr %1, align 4, !tbaa !13 %11 = load ptr, ptr %4, align 4, !tbaa !3 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !25 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !3 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !36 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #12 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #13 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #11, !noalias !40 store ptr %7, ptr %0, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !3 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !21 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !36, !range !43, !noundef !44 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #12 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #4 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #13 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #5 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #10 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #11 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #14 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #6 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #11 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !45 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #3 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #6 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #13 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #15 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #5 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #10 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #12 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #14 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #8 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !47 %3 = load ptr, ptr %2, align 4, !tbaa !10 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef nonnull %3) #16 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #9 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #9 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { nounwind } attributes #11 = { minsize optsize } attributes #12 = { minsize nounwind optsize } attributes #13 = { minsize noreturn optsize } attributes #14 = { noreturn } attributes #15 = { builtin minsize optsize allocsize(0) } attributes #16 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = !{!14, !5, i64 0} !14 = !{!"_ZTSSt16initializer_listIiE", !5, i64 0, !15, i64 4} !15 = !{!"long", !6, i64 0} !16 = !{!14, !15, i64 4} !17 = distinct !{!17, !18} !18 = !{!"llvm.loop.mustprogress"} !19 = !{!9, !5, i64 0} !20 = !{i64 0, i64 4, !21} !21 = !{!5, !5, i64 0} !22 = !{!23} !23 = distinct !{!23, !24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !25 = !{!26, !28, !30, !32, !34} !26 = distinct !{!26, !27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !28 = distinct !{!28, !29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !29 = distinct !{!29, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !30 = distinct !{!30, !31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !32 = distinct !{!32, !33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !34 = distinct !{!34, !35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !36 = !{!37, !39, i64 4} !37 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !38, i64 0, !39, i64 4} !38 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !39 = !{!"bool", !6, i64 0} !40 = !{!41} !41 = distinct !{!41, !42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !42 = distinct !{!42, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !43 = !{i8 0, i8 2} !44 = !{} !45 = !{!46, !46, i64 0} !46 = !{!"vtable pointer", !7, i64 0} !47 = !{!38, !5, i64 0}
(module $code_135.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32) (result i32))) (type (;4;) (func (param i32))) (type (;5;) (func)) (type (;6;) (func (param i32 i32))) (import "env" "memmove" (func $memmove (type 1))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 3))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $largest_smallest_integers_std::__2::vector<int__std::__2::allocator<int>>_ (type 6) (param i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 6 i32.sub i32.const 2 i32.shr_s local.set 7 i32.const 0 local.set 1 loop ;; label = @1 local.get 1 local.get 7 i32.ne if ;; label = @2 block ;; label = @3 local.get 6 local.get 1 i32.const 2 i32.shl i32.add i32.load local.tee 2 i32.const 0 i32.lt_s if ;; label = @4 local.get 2 local.get 4 local.get 2 local.get 4 i32.gt_s select local.get 2 local.get 4 select local.set 4 br 1 (;@3;) end local.get 2 i32.eqz br_if 0 (;@3;) local.get 2 local.get 5 local.get 2 local.get 5 i32.lt_s select local.get 2 local.get 5 select local.set 5 end local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 2 i32.store offset=28 local.get 3 local.get 5 i32.store offset=20 local.get 3 local.get 4 i32.store offset=16 local.get 3 local.get 3 i32.const 16 i32.add i32.store offset=24 local.get 3 local.get 3 i64.load offset=24 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 1 local.get 0 i32.store offset=8 local.get 3 i32.load offset=12 local.tee 2 if ;; label = @1 local.get 2 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 2 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 3 local.get 2 i32.const 8 i32.add i32.store local.get 3 local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 2 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 local.get 2 i32.const 2 i32.shl local.tee 2 call $operator_new_unsigned_long_ local.tee 4 i32.store offset=4 local.get 0 local.get 4 i32.store local.get 0 local.get 2 local.get 4 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 3 i32.load offset=8 local.get 2 call $memmove local.get 2 i32.add i32.store offset=4 end local.get 1 i32.const 1 i32.store8 offset=12 local.get 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load offset=8 local.tee 2 i32.load local.tee 0 if ;; label = @2 local.get 2 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end end local.get 1 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z25largest_smallest_integersNSt3__26vectorIiNS_9allocatorIiEEEE" (func $largest_smallest_integers_std::__2::vector<int__std::__2::allocator<int>>_)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/138
/* Evaluate whether the given number n can be written as the sum of exactly 4 positive even numbers Example is_equal_to_sum_even(4) == false is_equal_to_sum_even(6) == false is_equal_to_sum_even(8) == true */ #include<stdio.h> using namespace std; bool is_equal_to_sum_even(int n){
#include<stdio.h> #include<math.h> #include<algorithm> using namespace std; #include<stdlib.h> bool is_equal_to_sum_even(int n){
if (n%2==0 and n>=8) return true; return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (is_equal_to_sum_even(4) == false); assert (is_equal_to_sum_even(6) == false); assert (is_equal_to_sum_even(8) == true); assert (is_equal_to_sum_even(10) == true); assert (is_equal_to_sum_even(11) == false); assert (is_equal_to_sum_even(12) == true); assert (is_equal_to_sum_even(13) == false); assert (is_equal_to_sum_even(16) == true); }
#undef NDEBUG #include<assert.h> int main(){ assert (is_equal_to_sum_even(4) == false); assert (is_equal_to_sum_even(6) == false); assert (is_equal_to_sum_even(8) == true); }
; ModuleID = 'c_code/code_136.cpp' source_filename = "c_code/code_136.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) define noundef zeroext i1 @_Z20is_equal_to_sum_eveni(i32 noundef %0) local_unnamed_addr #0 { %2 = and i32 %0, 1 %3 = icmp eq i32 %2, 0 %4 = icmp sgt i32 %0, 7 %5 = and i1 %4, %3 ret i1 %5 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"}
(module $code_136.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (func $__wasm_call_ctors (type 0)) (func $is_equal_to_sum_even_int_ (type 1) (param i32) (result i32) local.get 0 i32.const 1 i32.and i32.eqz local.get 0 i32.const 7 i32.gt_s i32.and) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z20is_equal_to_sum_eveni" (func $is_equal_to_sum_even_int_)))
CPP/139
/* The Brazilian factorial is defined as: brazilian_factorial(n) = n! * (n-1)! * (n-2)! * ... * 1! where n > 0 For example: >>> special_factorial(4) 288 The function will receive an integer as input and should return the special factorial of this integer. */ #include<stdio.h> using namespace std; long long special_factorial(int n){
#include<stdio.h> #include<math.h> #include<algorithm> using namespace std; #include<stdlib.h> long long special_factorial(int n){
long long fact=1,bfact=1; for (int i=1;i<=n;i++) { fact=fact*i; bfact=bfact*fact; } return bfact; }
#undef NDEBUG #include<assert.h> int main(){ assert (special_factorial(4) == 288); assert (special_factorial(5) == 34560); assert (special_factorial(7) == 125411328000); assert (special_factorial(1) == 1); }
#undef NDEBUG #include<assert.h> int main(){ assert (special_factorial(4) == 288); }
; ModuleID = 'c_code/code_137.cpp' source_filename = "c_code/code_137.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(none) define noundef i64 @_Z17special_factoriali(i32 noundef %0) local_unnamed_addr #0 { %2 = tail call i32 @llvm.smax.i32(i32 %0, i32 0) %3 = add nuw i32 %2, 1 %4 = zext i32 %3 to i64 br label %5 5: ; preds = %11, %1 %6 = phi i64 [ %14, %11 ], [ 1, %1 ] %7 = phi i64 [ %12, %11 ], [ 1, %1 ] %8 = phi i64 [ %13, %11 ], [ 1, %1 ] %9 = icmp eq i64 %6, %4 br i1 %9, label %10, label %11 10: ; preds = %5 ret i64 %8 11: ; preds = %5 %12 = mul nsw i64 %7, %6 %13 = mul nsw i64 %12, %8 %14 = add nuw nsw i64 %6, 1 br label %5, !llvm.loop !3 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = distinct !{!3, !4} !4 = !{!"llvm.loop.mustprogress"}
(module $code_137.wasm (type (;0;) (func (param i32))) (type (;1;) (func)) (type (;2;) (func (param i32) (result i64))) (type (;3;) (func (param i32) (result i32))) (import "env" "setTempRet0" (func $setTempRet0 (type 0))) (func $__wasm_call_ctors (type 1)) (func $special_factorial_int_ (type 2) (param i32) (result i64) (local i64 i64 i64 i64) local.get 0 i32.const 0 local.get 0 i32.const 0 i32.gt_s select i32.const 1 i32.add i64.extend_i32_u local.set 4 i64.const 1 local.set 1 i64.const 1 local.set 3 i64.const 1 local.set 2 loop (result i64) ;; label = @1 local.get 1 local.get 4 i64.eq if (result i64) ;; label = @2 local.get 2 else local.get 1 local.get 3 i64.mul local.tee 3 local.get 2 i64.mul local.set 2 local.get 1 i64.const 1 i64.add local.set 1 br 1 (;@1;) end end) (func $legalstub$special_factorial_int_ (type 3) (param i32) (result i32) (local i64) local.get 0 call $special_factorial_int_ local.tee 1 i64.const 32 i64.shr_u i32.wrap_i64 call $setTempRet0 local.get 1 i32.wrap_i64) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z17special_factoriali" (func $legalstub$special_factorial_int_)) (export "orig$_Z17special_factoriali" (func $special_factorial_int_)))
CPP/140
/* Given a string text, replace all spaces in it with underscores, and if a string has more than 2 consecutive spaces, then replace all consecutive spaces with - fix_spaces("Example") == "Example" fix_spaces("Example 1") == "Example_1" fix_spaces(" Example 2") == "_Example_2" fix_spaces(" Example 3") == "_Example-3" */ #include<stdio.h> #include<string> using namespace std; string fix_spaces(string text){
#include<stdio.h> #include<string> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> string fix_spaces(string text){
string out=""; int spacelen=0; for (int i=0;i<text.length();i++) if (text[i]==' ') spacelen+=1; else { if (spacelen==1) out=out+'_'; if (spacelen==2) out=out+"__"; if (spacelen>2) out=out+'-'; spacelen=0; out=out+text[i]; } if (spacelen==1) out=out+'_'; if (spacelen==2) out=out+"__"; if (spacelen>2) out=out+'-'; return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (fix_spaces("Example") == "Example"); assert (fix_spaces("Mudasir Hanif ") == "Mudasir_Hanif_"); assert (fix_spaces("Yellow Yellow Dirty Fellow") == "Yellow_Yellow__Dirty__Fellow"); assert (fix_spaces("Exa mple") == "Exa-mple"); assert (fix_spaces(" Exa 1 2 2 mple") == "-Exa_1_2_2_mple"); }
#undef NDEBUG #include<assert.h> int main(){ assert (fix_spaces("Example") == "Example"); assert (fix_spaces("Example 1") == "Example_1"); assert (fix_spaces(" Example 2") == "_Example_2"); assert (fix_spaces(" Example 3") == "_Example-3"); }
; ModuleID = 'c_code/code_138.cpp' source_filename = "c_code/code_138.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_PKS6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"__\00", align 1 @.str.2 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize mustprogress optsize define void @_Z10fix_spacesNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias nonnull sret(%"class.std::__2::basic_string") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = alloca %"class.std::__2::basic_string", align 4 %8 = alloca %"class.std::__2::basic_string", align 4 %9 = alloca %"class.std::__2::basic_string", align 4 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #15 %11 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 br label %13 13: ; preds = %48, %2 %14 = phi i32 [ 0, %2 ], [ %49, %48 ] %15 = phi i32 [ 0, %2 ], [ %50, %48 ] %16 = load i8, ptr %11, align 1 %17 = icmp slt i8 %16, 0 %18 = load i32, ptr %12, align 4 %19 = zext i8 %16 to i32 %20 = select i1 %17, i32 %18, i32 %19 %21 = icmp ult i32 %15, %20 br i1 %21, label %23, label %22 22: ; preds = %13 switch i32 %14, label %55 [ i32 1, label %51 i32 2, label %53 ] 23: ; preds = %13 %24 = load ptr, ptr %1, align 4 %25 = select i1 %17, ptr %24, ptr %1 %26 = getelementptr inbounds i8, ptr %25, i32 %15 %27 = load i8, ptr %26, align 1, !tbaa !3 %28 = icmp eq i8 %27, 32 br i1 %28, label %29, label %31 29: ; preds = %23 %30 = add nsw i32 %14, 1 br label %48 31: ; preds = %23 switch i32 %14, label %36 [ i32 1, label %32 i32 2, label %34 ] 32: ; preds = %31 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %0, i8 noundef signext 95) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3) #17 %33 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #16 br label %40 34: ; preds = %31 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_PKS6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str.1) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4) #17 %35 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #16 br label %40 36: ; preds = %31 %37 = icmp sgt i32 %14, 2 br i1 %37, label %38, label %40 38: ; preds = %36 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %0, i8 noundef signext 45) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %5) #17 %39 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #16 br label %40 40: ; preds = %34, %32, %38, %36 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #16 %41 = load i8, ptr %11, align 1 %42 = icmp slt i8 %41, 0 %43 = load ptr, ptr %1, align 4 %44 = select i1 %42, ptr %43, ptr %1 %45 = getelementptr inbounds i8, ptr %44, i32 %15 %46 = load i8, ptr %45, align 1, !tbaa !3 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %0, i8 noundef signext %46) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %6) #17 %47 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #16 br label %48 48: ; preds = %29, %40 %49 = phi i32 [ %30, %29 ], [ 0, %40 ] %50 = add nuw nsw i32 %15, 1 br label %13, !llvm.loop !6 51: ; preds = %22 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %0, i8 noundef signext 95) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %7) #17 %52 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #16 br label %59 53: ; preds = %22 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_PKS6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str.1) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %8) #17 %54 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #16 br label %59 55: ; preds = %22 %56 = icmp sgt i32 %14, 2 br i1 %56, label %57, label %59 57: ; preds = %55 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %0, i8 noundef signext 45) #15 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %9) #17 %58 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #16 br label %59 59: ; preds = %53, %51, %55, %57 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #17 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #15 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #1 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #16 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #16 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !8 store i8 %2, ptr %24, align 1, !tbaa !3 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_PKS6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %2) local_unnamed_addr #4 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %2) #17 %13 = add i32 %11, %12 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #16 %14 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #16 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %16 = load i8, ptr %15, align 1 %17 = icmp slt i8 %16, 0 %18 = load ptr, ptr %0, align 4 %19 = select i1 %17, ptr %18, ptr %0 %20 = load i8, ptr %5, align 1 %21 = icmp slt i8 %20, 0 %22 = load ptr, ptr %1, align 4 %23 = select i1 %21, ptr %22, ptr %1 %24 = icmp ult ptr %23, %19 %25 = getelementptr inbounds i8, ptr %19, i32 %11 %26 = icmp ule ptr %25, %23 %27 = or i1 %24, %26 call void @llvm.assume(i1 %27) call void @llvm.memmove.p0.p0.i32(ptr align 1 %19, ptr align 1 %23, i32 %11, i1 false), !noalias !19 %28 = icmp ugt ptr %25, %2 %29 = getelementptr inbounds i8, ptr %25, i32 %12 %30 = icmp ule ptr %29, %2 %31 = or i1 %28, %30 call void @llvm.assume(i1 %31) call void @llvm.memmove.p0.p0.i32(ptr align 1 %25, ptr align 1 %2, i32 %12, i1 false), !noalias !30 store i8 0, ptr %29, align 1, !tbaa !3 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #4 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.2) #18 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #16 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #15 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #19 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #15 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !41 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #9 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #1 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #12 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #1 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #20 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !3 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !3 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #13 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #11 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef %7) #21 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !43 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !3 ret void } attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #14 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { minsize optsize } attributes #16 = { nounwind } attributes #17 = { minsize nounwind optsize } attributes #18 = { minsize noreturn optsize } attributes #19 = { noreturn } attributes #20 = { builtin minsize optsize allocsize(0) } attributes #21 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = !{!9, !11, !13, !15, !17} !9 = distinct !{!9, !10, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !10 = distinct !{!10, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !11 = distinct !{!11, !12, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !12 = distinct !{!12, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !13 = distinct !{!13, !14, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !14 = distinct !{!14, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !15 = distinct !{!15, !16, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !16 = distinct !{!16, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !17 = distinct !{!17, !18, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !18 = distinct !{!18, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !19 = !{!20, !22, !24, !26, !28} !20 = distinct !{!20, !21, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !21 = distinct !{!21, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !22 = distinct !{!22, !23, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !23 = distinct !{!23, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !24 = distinct !{!24, !25, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !26 = distinct !{!26, !27, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !28 = distinct !{!28, !29, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !29 = distinct !{!29, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !30 = !{!31, !33, !35, !37, !39} !31 = distinct !{!31, !32, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !32 = distinct !{!32, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !33 = distinct !{!33, !34, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !34 = distinct !{!34, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !35 = distinct !{!35, !36, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !36 = distinct !{!36, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !37 = distinct !{!37, !38, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !38 = distinct !{!38, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !39 = distinct !{!39, !40, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !40 = distinct !{!40, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !41 = !{!42, !42, i64 0} !42 = !{!"vtable pointer", !5, i64 0} !43 = !{i64 0, i64 4, !44, i64 4, i64 4, !46, i64 8, i64 4, !46, i64 11, i64 4, !46, i64 0, i64 11, !3, i64 11, i64 0, !3, i64 11, i64 1, !3, i64 11, i64 1, !3, i64 0, i64 12, !3} !44 = !{!45, !45, i64 0} !45 = !{!"any pointer", !4, i64 0} !46 = !{!47, !47, i64 0} !47 = !{!"long", !4, i64 0}
(module $code_138.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "memmove" (func $memmove (type 4))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $fix_spaces_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 3) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 global.get $__memory_base i32.const 15 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 3 i32.const 0 local.set 0 block ;; label = @1 block ;; label = @2 block ;; label = @3 loop ;; label = @4 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 5 local.get 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.get 0 i32.le_u if ;; label = @5 block ;; label = @6 local.get 2 i32.const 1 i32.sub br_table 0 (;@6;) 3 (;@3;) 4 (;@2;) end else local.get 1 i32.load local.get 1 local.get 5 select local.get 0 i32.add i32.load8_u i32.const 32 i32.eq if (result i32) ;; label = @6 local.get 2 i32.const 1 i32.add else block ;; label = @7 block ;; label = @8 block ;; label = @9 block ;; label = @10 local.get 2 i32.const 1 i32.sub br_table 0 (;@10;) 1 (;@9;) 2 (;@8;) end local.get 4 i32.const 4 i32.add local.tee 2 local.get 3 i32.const 95 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 2 (;@7;) end local.get 4 i32.const 4 i32.add local.tee 2 local.get 3 global.get $__memory_base i32.const 13 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ local.get 3 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@7;) end local.get 2 i32.const 3 i32.lt_s br_if 0 (;@7;) local.get 4 i32.const 4 i32.add local.tee 2 local.get 3 i32.const 45 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 4 i32.add local.tee 2 local.get 3 local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 0 i32.add i32.load8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop i32.const 0 end local.set 2 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@4;) end end local.get 4 i32.const 4 i32.add local.tee 0 local.get 3 i32.const 95 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 2 (;@1;) end local.get 4 i32.const 4 i32.add local.tee 0 local.get 3 global.get $__memory_base i32.const 13 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ local.get 3 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end local.get 2 i32.const 3 i32.lt_s br_if 0 (;@1;) local.get 4 i32.const 4 i32.add local.tee 0 local.get 3 i32.const 45 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 3 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ (type 2) (param i32 i32 i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s select local.tee 0 i32.const 1 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ local.tee 4 i32.load local.get 4 local.get 4 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 0 call $memmove local.get 0 i32.add local.tee 0 local.get 2 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 3) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ (type 2) (param i32 i32 i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 2 call $strlen local.set 3 local.get 0 local.get 3 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s select local.tee 0 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ local.tee 5 i32.load local.get 5 local.get 5 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 0 call $memmove local.get 0 i32.add local.get 2 local.get 3 call $memmove local.get 3 i32.add i32.const 0 i32.store8 local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 1 i32.const 2147483632 i32.lt_u if ;; label = @1 local.get 1 i32.const 10 i32.le_u if ;; label = @2 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 1 i32.store8 offset=11 local.get 0 return end local.get 1 i32.const 15 i32.or i32.const 1 i32.add local.tee 2 call $operator_new_unsigned_long_ local.set 3 local.get 0 local.get 1 i32.store offset=4 local.get 0 local.get 3 i32.store local.get 0 local.get 2 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 return end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10fix_spacesNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $fix_spaces_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "basic_string\00__\00"))
CPP/141
/* Create a function which takes a string representing a file's name, and returns "Yes" if the the file's name is valid, and returns "No" otherwise. A file's name is considered to be valid if and only if all the following conditions are met: - There should not be more than three digits ('0'-'9') in the file's name. - The file's name contains exactly one dot "." - The substring before the dot should not be empty, and it starts with a letter from the latin alphapet ('a'-'z' and 'A'-'Z'). - The substring after the dot should be one of these: {'txt", "exe", "dll"} Examples: file_name_check("example.txt") => "Yes" file_name_check("1example.dll") => "No" // (the name should start with a latin alphapet letter) */ #include<stdio.h> #include<string> using namespace std; string file_name_check(string file_name){
#include<stdio.h> #include<string> #include<algorithm> using namespace std; #include<math.h> #include<stdlib.h> string file_name_check(string file_name){
int numdigit=0,numdot=0; if (file_name.length()<5) return "No"; char w=file_name[0]; if (w<65 or (w>90 and w<97) or w>122) return "No"; string last=file_name.substr(file_name.length()-4,4); if (last!=".txt" and last!=".exe" and last!=".dll") return "No"; for (int i=0;i<file_name.length();i++) { if (file_name[i]>=48 and file_name[i]<=57) numdigit+=1; if (file_name[i]=='.') numdot+=1; } if (numdigit>3 or numdot!=1) return "No"; return "Yes"; }
#undef NDEBUG #include<assert.h> int main(){ assert (file_name_check("example.txt") == "Yes"); assert (file_name_check("1example.dll") == "No"); assert (file_name_check("s1sdf3.asd") == "No"); assert (file_name_check("K.dll") == "Yes"); assert (file_name_check("MY16FILE3.exe") == "Yes"); assert (file_name_check("His12FILE94.exe") == "No"); assert (file_name_check("_Y.txt") == "No"); assert (file_name_check("?aREYA.exe") == "No"); assert (file_name_check("/this_is_valid.dll") == "No"); assert (file_name_check("this_is_valid.wow") == "No"); assert (file_name_check("this_is_valid.txt") == "Yes"); assert (file_name_check("this_is_valid.txtexe") == "No"); assert (file_name_check("#this2_i4s_5valid.ten") == "No"); assert (file_name_check("@this1_is6_valid.exe") == "No"); assert (file_name_check("this_is_12valid.6exe4.txt") == "No"); assert (file_name_check("all.exe.txt") == "No"); assert (file_name_check("I563_No.exe") == "Yes"); assert (file_name_check("Is3youfault.txt") == "Yes"); assert (file_name_check("no_one#knows.dll") == "Yes"); assert (file_name_check("1I563_Yes3.exe") == "No"); assert (file_name_check("I563_Yes3.txtt") == "No"); assert (file_name_check("final..txt") == "No"); assert (file_name_check("final132") == "No"); assert (file_name_check("_f4indsartal132.") == "No"); assert (file_name_check(".txt") == "No"); assert (file_name_check("s.") == "No"); }
#undef NDEBUG #include<assert.h> int main(){ assert (file_name_check("example.txt") == "Yes"); assert (file_name_check("1example.dll") == "No"); }
; ModuleID = 'c_code/code_139.cpp' source_filename = "c_code/code_139.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm = comdat any $_ZNSt3__2neB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_ = comdat any $_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_ = comdat any @.str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c".txt\00", align 1 @.str.2 = private unnamed_addr constant [5 x i8] c".exe\00", align 1 @.str.3 = private unnamed_addr constant [5 x i8] c".dll\00", align 1 @.str.4 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: minsize mustprogress optsize define void @_Z15file_name_checkNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %5 = load i8, ptr %4, align 1 %6 = icmp slt i8 %5, 0 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %8 = load i32, ptr %7, align 4 %9 = zext i8 %5 to i32 %10 = select i1 %6, i32 %8, i32 %9 %11 = icmp ult i32 %10, 5 br i1 %11, label %12, label %14 12: ; preds = %2 %13 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #9 br label %62 14: ; preds = %2 %15 = load ptr, ptr %1, align 4 %16 = select i1 %6, ptr %15, ptr %1 %17 = load i8, ptr %16, align 1, !tbaa !3 %18 = icmp slt i8 %17, 65 br i1 %18, label %20, label %19 19: ; preds = %14 switch i8 %17, label %22 [ i8 127, label %20 i8 126, label %20 i8 125, label %20 i8 124, label %20 i8 123, label %20 i8 96, label %20 i8 95, label %20 i8 94, label %20 i8 93, label %20 i8 92, label %20 i8 91, label %20 ] 20: ; preds = %19, %19, %19, %19, %19, %19, %19, %19, %19, %19, %19, %14 %21 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #9 br label %62 22: ; preds = %19 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #10 %23 = add i32 %10, -4 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %23, i32 noundef 4) #9 %24 = call noundef zeroext i1 @_ZNSt3__2neB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str.1) #11 br i1 %24, label %25, label %29 25: ; preds = %22 %26 = call noundef zeroext i1 @_ZNSt3__2neB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str.2) #11 br i1 %26, label %27, label %29 27: ; preds = %25 %28 = call noundef zeroext i1 @_ZNSt3__2neB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str.3) #11 br i1 %28, label %58, label %29 29: ; preds = %27, %25, %22 %30 = load i8, ptr %4, align 1 %31 = icmp slt i8 %30, 0 %32 = load i32, ptr %7, align 4 %33 = zext i8 %30 to i32 %34 = select i1 %31, i32 %32, i32 %33 br label %35 35: ; preds = %45, %29 %36 = phi i32 [ 0, %29 ], [ %56, %45 ] %37 = phi i32 [ 0, %29 ], [ %53, %45 ] %38 = phi i32 [ 0, %29 ], [ %57, %45 ] %39 = icmp eq i32 %38, %34 br i1 %39, label %40, label %45 40: ; preds = %35 %41 = icmp ugt i32 %37, 3 %42 = icmp ne i32 %36, 1 %43 = select i1 %41, i1 true, i1 %42 %44 = select i1 %43, ptr @.str, ptr @.str.4 br label %58 45: ; preds = %35 %46 = load ptr, ptr %1, align 4 %47 = select i1 %31, ptr %46, ptr %1 %48 = getelementptr inbounds i8, ptr %47, i32 %38 %49 = load i8, ptr %48, align 1, !tbaa !3 %50 = add i8 %49, -48 %51 = icmp ult i8 %50, 10 %52 = zext i1 %51 to i32 %53 = add nuw nsw i32 %37, %52 %54 = icmp eq i8 %49, 46 %55 = zext i1 %54 to i32 %56 = add nuw nsw i32 %36, %55 %57 = add nuw i32 %38, 1 br label %35, !llvm.loop !6 58: ; preds = %40, %27 %59 = phi ptr [ @.str, %27 ], [ %44, %40 ] %60 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %59) #9 %61 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #11 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #10 br label %62 62: ; preds = %20, %58, %12 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #11 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #9 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 comdat { %5 = alloca %"class.std::__2::allocator", align 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5) #9 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2neB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = tail call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) #11 %4 = xor i1 %3, true ret i1 %4 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #5 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #6 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #7 ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #11 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = icmp eq i32 %4, %11 br i1 %12, label %13, label %16 13: ; preds = %2 %14 = tail call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 0, i32 noundef -1, ptr noundef nonnull %1, i32 noundef %4) #11 %15 = icmp eq i32 %14, 0 br label %16 16: ; preds = %2, %13 %17 = phi i1 [ %15, %13 ], [ false, %2 ] ret i1 %17 } ; Function Attrs: inlinehint minsize mustprogress optsize declare noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #8 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #6 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize optsize } attributes #10 = { nounwind } attributes #11 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"}
(module $code_139.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ (type 2))) (import "env" "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare_unsigned_long__unsigned_long__char_const*__unsigned_long__const (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 4)) (func $file_name_check_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 5) (param i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer block ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 2 select local.tee 5 i32.const 4 i32.le_u if ;; label = @2 local.get 0 global.get $__memory_base i32.const 9 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop br 1 (;@1;) end block ;; label = @2 block ;; label = @3 local.get 1 i32.load local.get 1 local.get 2 select i32.load8_s local.tee 2 i32.const 65 i32.lt_s br_if 0 (;@3;) local.get 2 i32.const 255 i32.and local.tee 2 i32.const 91 i32.sub i32.const 6 i32.lt_u br_if 0 (;@3;) local.get 2 i32.const 123 i32.sub i32.const 4 i32.gt_u br_if 1 (;@2;) end local.get 0 global.get $__memory_base i32.const 9 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop br 1 (;@1;) end global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 4 i32.const 4 i32.add local.tee 2 local.get 1 local.get 5 i32.const 4 i32.sub i32.const 4 local.get 3 i32.const 15 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ drop local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 0 block (result i32) ;; label = @2 block ;; label = @3 local.get 2 global.get $__memory_base call $bool_std::__2::operator!=_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ i32.eqz br_if 0 (;@3;) local.get 2 global.get $__memory_base i32.const 17 i32.add call $bool_std::__2::operator!=_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ i32.eqz br_if 0 (;@3;) local.get 2 global.get $__memory_base local.tee 0 i32.const 12 i32.add call $bool_std::__2::operator!=_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ i32.eqz br_if 0 (;@3;) local.get 0 i32.const 9 i32.add br 1 (;@2;) end i32.const 0 local.set 3 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.set 6 i32.const 0 local.set 0 i32.const 0 local.set 2 loop (result i32) ;; label = @3 local.get 2 local.get 6 i32.eq if (result i32) ;; label = @4 global.get $__memory_base local.tee 1 i32.const 9 i32.add local.tee 2 local.get 2 local.get 1 i32.const 5 i32.add local.get 3 i32.const 1 i32.ne select local.get 0 i32.const 3 i32.gt_u select else local.get 3 local.get 1 i32.load local.get 1 local.get 5 select local.get 2 i32.add i32.load8_u local.tee 7 i32.const 46 i32.eq i32.add local.set 3 local.get 0 local.get 7 i32.const 48 i32.sub i32.const 255 i32.and i32.const 10 i32.lt_u i32.add local.set 0 local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@3;) end end end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $bool_std::__2::operator!=_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 1 call $strlen local.tee 2 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select i32.eq if (result i32) ;; label = @1 local.get 0 i32.const 0 i32.const -1 local.get 1 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare_unsigned_long__unsigned_long__char_const*__unsigned_long__const else i32.const 1 end i32.eqz i32.eqz) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z15file_name_checkNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $file_name_check_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) ".txt\00Yes\00No\00.dll\00.exe\00"))
CPP/142
/* " This function will take a vector of integers. For all entries in the vector, the function shall square the integer entry if its index is a multiple of 3 and will cube the integer entry if its index is a multiple of 4 and not a multiple of 3. The function will not change the entries in the vector whose indexes are not a multiple of 3 or 4. The function shall then return the sum of all entries. Examples: For lst = {1,2,3} the output should be 6 For lst = {} the output should be 0 For lst = {-1,-5,2,-1,-5} the output should be -126 */ #include<stdio.h> #include<vector> using namespace std; int sum_squares(vector<int> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> int sum_squares(vector<int> lst){
int sum=0; for (int i=0;i<lst.size();i++) if (i%3==0) sum+=lst[i]*lst[i]; else if (i%4==0) sum+=lst[i]*lst[i]*lst[i]; else sum+=lst[i]; return sum; }
#undef NDEBUG #include<assert.h> int main(){ assert (sum_squares({1,2,3}) == 6); assert (sum_squares({1,4,9}) == 14); assert (sum_squares({}) == 0); assert (sum_squares({1,1,1,1,1,1,1,1,1}) == 9); assert (sum_squares({-1,-1,-1,-1,-1,-1,-1,-1,-1}) == -3); assert (sum_squares({0}) == 0); assert (sum_squares({-1,-5,2,-1,-5}) == -126); assert (sum_squares({-56,-99,1,0,-2}) == 3030); assert (sum_squares({-1,0,0,0,0,0,0,0,-1}) == 0); assert (sum_squares({-16, -9, -2, 36, 36, 26, -20, 25, -40, 20, -4, 12, -26, 35, 37}) == -14196); assert (sum_squares({-1, -3, 17, -1, -15, 13, -1, 14, -14, -12, -5, 14, -14, 6, 13, 11, 16, 16, 4, 10}) == -1448); }
#undef NDEBUG #include<assert.h> int main(){ assert (sum_squares({1,2,3}) == 6); assert (sum_squares({}) == 0); assert (sum_squares({-1,-5,2,-1,-5}) == -126); }
; ModuleID = 'c_code/code_140.cpp' source_filename = "c_code/code_140.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i32 @_Z11sum_squaresNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 br label %9 9: ; preds = %29, %1 %10 = phi i32 [ 0, %1 ], [ %31, %29 ] %11 = phi i32 [ 0, %1 ], [ %32, %29 ] %12 = icmp eq i32 %11, %8 br i1 %12, label %13, label %14 13: ; preds = %9 ret i32 %10 14: ; preds = %9 %15 = urem i32 %11, 3 %16 = icmp eq i32 %15, 0 br i1 %16, label %17, label %21 17: ; preds = %14 %18 = getelementptr inbounds i32, ptr %4, i32 %11 %19 = load i32, ptr %18, align 4, !tbaa !11 %20 = mul nsw i32 %19, %19 br label %29 21: ; preds = %14 %22 = and i32 %11, 3 %23 = icmp eq i32 %22, 0 %24 = getelementptr inbounds i32, ptr %4, i32 %11 %25 = load i32, ptr %24, align 4, !tbaa !11 br i1 %23, label %26, label %29 26: ; preds = %21 %27 = mul nsw i32 %25, %25 %28 = mul nsw i32 %27, %25 br label %29 29: ; preds = %21, %17, %26 %30 = phi i32 [ %20, %17 ], [ %28, %26 ], [ %25, %21 ] %31 = add nsw i32 %30, %10 %32 = add nuw i32 %11, 1 br label %9, !llvm.loop !13 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_140.wasm (type (;0;) (func)) (type (;1;) (func (param i32) (result i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 0)) (func $sum_squares_std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32) (result i32) (local i32 i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 3 i32.sub i32.const 2 i32.shr_s local.set 4 i32.const 0 local.set 0 loop ;; label = @1 local.get 0 local.get 4 i32.eq i32.eqz if ;; label = @2 block (result i32) ;; label = @3 local.get 0 i32.const 3 i32.rem_u i32.eqz if ;; label = @4 local.get 3 local.get 0 i32.const 2 i32.shl i32.add i32.load local.tee 1 local.get 1 i32.mul br 1 (;@3;) end local.get 3 local.get 0 i32.const 2 i32.shl i32.add i32.load local.tee 1 local.get 0 i32.const 3 i32.and br_if 0 (;@3;) drop local.get 1 local.get 1 i32.mul local.get 1 i32.mul end local.get 0 i32.const 1 i32.add local.set 0 local.get 2 i32.add local.set 2 br 1 (;@1;) end end local.get 2) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z11sum_squaresNSt3__26vectorIiNS_9allocatorIiEEEE" (func $sum_squares_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/143
/* You are given a string representing a sentence, the sentence contains some words separated by a space, and you have to return a string that contains the words from the original sentence, whose lengths are prime numbers, the order of the words in the new string should be the same as the original one. Example 1: Input: sentence = "This is a test" Output: "is" Example 2: Input: sentence = "lets go for swimming" Output: "go for" Constraints: * 1 <= len(sentence) <= 100 * sentence contains only letters */ #include<stdio.h> #include<string> using namespace std; string words_in_sentence(string sentence){
#include<stdio.h> #include<string> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> string words_in_sentence(string sentence){
string out=""; string current=""; sentence=sentence+' '; for (int i=0;i<sentence.size();i++) if (sentence[i]!=' ') current=current+sentence[i]; else { bool isp=true; int l=current.length(); if (l<2) isp=false; for (int j=2;j*j<=l;j++) if (l%j==0) isp=false; if (isp) out=out+current+' '; current=""; } if (out.length()>0) out.pop_back(); return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (words_in_sentence("This is a test") == "is"); assert (words_in_sentence("lets go for swimming") == "go for"); assert (words_in_sentence("there is no place available here") == "there is no place"); assert (words_in_sentence("Hi I am Hussein") == "Hi am Hussein"); assert (words_in_sentence("go for it") == "go for it"); assert (words_in_sentence("here") == ""); assert (words_in_sentence("here is") == "is"); }
#undef NDEBUG #include<assert.h> int main(){ assert (words_in_sentence("This is a test") == "is"); assert (words_in_sentence("lets go for swimming") == "go for"); }
; ModuleID = 'c_code/code_141.cpp' source_filename = "c_code/code_141.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_S6_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8pop_backB7v160006Ev = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize mustprogress optsize define void @_Z17words_in_sentenceNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias nonnull sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = alloca %"class.std::__2::basic_string", align 4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #17 %9 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #17 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 32) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %4) #18 %10 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #17 %11 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %15 15: ; preds = %63, %2 %16 = phi i32 [ 0, %2 ], [ %64, %63 ] %17 = load i8, ptr %11, align 1 %18 = icmp slt i8 %17, 0 %19 = load i32, ptr %12, align 4 %20 = zext i8 %17 to i32 %21 = select i1 %18, i32 %19, i32 %20 %22 = icmp ult i32 %16, %21 br i1 %22, label %32, label %23 23: ; preds = %15 %24 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %25 = load i8, ptr %24, align 1 %26 = icmp slt i8 %25, 0 %27 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %28 = load i32, ptr %27, align 4 %29 = zext i8 %25 to i32 %30 = select i1 %26, i32 %28, i32 %29 %31 = icmp eq i32 %30, 0 br i1 %31, label %66, label %65 32: ; preds = %15 %33 = load ptr, ptr %1, align 4 %34 = select i1 %18, ptr %33, ptr %1 %35 = getelementptr inbounds i8, ptr %34, i32 %16 %36 = load i8, ptr %35, align 1, !tbaa !3 %37 = icmp eq i8 %36, 32 br i1 %37, label %40, label %38 38: ; preds = %32 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #17 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %36) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5) #18 %39 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #17 br label %63 40: ; preds = %32 %41 = load i8, ptr %13, align 1 %42 = icmp slt i8 %41, 0 %43 = load i32, ptr %14, align 4 %44 = zext i8 %41 to i32 %45 = select i1 %42, i32 %43, i32 %44 %46 = icmp sgt i32 %45, 1 br label %47 47: ; preds = %53, %40 %48 = phi i1 [ %46, %40 ], [ %56, %53 ] %49 = phi i32 [ 2, %40 ], [ %57, %53 ] %50 = mul nsw i32 %49, %49 %51 = icmp sgt i32 %50, %45 br i1 %51, label %52, label %53 52: ; preds = %47 br i1 %48, label %58, label %61 53: ; preds = %47 %54 = srem i32 %45, %49 %55 = icmp ne i32 %54, 0 %56 = select i1 %55, i1 %48, i1 false %57 = add nuw nsw i32 %49, 1 br label %47, !llvm.loop !6 58: ; preds = %52 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #17 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #17 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3) #16 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %7, i8 noundef signext 32) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %6) #18 %59 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #18 %60 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #17 br label %61 61: ; preds = %58, %52 %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #16 br label %63 63: ; preds = %38, %61 %64 = add nuw nsw i32 %16, 1 br label %15, !llvm.loop !8 65: ; preds = %23 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8pop_backB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 br label %66 66: ; preds = %65, %23 %67 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #17 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #18 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #16 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #1 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #17 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #17 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !9 store i8 %2, ptr %24, align 1, !tbaa !3 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #4 comdat { tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc(ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) #16 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, i8 0, i32 12, i1 false) ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #1 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %13 = load i8, ptr %12, align 1 %14 = icmp slt i8 %13, 0 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = zext i8 %13 to i32 %18 = select i1 %14, i32 %16, i32 %17 %19 = add i32 %18, %11 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #17 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #17 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %22 = load i8, ptr %21, align 1 %23 = icmp slt i8 %22, 0 %24 = load ptr, ptr %0, align 4 %25 = select i1 %23, ptr %24, ptr %0 %26 = load i8, ptr %5, align 1 %27 = icmp slt i8 %26, 0 %28 = load ptr, ptr %1, align 4 %29 = select i1 %27, ptr %28, ptr %1 %30 = icmp ult ptr %29, %25 %31 = getelementptr inbounds i8, ptr %25, i32 %11 %32 = icmp ule ptr %31, %29 %33 = or i1 %30, %32 call void @llvm.assume(i1 %33) call void @llvm.memmove.p0.p0.i32(ptr align 1 %25, ptr align 1 %29, i32 %11, i1 false), !noalias !20 %34 = load i8, ptr %12, align 1 %35 = icmp slt i8 %34, 0 %36 = load ptr, ptr %2, align 4 %37 = select i1 %35, ptr %36, ptr %2 %38 = icmp ult ptr %37, %31 %39 = getelementptr inbounds i8, ptr %31, i32 %18 %40 = icmp ule ptr %39, %37 %41 = or i1 %38, %40 call void @llvm.assume(i1 %41) call void @llvm.memmove.p0.p0.i32(ptr align 1 %31, ptr align 1 %37, i32 %18, i1 false), !noalias !31 store i8 0, ptr %39, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8pop_backB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #5 comdat { %2 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %3 = load i8, ptr %2, align 1 %4 = icmp slt i8 %3, 0 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %6 = load i32, ptr %5, align 4 %7 = zext i8 %3 to i32 %8 = select i1 %4, i32 %6, i32 %7 %9 = add i32 %8, -1 br i1 %4, label %10, label %12 10: ; preds = %1 %11 = load ptr, ptr %0, align 4 store i32 %9, ptr %5, align 4, !tbaa !3 br label %15 12: ; preds = %1 %13 = icmp ult i32 %9, 11 tail call void @llvm.assume(i1 %13) %14 = trunc i32 %9 to i8 store i8 %14, ptr %2, align 1 br label %15 15: ; preds = %10, %12 %16 = phi ptr [ %11, %10 ], [ %0, %12 ] %17 = getelementptr inbounds i8, ptr %16, i32 %9 store i8 0, ptr %17, align 1, !tbaa !3 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #6 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #7 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #4 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #19 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #17 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #16 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #20 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #16 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !42 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #10 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #1 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #1 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #21 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !3 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !3 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #14 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef %7) #22 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !44 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !3 ret void } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc(ptr noundef nonnull align 4 dereferenceable(12), i8 noundef signext) local_unnamed_addr #1 ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1) #16 ret ptr %4 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #1 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #15 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { minsize optsize } attributes #17 = { nounwind } attributes #18 = { minsize nounwind optsize } attributes #19 = { minsize noreturn optsize } attributes #20 = { noreturn } attributes #21 = { builtin minsize optsize allocsize(0) } attributes #22 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7} !9 = !{!10, !12, !14, !16, !18} !10 = distinct !{!10, !11, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !11 = distinct !{!11, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !12 = distinct !{!12, !13, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !13 = distinct !{!13, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !14 = distinct !{!14, !15, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !15 = distinct !{!15, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !16 = distinct !{!16, !17, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !17 = distinct !{!17, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !18 = distinct !{!18, !19, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !19 = distinct !{!19, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !20 = !{!21, !23, !25, !27, !29} !21 = distinct !{!21, !22, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !22 = distinct !{!22, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !23 = distinct !{!23, !24, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !24 = distinct !{!24, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !25 = distinct !{!25, !26, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !26 = distinct !{!26, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !27 = distinct !{!27, !28, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !28 = distinct !{!28, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !29 = distinct !{!29, !30, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !30 = distinct !{!30, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !31 = !{!32, !34, !36, !38, !40} !32 = distinct !{!32, !33, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !34 = distinct !{!34, !35, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !35 = distinct !{!35, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !36 = distinct !{!36, !37, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !37 = distinct !{!37, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !38 = distinct !{!38, !39, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !39 = distinct !{!39, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !40 = distinct !{!40, !41, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !41 = distinct !{!41, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !42 = !{!43, !43, i64 0} !43 = !{!"vtable pointer", !5, i64 0} !44 = !{i64 0, i64 4, !45, i64 4, i64 4, !47, i64 8, i64 4, !47, i64 11, i64 4, !47, i64 0, i64 11, !3, i64 11, i64 0, !3, i64 11, i64 1, !3, i64 11, i64 1, !3, i64 0, i64 12, !3} !45 = !{!46, !46, i64 0} !46 = !{!"any pointer", !4, i64 0} !47 = !{!48, !48, i64 0} !48 = !{!"long", !4, i64 0}
(module $code_141.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ (type 0))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "memmove" (func $memmove (type 4))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::push_back_char_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $words_in_sentence_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 3) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 6 global.set $__stack_pointer local.get 0 global.get $__memory_base i32.const 12 i32.add local.tee 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 2 local.get 6 i32.const 36 i32.add local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 4 local.get 6 i32.const 24 i32.add local.tee 0 local.get 1 i32.const 32 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 1 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s local.tee 0 select local.get 7 i32.le_u if ;; label = @2 local.get 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s select if ;; label = @3 local.get 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s local.tee 1 i32.const 0 i32.lt_s select i32.const 1 i32.sub local.set 0 block ;; label = @4 local.get 1 i32.const 0 i32.lt_s if ;; label = @5 local.get 2 local.get 0 i32.store offset=4 local.get 2 i32.load local.set 2 br 1 (;@4;) end local.get 2 local.get 0 i32.store8 offset=11 end local.get 0 local.get 2 i32.add i32.const 0 i32.store8 end local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 6 i32.const 48 i32.add global.set $__stack_pointer else block ;; label = @3 local.get 1 i32.load local.get 1 local.get 0 select local.get 7 i32.add i32.load8_u local.tee 3 i32.const 32 i32.ne if ;; label = @4 local.get 6 i32.const 24 i32.add local.tee 0 local.get 4 local.get 3 i32.extend8_s call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ local.get 4 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@3;) end local.get 4 i32.load offset=4 local.get 4 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s select local.tee 5 i32.const 1 i32.gt_s local.set 3 i32.const 2 local.set 0 loop ;; label = @4 local.get 5 local.get 0 local.get 0 i32.mul i32.lt_s if ;; label = @5 local.get 3 if ;; label = @6 global.get $__stack_pointer i32.const 16 i32.sub local.tee 9 global.set $__stack_pointer local.get 6 i32.const 12 i32.add local.tee 0 local.get 4 i32.load offset=4 local.get 4 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 3 local.get 2 i32.load offset=4 local.get 2 i32.load8_u offset=11 local.tee 5 local.get 5 i32.extend8_s i32.const 0 i32.lt_s select local.tee 5 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ local.tee 8 i32.load local.get 8 local.get 8 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 2 i32.load local.get 2 local.get 2 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 5 call $memmove local.get 5 i32.add local.get 4 i32.load local.get 4 local.get 4 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 3 call $memmove local.get 3 i32.add i32.const 0 i32.store8 local.get 9 i32.const 16 i32.add global.set $__stack_pointer local.get 0 i32.const 32 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::push_back_char_ local.get 6 i32.const 24 i32.add local.tee 3 local.get 0 i32.load offset=8 i32.store offset=8 local.get 3 local.get 0 i64.load align=4 i64.store align=4 local.get 0 i64.const 0 i64.store align=4 local.get 0 i32.const 0 i32.store offset=8 local.get 2 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 global.get $__memory_base i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_external_char_const*_ drop else local.get 5 local.get 0 i32.rem_s i32.const 0 i32.ne local.get 3 i32.and local.set 3 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@4;) end end end local.get 7 i32.const 1 i32.add local.set 7 br 1 (;@1;) end end) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::operator+_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_ (type 2) (param i32 i32 i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s select local.tee 0 i32.const 1 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ local.tee 4 i32.load local.get 4 local.get 4 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 0 call $memmove local.get 0 i32.add local.tee 0 local.get 2 i32.store8 local.get 0 i32.const 0 i32.store8 offset=1 local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 3) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006__std::__2::__uninitialized_size_tag__unsigned_long__std::__2::allocator<char>_const&_ (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 1 i32.const 2147483632 i32.lt_u if ;; label = @1 local.get 1 i32.const 10 i32.le_u if ;; label = @2 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 1 i32.store8 offset=11 local.get 0 return end local.get 1 i32.const 15 i32.or i32.const 1 i32.add local.tee 2 call $operator_new_unsigned_long_ local.set 3 local.get 0 local.get 1 i32.store offset=4 local.get 0 local.get 3 i32.store local.get 0 local.get 2 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 return end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z17words_in_sentenceNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $words_in_sentence_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (data $.rodata (global.get $__memory_base) "basic_string\00"))
CPP/144
/* Your task is to implement a function that will simplify the expression x * n. The function returns true if x * n evaluates to a whole number and false otherwise. Both x and n, are string representation of a fraction, and have the following format, <numerator>/<denominator> where both numerator and denominator are positive whole numbers. You can assume that x, and n are valid fractions, and do not have zero as denominator. simplify("1/5", "5/1") = true simplify("1/6", "2/1") = false simplify("7/10", "10/2") = false */ #include<stdio.h> #include<string> using namespace std; bool simplify(string x,string n){
#include<stdio.h> #include<string> #include<algorithm> using namespace std; #include<math.h> #include<stdlib.h> bool simplify(string x,string n){
int a,b,c,d,i; for (i=0;i<x.size();i++) if (x[i]=='/') { a=atoi(x.substr(0,i).c_str()); b=atoi(x.substr(i+1).c_str()); } for (i=0;i<n.size();i++) if (n[i]=='/') { c=atoi(n.substr(0,i).c_str()); d=atoi(n.substr(i+1).c_str()); } if ((a*c)%(b*d)==0) return true; return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (simplify("1/5", "5/1") == true); assert (simplify("1/6", "2/1") == false); assert (simplify("5/1", "3/1") == true); assert (simplify("7/10", "10/2") == false); assert (simplify("2/10", "50/10") == true); assert (simplify("7/2", "4/2") == true); assert (simplify("11/6", "6/1") == true); assert (simplify("2/3", "5/2") == false); assert (simplify("5/2", "3/5") == false); assert (simplify("2/4", "8/4") == true); assert (simplify("2/4", "4/2") == true); assert (simplify("1/5", "5/1") == true); assert (simplify("1/5", "1/5") == false); }
#undef NDEBUG #include<assert.h> int main(){ assert (simplify("1/5", "5/1") == true); assert (simplify("1/6", "2/1") == false); assert (simplify("7/10", "10/2") == false); }
; ModuleID = 'c_code/code_142.cpp' source_filename = "c_code/code_142.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm = comdat any ; Function Attrs: minsize mustprogress optsize define noundef zeroext i1 @_Z8simplifyNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = alloca %"class.std::__2::basic_string", align 4 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %4, i32 0, i32 2 br label %11 11: ; preds = %45, %2 %12 = phi i32 [ %50, %45 ], [ undef, %2 ] %13 = phi i32 [ %57, %45 ], [ undef, %2 ] %14 = phi i32 [ %52, %45 ], [ 0, %2 ] %15 = load i8, ptr %7, align 1 %16 = icmp slt i8 %15, 0 %17 = load i32, ptr %8, align 4 %18 = zext i8 %15 to i32 %19 = select i1 %16, i32 %17, i32 %18 br label %20 20: ; preds = %11, %43 %21 = phi i32 [ %44, %43 ], [ %14, %11 ] %22 = icmp ult i32 %21, %19 br i1 %22, label %37, label %23 23: ; preds = %20 %24 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %25 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %26 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %5, i32 0, i32 2 %27 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %6, i32 0, i32 2 br label %28 28: ; preds = %70, %23 %29 = phi i32 [ %75, %70 ], [ undef, %23 ] %30 = phi i32 [ %82, %70 ], [ undef, %23 ] %31 = phi i32 [ %77, %70 ], [ 0, %23 ] %32 = load i8, ptr %24, align 1 %33 = icmp slt i8 %32, 0 %34 = load i32, ptr %25, align 4 %35 = zext i8 %32 to i32 %36 = select i1 %33, i32 %34, i32 %35 br label %59 37: ; preds = %20 %38 = load ptr, ptr %0, align 4 %39 = select i1 %16, ptr %38, ptr %0 %40 = getelementptr inbounds i8, ptr %39, i32 %21 %41 = load i8, ptr %40, align 1, !tbaa !3 %42 = icmp eq i8 %41, 47 br i1 %42, label %45, label %43 43: ; preds = %37 %44 = add nuw nsw i32 %21, 1 br label %20, !llvm.loop !6 45: ; preds = %37 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 0, i32 noundef %21) #6 %46 = load i8, ptr %9, align 1 %47 = icmp slt i8 %46, 0 %48 = load ptr, ptr %3, align 4 %49 = select i1 %47, ptr %48, ptr %3 %50 = call i32 @atoi(ptr nocapture noundef %49) #6 %51 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5 %52 = add nuw nsw i32 %21, 1 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %52, i32 noundef -1) #6 %53 = load i8, ptr %10, align 1 %54 = icmp slt i8 %53, 0 %55 = load ptr, ptr %4, align 4 %56 = select i1 %54, ptr %55, ptr %4 %57 = call i32 @atoi(ptr nocapture noundef %56) #6 %58 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5 br label %11, !llvm.loop !6 59: ; preds = %28, %68 %60 = phi i32 [ %69, %68 ], [ %31, %28 ] %61 = icmp ult i32 %60, %36 br i1 %61, label %62, label %84 62: ; preds = %59 %63 = load ptr, ptr %1, align 4 %64 = select i1 %33, ptr %63, ptr %1 %65 = getelementptr inbounds i8, ptr %64, i32 %60 %66 = load i8, ptr %65, align 1, !tbaa !3 %67 = icmp eq i8 %66, 47 br i1 %67, label %70, label %68 68: ; preds = %62 %69 = add nuw nsw i32 %60, 1 br label %59, !llvm.loop !8 70: ; preds = %62 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0, i32 noundef %60) #6 %71 = load i8, ptr %26, align 1 %72 = icmp slt i8 %71, 0 %73 = load ptr, ptr %5, align 4 %74 = select i1 %72, ptr %73, ptr %5 %75 = call i32 @atoi(ptr nocapture noundef %74) #6 %76 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5 %77 = add nuw nsw i32 %60, 1 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %77, i32 noundef -1) #6 %78 = load i8, ptr %27, align 1 %79 = icmp slt i8 %78, 0 %80 = load ptr, ptr %6, align 4 %81 = select i1 %79, ptr %80, ptr %6 %82 = call i32 @atoi(ptr nocapture noundef %81) #6 %83 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #7 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5 br label %28, !llvm.loop !8 84: ; preds = %59 %85 = mul nsw i32 %29, %12 %86 = mul nsw i32 %30, %13 %87 = srem i32 %85, %86 %88 = icmp eq i32 %87, 0 ret i1 %88 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(read) declare i32 @atoi(ptr nocapture noundef) local_unnamed_addr #2 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 comdat { %5 = alloca %"class.std::__2::allocator", align 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5) #6 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize mustprogress nofree nounwind optsize willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { nounwind } attributes #6 = { minsize optsize } attributes #7 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = distinct !{!8, !7}
(module $code_142.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;2;) (func)) (type (;3;) (func (param i32 i32) (result i32))) (type (;4;) (func (param i32 i32 i32 i32))) (import "env" "atoi" (func $atoi (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 2)) (func $simplify_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 3) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer loop ;; label = @1 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 5 local.get 5 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.tee 4 local.get 2 local.get 2 local.get 4 i32.lt_u select local.set 4 loop ;; label = @2 local.get 2 local.get 4 i32.eq if ;; label = @3 i32.const 0 local.set 2 loop ;; label = @4 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 0 local.get 0 i32.extend8_s i32.const 0 i32.lt_s local.tee 0 select local.tee 4 local.get 2 local.get 2 local.get 4 i32.lt_u select local.set 4 block ;; label = @5 loop ;; label = @6 local.get 2 local.get 4 i32.eq br_if 1 (;@5;) local.get 1 i32.load local.get 1 local.get 0 select local.get 2 i32.add i32.load8_u i32.const 47 i32.ne if ;; label = @7 local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@6;) end end local.get 3 i32.const 4 i32.add local.tee 0 local.get 1 i32.const 0 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 3 i32.load offset=4 local.get 0 local.get 3 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 5 local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 0 local.get 1 local.get 2 i32.const 1 i32.add local.tee 2 i32.const -1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 3 i32.load offset=4 local.get 3 i32.const 4 i32.add local.get 3 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 6 local.get 3 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@4;) end end local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 5 local.get 7 i32.mul local.get 6 local.get 8 i32.mul i32.rem_s i32.eqz return end local.get 0 i32.load local.get 0 local.get 5 select local.get 2 i32.add i32.load8_u i32.const 47 i32.ne if ;; label = @3 local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@2;) end end local.get 3 i32.const 4 i32.add local.tee 4 local.get 0 i32.const 0 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 3 i32.load offset=4 local.get 4 local.get 3 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 7 local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 4 local.get 0 local.get 2 i32.const 1 i32.add local.tee 2 i32.const -1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 3 i32.load offset=4 local.get 3 i32.const 4 i32.add local.get 3 i32.load8_s offset=15 i32.const 0 i32.lt_s select call $atoi local.set 8 local.get 3 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 0 (;@1;) end unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const (type 4) (param i32 i32 i32 i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 local.get 3 local.get 4 i32.const 15 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ drop local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z8simplifyNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_" (func $simplify_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)))
CPP/145
/* Write a function which sorts the given vector of integers in ascending order according to the sum of their digits. Note: if there are several items with similar sum of their digits, order them based on their index in original vector. For example: >>> order_by_points({1, 11, -1, -11, -12}) == {-1, -11, 1, -12, 11} >>> order_by_points({}) == {} */ #include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; vector<int> order_by_points(vector<int> nums){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> vector<int> order_by_points(vector<int> nums){
vector<int> sumdigit={}; for (int i=0;i<nums.size();i++) { string w=to_string(abs(nums[i])); int sum=0; for (int j=1;j<w.length();j++) sum+=w[j]-48; if (nums[i]>0) sum+=w[0]-48; else sum-=w[0]-48; sumdigit.push_back(sum); } int m; for (int i=0;i<nums.size();i++) for (int j=1;j<nums.size();j++) if (sumdigit[j-1]>sumdigit[j]) { m=sumdigit[j];sumdigit[j]=sumdigit[j-1];sumdigit[j-1]=m; m=nums[j];nums[j]=nums[j-1];nums[j-1]=m; } return nums; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(order_by_points({1, 11, -1, -11, -12}) , {-1, -11, 1, -12, 11})); assert (issame(order_by_points({1234,423,463,145,2,423,423,53,6,37,3457,3,56,0,46}) , {0, 2, 3, 6, 53, 423, 423, 423, 1234, 145, 37, 46, 56, 463, 3457})); assert (issame(order_by_points({}) , {})); assert (issame(order_by_points({1, -11, -32, 43, 54, -98, 2, -3}) , {-3, -32, -98, -11, 1, 2, 43, 54})); assert (issame(order_by_points({1,2,3,4,5,6,7,8,9,10,11}) , {1, 10, 2, 11, 3, 4, 5, 6, 7, 8, 9})); assert (issame(order_by_points({0,6,6,-76,-21,23,4}) , {-76, -21, 0, 4, 23, 6, 6})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(order_by_points({1, 11, -1, -11, -12}) , {-1, -11, 1, -12, 11})); assert (issame(order_by_points({}) , {})); }
; ModuleID = 'c_code/code_143.cpp' source_filename = "c_code/code_143.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.7" } %"class.std::__2::__compressed_pair.7" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.8" } %"struct.std::__2::__compressed_pair_elem.8" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z15order_by_pointsNSt3__26vectorIiNS_9allocatorIiEEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::vector", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #14 store ptr null, ptr %3, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 1 store ptr null, ptr %6, align 4, !tbaa !10 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 0, i32 2 store ptr null, ptr %7, align 4, !tbaa !11 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %4, i32 0, i32 2 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %4, i32 0, i32 1 br label %11 11: ; preds = %36, %2 %12 = phi i32 [ 0, %2 ], [ %49, %36 ] %13 = load ptr, ptr %8, align 4, !tbaa !10 %14 = load ptr, ptr %1, align 4, !tbaa !3 %15 = ptrtoint ptr %13 to i32 %16 = ptrtoint ptr %14 to i32 %17 = sub i32 %15, %16 %18 = ashr exact i32 %17, 2 %19 = icmp ult i32 %12, %18 br i1 %19, label %20, label %57 20: ; preds = %11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #14 %21 = getelementptr inbounds i32, ptr %14, i32 %12 %22 = load i32, ptr %21, align 4, !tbaa !12 %23 = call i32 @llvm.abs.i32(i32 %22, i1 true) call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, i32 noundef %23) #15 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #14 store i32 0, ptr %5, align 4, !tbaa !12 %24 = load i8, ptr %9, align 1 %25 = icmp slt i8 %24, 0 %26 = load i32, ptr %10, align 4 %27 = zext i8 %24 to i32 %28 = select i1 %25, i32 %26, i32 %27 %29 = load ptr, ptr %4, align 4 %30 = select i1 %25, ptr %29, ptr %4 %31 = call i32 @llvm.umax.i32(i32 %28, i32 1) br label %32 32: ; preds = %50, %20 %33 = phi i32 [ 0, %20 ], [ %55, %50 ] %34 = phi i32 [ 1, %20 ], [ %56, %50 ] %35 = icmp eq i32 %34, %31 br i1 %35, label %36, label %50 36: ; preds = %32 %37 = load ptr, ptr %1, align 4, !tbaa !3 %38 = getelementptr inbounds i32, ptr %37, i32 %12 %39 = load i32, ptr %38, align 4, !tbaa !12 %40 = icmp sgt i32 %39, 0 %41 = load i8, ptr %30, align 1, !tbaa !14 %42 = sext i8 %41 to i32 %43 = sub i32 %33, %42 %44 = add i32 %43, 48 %45 = add nsw i32 %42, -48 %46 = add nsw i32 %45, %33 %47 = select i1 %40, i32 %46, i32 %44 store i32 %47, ptr %5, align 4, !tbaa !12 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %5) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #14 %48 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #16 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #14 %49 = add nuw nsw i32 %12, 1 br label %11, !llvm.loop !15 50: ; preds = %32 %51 = getelementptr inbounds i8, ptr %30, i32 %34 %52 = load i8, ptr %51, align 1, !tbaa !14 %53 = sext i8 %52 to i32 %54 = add nsw i32 %53, -48 %55 = add nsw i32 %54, %33 store i32 %55, ptr %5, align 4, !tbaa !12 %56 = add nuw i32 %34, 1 br label %32, !llvm.loop !17 57: ; preds = %11, %68 %58 = phi i32 [ %69, %68 ], [ 0, %11 ] %59 = icmp eq i32 %58, %18 br i1 %59, label %62, label %60 60: ; preds = %57 %61 = load ptr, ptr %3, align 4 br label %65 62: ; preds = %57 %63 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 %64 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #16 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #14 ret void 65: ; preds = %60, %82 %66 = phi i32 [ %83, %82 ], [ 1, %60 ] %67 = icmp eq i32 %66, %18 br i1 %67, label %68, label %70 68: ; preds = %65 %69 = add nuw i32 %58, 1 br label %57, !llvm.loop !18 70: ; preds = %65 %71 = add nsw i32 %66, -1 %72 = getelementptr inbounds i32, ptr %61, i32 %71 %73 = load i32, ptr %72, align 4, !tbaa !12 %74 = getelementptr inbounds i32, ptr %61, i32 %66 %75 = load i32, ptr %74, align 4, !tbaa !12 %76 = icmp sgt i32 %73, %75 br i1 %76, label %77, label %82 77: ; preds = %70 store i32 %73, ptr %74, align 4, !tbaa !12 store i32 %75, ptr %72, align 4, !tbaa !12 %78 = getelementptr inbounds i32, ptr %14, i32 %66 %79 = load i32, ptr %78, align 4, !tbaa !12 %80 = getelementptr inbounds i32, ptr %14, i32 %71 %81 = load i32, ptr %80, align 4, !tbaa !12 store i32 %81, ptr %78, align 4, !tbaa !12 store i32 %79, ptr %80, align 4, !tbaa !12 br label %82 82: ; preds = %70, %77 %83 = add nuw i32 %66, 1 br label %65, !llvm.loop !19 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #0 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !20 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #15 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: inlinehint minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #3 comdat { store ptr null, ptr %0, align 4, !tbaa !3 %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %3, align 4, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %4, align 4, !tbaa !11 %5 = load ptr, ptr %1, align 4, !tbaa !3 store ptr %5, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !10 store ptr %7, ptr %3, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !20 store ptr %9, ptr %4, align 4, !tbaa !20 store ptr null, ptr %8, align 4, !tbaa !20 store ptr null, ptr %6, align 4, !tbaa !10 store ptr null, ptr %1, align 4, !tbaa !3 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #4 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #14 store ptr %0, ptr %2, align 4, !tbaa !20 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #16 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #14 ret ptr %0 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #6 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !21 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef nonnull %3) #17 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #7 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #14 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #15 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #15 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !23 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !23 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #15 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #16 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #14 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #7 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !20 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !20 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #15, !noalias !27 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !30 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !23 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !31 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !20 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !31 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !32 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !32 br label %8, !llvm.loop !37 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !31 %17 = load ptr, ptr %0, align 4, !tbaa !20 store ptr %10, ptr %0, align 4, !tbaa !20 store ptr %17, ptr %6, align 4, !tbaa !20 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !20 %20 = load ptr, ptr %18, align 4, !tbaa !20 store ptr %20, ptr %3, align 4, !tbaa !20 store ptr %19, ptr %18, align 4, !tbaa !20 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !20 %24 = load ptr, ptr %22, align 4, !tbaa !20 store ptr %24, ptr %21, align 4, !tbaa !20 store ptr %23, ptr %22, align 4, !tbaa !20 %25 = load ptr, ptr %6, align 4, !tbaa !31 store ptr %25, ptr %1, align 4, !tbaa !30 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #4 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #16 %2 = load ptr, ptr %0, align 4, !tbaa !30 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #18 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #14 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #15 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #19 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #15 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !38 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #4 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #6 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #18 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #20 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #14 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #16 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #19 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !31 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #16 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !23 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !23 br label %5, !llvm.loop !40 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #13 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #13 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #14 = { nounwind } attributes #15 = { minsize optsize } attributes #16 = { minsize nounwind optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { minsize noreturn optsize } attributes #19 = { noreturn } attributes #20 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = !{!6, !6, i64 0} !15 = distinct !{!15, !16} !16 = !{!"llvm.loop.mustprogress"} !17 = distinct !{!17, !16} !18 = distinct !{!18, !16} !19 = distinct !{!19, !16} !20 = !{!5, !5, i64 0} !21 = !{!22, !5, i64 0} !22 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !23 = !{!24, !5, i64 8} !24 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !25, i64 12} !25 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !26, i64 4} !26 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !27 = !{!28} !28 = distinct !{!28, !29, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !29 = distinct !{!29, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !30 = !{!24, !5, i64 0} !31 = !{!24, !5, i64 4} !32 = !{!33, !35} !33 = distinct !{!33, !34, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !34 = distinct !{!34, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !35 = distinct !{!35, !36, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !36 = distinct !{!36, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !37 = distinct !{!37, !16} !38 = !{!39, !39, i64 0} !39 = !{!"vtable pointer", !7, i64 0} !40 = distinct !{!40, !16}
(module $code_143.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $order_by_points_std::__2::vector<int__std::__2::allocator<int>>_ (type 0) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 0 i32.store offset=28 local.get 3 i64.const 0 i64.store offset=20 align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 4 i32.sub i32.const 2 i32.shr_s local.tee 5 local.get 8 i32.le_u if ;; label = @2 loop ;; label = @3 local.get 5 local.get 10 i32.ne if ;; label = @4 i32.const 1 local.set 2 local.get 3 i32.load offset=20 local.set 8 loop ;; label = @5 local.get 2 local.get 5 i32.eq if ;; label = @6 local.get 10 i32.const 1 i32.add local.set 10 br 3 (;@3;) end local.get 8 local.get 2 i32.const 1 i32.sub i32.const 2 i32.shl local.tee 9 i32.add local.tee 6 i32.load local.tee 7 local.get 8 local.get 2 i32.const 2 i32.shl local.tee 11 i32.add local.tee 12 i32.load local.tee 13 i32.gt_s if ;; label = @6 local.get 12 local.get 7 i32.store local.get 6 local.get 13 i32.store local.get 4 local.get 11 i32.add local.tee 6 i32.load local.set 7 local.get 6 local.get 4 local.get 9 i32.add local.tee 9 i32.load i32.store local.get 9 local.get 7 i32.store end local.get 2 i32.const 1 i32.add local.set 2 br 0 (;@5;) end unreachable end end local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 0 local.get 1 i32.load i32.store local.get 0 local.get 1 i32.load offset=4 i32.store offset=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 3 i32.const 20 i32.add i32.store offset=12 local.get 0 i32.load offset=12 local.tee 2 i32.load local.tee 1 if ;; label = @3 local.get 2 local.get 1 i32.store offset=4 local.get 1 call $operator_delete_void*_ end local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.const 32 i32.add global.set $__stack_pointer return end local.get 3 i32.const 8 i32.add local.tee 5 local.get 4 local.get 8 i32.const 2 i32.shl local.tee 9 i32.add i32.load local.tee 2 local.get 2 i32.const 31 i32.shr_s local.tee 2 i32.xor local.get 2 i32.sub call $std::__2::to_string_int_ i32.const 0 local.set 4 local.get 3 i32.const 0 i32.store offset=4 i32.const 1 local.set 2 i32.const 1 local.get 3 i32.load offset=12 local.get 3 i32.load8_s offset=19 local.tee 6 i32.const 255 i32.and local.get 6 i32.const 0 i32.lt_s local.tee 6 select local.tee 7 local.get 7 i32.const 1 i32.le_u select local.set 7 local.get 3 i32.load offset=8 local.get 5 local.get 6 select local.set 5 loop ;; label = @2 local.get 2 local.get 7 i32.eq if ;; label = @3 local.get 3 local.get 4 local.get 5 i32.load8_s local.tee 2 i32.add i32.const 48 i32.sub local.get 4 local.get 2 i32.sub i32.const 48 i32.add local.get 1 i32.load local.get 9 i32.add i32.load i32.const 0 i32.gt_s select i32.store offset=4 local.get 8 i32.const 1 i32.add local.set 8 local.get 3 i32.const 4 i32.add local.set 4 block ;; label = @4 local.get 3 i32.const 20 i32.add local.tee 2 i32.load offset=4 local.tee 5 local.get 2 i32.load offset=8 i32.ne if ;; label = @5 local.get 5 local.get 4 i32.load i32.store local.get 2 local.get 5 i32.const 4 i32.add i32.store offset=4 br 1 (;@4;) end local.get 2 local.get 4 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end local.get 3 i32.const 8 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 2 (;@1;) else local.get 3 local.get 4 local.get 2 local.get 5 i32.add i32.load8_s i32.add i32.const 48 i32.sub local.tee 4 i32.store offset=4 local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@2;) end unreachable end unreachable end unreachable) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z15order_by_pointsNSt3__26vectorIiNS_9allocatorIiEEEE" (func $order_by_points_std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/146
/* Write a function that takes a vector of numbers as input and returns the number of elements in the vector that are greater than 10 and both first and last digits of a number are odd (1, 3, 5, 7, 9). For example: specialFilter({15, -73, 14, -15}) => 1 specialFilter({33, -2, -3, 45, 21, 109}) => 2 */ #include<stdio.h> #include<vector> #include<string> using namespace std; int specialFilter(vector<int> nums){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> int specialFilter(vector<int> nums){
int num=0; for (int i=0;i<nums.size();i++) if (nums[i]>10) { string w=to_string(nums[i]); if (w[0]%2==1 and w[w.length()-1]%2==1) num+=1; } return num; }
#undef NDEBUG #include<assert.h> int main(){ assert (specialFilter({5, -2, 1, -5}) == 0 ); assert (specialFilter({15, -73, 14, -15}) == 1); assert (specialFilter({33, -2, -3, 45, 21, 109}) == 2); assert (specialFilter({43, -12, 93, 125, 121, 109}) == 4); assert (specialFilter({71, -2, -33, 75, 21, 19}) == 3); assert (specialFilter({1}) == 0 ); assert (specialFilter({}) == 0 ); }
#undef NDEBUG #include<assert.h> int main(){ assert (specialFilter({15, -73, 14, -15}) == 1); assert (specialFilter({33, -2, -3, 45, 21, 109}) == 2); }
; ModuleID = 'c_code/code_144.cpp' source_filename = "c_code/code_144.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } ; Function Attrs: minsize mustprogress optsize define noundef i32 @_Z13specialFilterNSt3__26vectorIiNS_9allocatorIiEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = alloca %"class.std::__2::basic_string", align 4 %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 br label %6 6: ; preds = %45, %1 %7 = phi i32 [ 0, %1 ], [ %46, %45 ] %8 = phi i32 [ 0, %1 ], [ %47, %45 ] %9 = load ptr, ptr %3, align 4, !tbaa !3 %10 = load ptr, ptr %0, align 4, !tbaa !10 %11 = ptrtoint ptr %9 to i32 %12 = ptrtoint ptr %10 to i32 %13 = sub i32 %11, %12 %14 = ashr exact i32 %13, 2 %15 = icmp ult i32 %8, %14 br i1 %15, label %17, label %16 16: ; preds = %6 ret i32 %7 17: ; preds = %6 %18 = getelementptr inbounds i32, ptr %10, i32 %8 %19 = load i32, ptr %18, align 4, !tbaa !11 %20 = icmp sgt i32 %19, 10 br i1 %20, label %21, label %45 21: ; preds = %17 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #4 call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %2, i32 noundef %19) #5 %22 = load i8, ptr %4, align 1 %23 = icmp slt i8 %22, 0 %24 = load ptr, ptr %2, align 4 %25 = select i1 %23, ptr %24, ptr %2 %26 = load i8, ptr %25, align 1, !tbaa !13 %27 = sext i8 %26 to i32 %28 = and i32 %27, -2147483647 %29 = icmp eq i32 %28, 1 br i1 %29, label %30, label %42 30: ; preds = %21 %31 = load i32, ptr %5, align 4 %32 = zext i8 %22 to i32 %33 = select i1 %23, i32 %31, i32 %32 %34 = add i32 %33, -1 %35 = getelementptr inbounds i8, ptr %25, i32 %34 %36 = load i8, ptr %35, align 1, !tbaa !13 %37 = sext i8 %36 to i32 %38 = and i32 %37, -2147483647 %39 = icmp eq i32 %38, 1 %40 = zext i1 %39 to i32 %41 = add nsw i32 %7, %40 br label %42 42: ; preds = %30, %21 %43 = phi i32 [ %7, %21 ], [ %41, %30 ] %44 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #6 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #4 br label %45 45: ; preds = %17, %42 %46 = phi i32 [ %43, %42 ], [ %7, %17 ] %47 = add nuw nsw i32 %8, 1 br label %6, !llvm.loop !14 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #2 ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { nounwind } attributes #5 = { minsize optsize } attributes #6 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"int", !6, i64 0} !13 = !{!6, !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"}
(module $code_144.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func)) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 2)) (func $specialFilter_std::__2::vector<int__std::__2::allocator<int>>_ (type 0) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer loop ;; label = @1 local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 2 i32.sub i32.const 2 i32.shr_s local.get 4 i32.gt_u if ;; label = @2 local.get 2 local.get 4 i32.const 2 i32.shl i32.add i32.load local.tee 2 i32.const 11 i32.ge_s if ;; label = @3 local.get 1 i32.const 4 i32.add local.tee 5 local.get 2 call $std::__2::to_string_int_ local.get 1 i32.load offset=4 local.get 5 local.get 1 i32.load8_u offset=15 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 5 select local.tee 6 i32.load8_s i32.const -2147483647 i32.and i32.const 1 i32.eq if ;; label = @4 local.get 3 local.get 1 i32.load offset=8 local.get 2 local.get 5 select local.get 6 i32.add i32.const 1 i32.sub i32.load8_s i32.const -2147483647 i32.and i32.const 1 i32.eq i32.add local.set 3 end local.get 1 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 4 i32.const 1 i32.add local.set 4 br 1 (;@1;) end end local.get 1 i32.const 16 i32.add global.set $__stack_pointer local.get 3) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z13specialFilterNSt3__26vectorIiNS_9allocatorIiEEEE" (func $specialFilter_std::__2::vector<int__std::__2::allocator<int>>_)))
CPP/147
/* You are given a positive integer n. You have to create an integer vector a of length n. For each i (1 ≤ i ≤ n), the value of a{i} = i * i - i + 1. Return the number of triples (a{i}, a{j}, a{k}) of a where i < j < k, and a[i] + a[j] + a[k] is a multiple of 3. Example : Input: n = 5 Output: 1 Explanation: a = {1, 3, 7, 13, 21} The only valid triple is (1, 7, 13). */ #include<stdio.h> #include<vector> using namespace std; int get_matrix_triples(int n){
#include<stdio.h> #include<vector> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> int get_matrix_triples(int n){
vector<int> a; vector<vector<int>> sum={{0,0,0}}; vector<vector<int>> sum2={{0,0,0}}; for (int i=1;i<=n;i++) { a.push_back((i*i-i+1)%3); sum.push_back(sum[sum.size()-1]); sum[i][a[i-1]]+=1; } for (int times=1;times<3;times++) { for (int i=1;i<=n;i++) { sum2.push_back(sum2[sum2.size()-1]); if (i>=1) for (int j=0;j<=2;j++) sum2[i][(a[i-1]+j)%3]+=sum[i-1][j]; } sum=sum2; sum2={{0,0,0}}; } return sum[n][0]; }
#undef NDEBUG #include<assert.h> int main(){ assert (get_matrix_triples(5) == 1); assert (get_matrix_triples(6) == 4); assert (get_matrix_triples(10) == 36); assert (get_matrix_triples(100) == 53361); }
#undef NDEBUG #include<assert.h> int main(){ assert (get_matrix_triples(5) == 1); }
; ModuleID = 'c_code/code_145.cpp' source_filename = "c_code/code_145.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::vector.1" = type { ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"class.std::initializer_list.8" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.10" = type <{ %"class.std::__2::vector<std::__2::vector<int>>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<std::__2::vector<int>>::__destroy_vector" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.13" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.19" } %"class.std::__2::__compressed_pair.19" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.20" } %"struct.std::__2::__compressed_pair_elem.20" = type { ptr } %"struct.std::__2::__split_buffer.23" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.24" } %"class.std::__2::__compressed_pair.24" = type { %"struct.std::__2::__compressed_pair_elem.3", %"struct.std::__2::__compressed_pair_elem.25" } %"struct.std::__2::__compressed_pair_elem.25" = type { ptr } %"class.std::__2::reverse_iterator.18" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.26" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse.27", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse.27" = type { ptr, ptr, ptr } %"struct.std::__2::pair.30" = type { ptr, ptr } %"struct.std::__2::__overload" = type { i8 } %"struct.std::__2::pair.32" = type { ptr, ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEC2B7v160006ESt16initializer_listIS3_E = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE9push_backB7v160006ERKS3_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEaSB7v160006ERKS5_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_6vectorIiNS0_IiEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPKS4_S7_PS4_EET2_RT_T0_T1_S9_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEEPS5_EEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_EclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_EEvRT_T0_T1_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE7__clearB7v160006Ev = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__base_destruct_at_endB7v160006EPS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__construct_one_at_endB7v160006IJRKS3_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE21__push_back_slow_pathIRKS3_EEvOT_ = comdat any $_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEEC2EmmS6_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS3_RS4_EE = comdat any $_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEED2Ev = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_S8_EET2_RT_T0_T1_S9_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_ = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorINS6_IPS4_EEEES9_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE17__destruct_at_endB7v160006EPS4_NS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPS3_Li0EEEvT_S8_ = comdat any $_ZNSt3__24copyB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EET0_T_S7_S6_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE13__vdeallocateEv = comdat any $_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPNS_6vectorIiNS_9allocatorIiEEEESB_SB_Li0EEENS_4pairIT0_T2_EESD_T1_SE_ = comdat any $_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES8_S8_EENS_4pairIT_T1_EESA_T0_SB_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEaSB7v160006ERKS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE6assignIPiLi0EEEvT_S6_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE13__vdeallocateEv = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_S6_S6_EET2_RT_T0_T1_S7_ = comdat any $_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPKS3_Li0EEEvT_S9_ = comdat any $_ZNSt3__24copyB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EET0_T_S9_S8_ = comdat any $_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKNS_6vectorIiNS_9allocatorIiEEEESC_PSA_Li0EEENS_4pairIT0_T2_EESF_T1_SG_ = comdat any $_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEES9_PS7_EENS_4pairIT_T1_EESC_T0_SD_ = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define noundef i32 @_Z18get_matrix_triplesi(i32 noundef %0) local_unnamed_addr #0 { %2 = alloca %"class.std::__2::vector", align 4 %3 = alloca %"class.std::__2::vector.1", align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [1 x %"class.std::__2::vector"], align 4 %6 = alloca %"class.std::initializer_list.8", align 4 %7 = alloca [3 x i32], align 4 %8 = alloca %"class.std::__2::vector.1", align 4 %9 = alloca %"class.std::initializer_list", align 4 %10 = alloca [1 x %"class.std::__2::vector"], align 4 %11 = alloca %"class.std::initializer_list.8", align 4 %12 = alloca [3 x i32], align 4 %13 = alloca i32, align 4 %14 = alloca [1 x %"class.std::__2::vector"], align 4 %15 = alloca %"class.std::initializer_list.8", align 4 %16 = alloca [3 x i32], align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #15 store ptr null, ptr %2, align 4, !tbaa !3 %17 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr null, ptr %17, align 4, !tbaa !10 %18 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 2 store ptr null, ptr %18, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #15 store i32 0, ptr %7, align 4, !tbaa !12 %19 = getelementptr inbounds i32, ptr %7, i32 1 store i32 0, ptr %19, align 4, !tbaa !12 %20 = getelementptr inbounds i32, ptr %7, i32 2 store i32 0, ptr %20, align 4, !tbaa !12 store ptr %7, ptr %6, align 4, !tbaa !14 %21 = getelementptr inbounds %"class.std::initializer_list.8", ptr %6, i32 0, i32 1 store i32 3, ptr %21, align 4, !tbaa !17 %22 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull byval(%"class.std::initializer_list.8") align 4 %6) #16 store ptr %5, ptr %4, align 4, !tbaa !18 %23 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 1, ptr %23, align 4, !tbaa !20 %24 = call noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEC2B7v160006ESt16initializer_listIS3_E(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4) #16 %25 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #15 store i32 0, ptr %12, align 4, !tbaa !12 %26 = getelementptr inbounds i32, ptr %12, i32 1 store i32 0, ptr %26, align 4, !tbaa !12 %27 = getelementptr inbounds i32, ptr %12, i32 2 store i32 0, ptr %27, align 4, !tbaa !12 store ptr %12, ptr %11, align 4, !tbaa !14 %28 = getelementptr inbounds %"class.std::initializer_list.8", ptr %11, i32 0, i32 1 store i32 3, ptr %28, align 4, !tbaa !17 %29 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull byval(%"class.std::initializer_list.8") align 4 %11) #16 store ptr %10, ptr %9, align 4, !tbaa !18 %30 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1 store i32 1, ptr %30, align 4, !tbaa !20 %31 = call noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEC2B7v160006ESt16initializer_listIS3_E(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %9) #16 %32 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #15 %33 = getelementptr inbounds %"class.std::__2::vector.1", ptr %3, i32 0, i32 1 %34 = call i32 @llvm.smax.i32(i32 %0, i32 0) %35 = add nuw i32 %34, 1 br label %36 36: ; preds = %45, %1 %37 = phi i32 [ 1, %1 ], [ %67, %45 ] %38 = icmp eq i32 %37, %35 br i1 %38, label %39, label %45 39: ; preds = %36 %40 = getelementptr inbounds %"class.std::__2::vector.1", ptr %8, i32 0, i32 1 %41 = getelementptr inbounds i32, ptr %16, i32 1 %42 = getelementptr inbounds i32, ptr %16, i32 2 %43 = getelementptr inbounds %"class.std::initializer_list.8", ptr %15, i32 0, i32 1 %44 = getelementptr inbounds %"class.std::__2::vector", ptr %14, i32 1 br label %68 45: ; preds = %36 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #15 %46 = add nsw i32 %37, -1 %47 = mul i32 %46, %37 %48 = add nuw nsw i32 %47, 1 %49 = srem i32 %48, 3 store i32 %49, ptr %13, align 4, !tbaa !12 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(4) %13) #16 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #15 %50 = load ptr, ptr %33, align 4, !tbaa !21 %51 = load ptr, ptr %3, align 4, !tbaa !25 %52 = ptrtoint ptr %50 to i32 %53 = ptrtoint ptr %51 to i32 %54 = sub i32 %52, %53 %55 = sdiv exact i32 %54, 12 %56 = add nsw i32 %55, -1 %57 = getelementptr inbounds %"class.std::__2::vector", ptr %51, i32 %56 call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE9push_backB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %57) #16 %58 = load ptr, ptr %3, align 4, !tbaa !25 %59 = getelementptr inbounds %"class.std::__2::vector", ptr %58, i32 %37 %60 = load ptr, ptr %2, align 4, !tbaa !3 %61 = getelementptr inbounds i32, ptr %60, i32 %46 %62 = load i32, ptr %61, align 4, !tbaa !12 %63 = load ptr, ptr %59, align 4, !tbaa !3 %64 = getelementptr inbounds i32, ptr %63, i32 %62 %65 = load i32, ptr %64, align 4, !tbaa !12 %66 = add nsw i32 %65, 1 store i32 %66, ptr %64, align 4, !tbaa !12 %67 = add nuw i32 %37, 1 br label %36, !llvm.loop !26 68: ; preds = %39, %82 %69 = phi i32 [ %86, %82 ], [ 1, %39 ] %70 = icmp eq i32 %69, 3 br i1 %70, label %71, label %79 71: ; preds = %68 %72 = load ptr, ptr %3, align 4, !tbaa !25 %73 = getelementptr inbounds %"class.std::__2::vector", ptr %72, i32 %0 %74 = load ptr, ptr %73, align 4, !tbaa !3 %75 = load i32, ptr %74, align 4, !tbaa !12 %76 = call noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #15 %77 = call noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #15 %78 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #15 ret i32 %75 79: ; preds = %68, %118 %80 = phi i32 [ %119, %118 ], [ 1, %68 ] %81 = icmp eq i32 %80, %35 br i1 %81, label %82, label %87 82: ; preds = %79 %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEaSB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %8) #16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #15 store i32 0, ptr %16, align 4, !tbaa !12 store i32 0, ptr %41, align 4, !tbaa !12 store i32 0, ptr %42, align 4, !tbaa !12 store ptr %16, ptr %15, align 4, !tbaa !14 store i32 3, ptr %43, align 4, !tbaa !17 %84 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull byval(%"class.std::initializer_list.8") align 4 %15) #16 call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPKS3_Li0EEEvT_S9_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull %14, ptr noundef nonnull %44) #16 %85 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #15 %86 = add nuw nsw i32 %69, 1 br label %68, !llvm.loop !28 87: ; preds = %79 %88 = load ptr, ptr %40, align 4, !tbaa !21 %89 = load ptr, ptr %8, align 4, !tbaa !25 %90 = ptrtoint ptr %88 to i32 %91 = ptrtoint ptr %89 to i32 %92 = sub i32 %90, %91 %93 = sdiv exact i32 %92, 12 %94 = add nsw i32 %93, -1 %95 = getelementptr inbounds %"class.std::__2::vector", ptr %89, i32 %94 call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE9push_backB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %95) #16 %96 = add nsw i32 %80, -1 %97 = load ptr, ptr %3, align 4, !tbaa !25 %98 = getelementptr inbounds %"class.std::__2::vector", ptr %97, i32 %96 %99 = load ptr, ptr %98, align 4, !tbaa !3 %100 = load ptr, ptr %8, align 4, !tbaa !25 %101 = getelementptr inbounds %"class.std::__2::vector", ptr %100, i32 %80 %102 = load ptr, ptr %2, align 4, !tbaa !3 %103 = getelementptr inbounds i32, ptr %102, i32 %96 %104 = load ptr, ptr %101, align 4, !tbaa !3 br label %105 105: ; preds = %108, %87 %106 = phi i32 [ 0, %87 ], [ %117, %108 ] %107 = icmp eq i32 %106, 3 br i1 %107, label %118, label %108 108: ; preds = %105 %109 = getelementptr inbounds i32, ptr %99, i32 %106 %110 = load i32, ptr %109, align 4, !tbaa !12 %111 = load i32, ptr %103, align 4, !tbaa !12 %112 = add nsw i32 %111, %106 %113 = srem i32 %112, 3 %114 = getelementptr inbounds i32, ptr %104, i32 %113 %115 = load i32, ptr %114, align 4, !tbaa !12 %116 = add nsw i32 %115, %110 store i32 %116, ptr %114, align 4, !tbaa !12 %117 = add nuw nsw i32 %106, 1 br label %105, !llvm.loop !29 118: ; preds = %105 %119 = add nuw i32 %80, 1 br label %79, !llvm.loop !30 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list.8") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #15 store ptr %0, ptr %3, align 4, !tbaa.struct !31, !alias.scope !33 %6 = getelementptr inbounds %"class.std::initializer_list.8", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !17 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 %10 = load ptr, ptr %1, align 4, !tbaa !14 %11 = load ptr, ptr %4, align 4, !tbaa !10 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !36 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !10 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !47 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #17 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #15 ret ptr %0 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEC2B7v160006ESt16initializer_listIS3_E(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions.10", align 4 store ptr null, ptr %0, align 4, !tbaa !25 %4 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !21 %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !51 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #15 store ptr %0, ptr %3, align 4, !tbaa.struct !31, !alias.scope !52 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !20 %8 = icmp eq i32 %7, 0 br i1 %8, label %12, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 %10 = load ptr, ptr %1, align 4, !tbaa !18 %11 = getelementptr inbounds %"class.std::__2::vector", ptr %10, i32 %7 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %10, ptr noundef nonnull %11, i32 noundef %7) #16 br label %12 12: ; preds = %9, %2 %13 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.10", ptr %3, i32 0, i32 1 store i8 1, ptr %13, align 4, !tbaa !55 %14 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #17 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #15 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #3 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #15 store ptr %0, ptr %2, align 4, !tbaa !32 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #17 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #15 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !32 %7 = icmp ult ptr %4, %6 br i1 %7, label %8, label %11 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #16 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE9push_backB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !21 %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !32 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__construct_one_at_endB7v160006IJRKS3_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE21__push_back_slow_pathIRKS3_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEaSB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = icmp eq ptr %0, %1 br i1 %3, label %8, label %4 4: ; preds = %2 %5 = load ptr, ptr %1, align 4, !tbaa !25 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !21 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPS3_Li0EEEvT_S8_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %5, ptr noundef %7) #16 br label %8 8: ; preds = %4, %2 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #3 comdat { %2 = alloca %"class.std::__2::vector<std::__2::vector<int>>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #15 store ptr %0, ptr %2, align 4, !tbaa !32 call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #17 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #15 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #5 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !58 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef nonnull %3) #18 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #6 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #16, !noalias !59 store ptr %7, ptr %0, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !32 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !47, !range !62, !noundef !63 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #17 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #19 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #15 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #16 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #20 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #16 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !64 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #3 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #19 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #21 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #15 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #17 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #20 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorINS_6vectorIiNS0_IiEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #16, !noalias !66 store ptr %7, ptr %0, align 4, !tbaa !25 %8 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !21 %9 = getelementptr inbounds %"class.std::__2::vector", ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !32 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !21 %7 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPKS4_S7_PS4_EET2_RT_T0_T1_S9_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #16 store ptr %8, ptr %5, align 4, !tbaa !21 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.10", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !55, !range !62, !noundef !63 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #17 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #19 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_6vectorIiNS0_IiEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #19 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #21 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPKS4_S7_PS4_EET2_RT_T0_T1_S9_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.13", align 4 store ptr %3, ptr %5, align 4, !tbaa !32 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #15 store ptr %3, ptr %6, align 4, !tbaa !32 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #15 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #16 %16 = getelementptr inbounds %"class.std::__2::vector", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !32 %18 = getelementptr inbounds %"class.std::__2::vector", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !32 br label %10, !llvm.loop !69 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !70 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEEPS5_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #17 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #15 ret ptr %11 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEEPS5_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !70, !range !62, !noundef !63 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #15 store ptr %0, ptr %3, align 4, !tbaa.struct !31, !alias.scope !73 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !10 %8 = load ptr, ptr %1, align 4, !tbaa !3 %9 = icmp eq ptr %7, %8 br i1 %9, label %17, label %10 10: ; preds = %2 %11 = ptrtoint ptr %8 to i32 %12 = ptrtoint ptr %7 to i32 %13 = sub i32 %12, %11 %14 = ashr exact i32 %13, 2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %14) #16 %15 = load ptr, ptr %1, align 4, !tbaa !3 %16 = load ptr, ptr %6, align 4, !tbaa !10 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %15, ptr noundef %16, i32 noundef %14) #16 br label %17 17: ; preds = %10, %2 %18 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %18, align 4, !tbaa !47 %19 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #17 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #15 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 br label %7 7: ; preds = %11, %4 %8 = phi ptr [ %6, %4 ], [ %14, %11 ] %9 = phi ptr [ %1, %4 ], [ %13, %11 ] %10 = icmp eq ptr %9, %2 br i1 %10, label %15, label %11 11: ; preds = %7 %12 = load i32, ptr %9, align 4, !tbaa !12 store i32 %12, ptr %8, align 4, !tbaa !12 %13 = getelementptr inbounds i32, ptr %9, i32 1 %14 = getelementptr inbounds i32, ptr %8, i32 1 br label %7, !llvm.loop !76 15: ; preds = %7 store ptr %8, ptr %5, align 4, !tbaa !10 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !77 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !78 %5 = load ptr, ptr %4, align 4, !tbaa !32 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !79 %8 = load ptr, ptr %7, align 4, !tbaa !32 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #16 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #5 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %8, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %5, i32 -1 %9 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #17 br label %4, !llvm.loop !80 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #5 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !81 %3 = load ptr, ptr %2, align 4, !tbaa !25 %4 = icmp eq ptr %3, null br i1 %4, label %8, label %5 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #17 %6 = load ptr, ptr %0, align 4, !tbaa !81 %7 = load ptr, ptr %6, align 4, !tbaa !25 tail call void @_ZdlPv(ptr noundef %7) #18 br label %8 8: ; preds = %5, %1 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #11 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !25 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__base_destruct_at_endB7v160006EPS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %2) #17 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__base_destruct_at_endB7v160006EPS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !21 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %4, %2 ], [ %9, %8 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %11, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::vector", ptr %6, i32 -1 %10 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #17 br label %5, !llvm.loop !82 11: ; preds = %5 store ptr %1, ptr %3, align 4, !tbaa !21 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #15 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #16 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !83 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !83 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #16 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #17 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !32 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !32 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #16, !noalias !87 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !90 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !83 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !91 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !32 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !91 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !92 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !92 br label %8, !llvm.loop !97 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !91 %17 = load ptr, ptr %0, align 4, !tbaa !32 store ptr %10, ptr %0, align 4, !tbaa !32 store ptr %17, ptr %6, align 4, !tbaa !32 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !32 %20 = load ptr, ptr %18, align 4, !tbaa !32 store ptr %20, ptr %3, align 4, !tbaa !32 store ptr %19, ptr %18, align 4, !tbaa !32 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !32 %24 = load ptr, ptr %22, align 4, !tbaa !32 store ptr %24, ptr %21, align 4, !tbaa !32 store ptr %23, ptr %22, align 4, !tbaa !32 %25 = load ptr, ptr %6, align 4, !tbaa !91 store ptr %25, ptr %1, align 4, !tbaa !90 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #3 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #17 %2 = load ptr, ptr %0, align 4, !tbaa !90 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #18 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !91 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #17 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !83 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !83 br label %5, !llvm.loop !98 10: ; preds = %5 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__construct_one_at_endB7v160006IJRKS3_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !21 %5 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !21 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE21__push_back_slow_pathIRKS3_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer.23", align 4 %4 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #15 %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !21 %7 = load ptr, ptr %0, align 4, !tbaa !25 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #16 %14 = load ptr, ptr %5, align 4, !tbaa !21 %15 = load ptr, ptr %0, align 4, !tbaa !25 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEEC2EmmS6_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !99 %23 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #16 %24 = load ptr, ptr %21, align 4, !tbaa !99 %25 = getelementptr inbounds %"class.std::__2::vector", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !99 call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS3_RS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #16 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #17 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !32 %8 = load ptr, ptr %0, align 4, !tbaa !25 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEEC2EmmS6_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !51 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !32 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_6vectorIiNS0_IiEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #16, !noalias !103 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !106 %12 = getelementptr inbounds %"class.std::__2::vector", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !99 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !107 %15 = getelementptr inbounds %"class.std::__2::vector", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !32 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS3_RS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !21 %6 = load ptr, ptr %0, align 4, !tbaa !25 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !107 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_S8_EET2_RT_T0_T1_S9_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #16 store ptr %9, ptr %7, align 4, !tbaa !107 %10 = load ptr, ptr %0, align 4, !tbaa !32 store ptr %9, ptr %0, align 4, !tbaa !32 store ptr %10, ptr %7, align 4, !tbaa !32 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !32 %13 = load ptr, ptr %11, align 4, !tbaa !32 store ptr %13, ptr %4, align 4, !tbaa !32 store ptr %12, ptr %11, align 4, !tbaa !32 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !32 %16 = load ptr, ptr %14, align 4, !tbaa !32 store ptr %16, ptr %3, align 4, !tbaa !32 store ptr %15, ptr %14, align 4, !tbaa !32 %17 = load ptr, ptr %7, align 4, !tbaa !107 store ptr %17, ptr %1, align 4, !tbaa !106 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #3 comdat { tail call void @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #17 %2 = load ptr, ptr %0, align 4, !tbaa !106 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #18 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EES8_S8_EET2_RT_T0_T1_S9_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator.18", align 4 %6 = alloca %"class.std::__2::reverse_iterator.18", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.26", align 4 store ptr %3, ptr %5, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #15 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !32 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #15 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 %11 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.26", ptr %7, i32 0, i32 1 store i8 0, ptr %11, align 4, !tbaa !108, !alias.scope !111 br label %12 12: ; preds = %16, %4 %13 = phi ptr [ %3, %4 ], [ %21, %16 ] %14 = phi ptr [ %1, %4 ], [ %18, %16 ] %15 = icmp eq ptr %14, %2 br i1 %15, label %22, label %16 16: ; preds = %12 %17 = getelementptr inbounds %"class.std::__2::vector", ptr %13, i32 -1 %18 = getelementptr inbounds %"class.std::__2::vector", ptr %14, i32 -1 %19 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %18) #17 %20 = load ptr, ptr %5, align 4, !tbaa !114 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %20, i32 -1 store ptr %21, ptr %5, align 4, !tbaa !114 br label %12, !llvm.loop !116 22: ; preds = %12 store i8 1, ptr %11, align 4, !tbaa !108 %23 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #17 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #15 ret ptr %13 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.26", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !108, !range !62, !noundef !63 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: inlinehint minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006EOS3_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #13 comdat { store ptr null, ptr %0, align 4, !tbaa !3 %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %3, align 4, !tbaa !10 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %4, align 4, !tbaa !11 %5 = load ptr, ptr %1, align 4, !tbaa !3 store ptr %5, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !10 store ptr %7, ptr %3, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !32 store ptr %9, ptr %4, align 4, !tbaa !32 store ptr null, ptr %8, align 4, !tbaa !32 store ptr null, ptr %6, align 4, !tbaa !10 store ptr null, ptr %1, align 4, !tbaa !3 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !117 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.27", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !118 %5 = load ptr, ptr %4, align 4, !tbaa.struct !31 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.27", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !119 %8 = load ptr, ptr %7, align 4, !tbaa.struct !31 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorINS6_IPS4_EEEES9_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #16 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorINS6_IPS4_EEEES9_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #5 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #17 %9 = getelementptr inbounds %"class.std::__2::vector", ptr %5, i32 1 br label %4, !llvm.loop !120 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #11 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !107 tail call void @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE17__destruct_at_endB7v160006EPS4_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #17 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEE17__destruct_at_endB7v160006EPS4_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #12 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer.23", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !99 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !99 %9 = tail call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #17 br label %4, !llvm.loop !121 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPS3_Li0EEEvT_S8_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #5 comdat { %4 = ptrtoint ptr %2 to i32 %5 = ptrtoint ptr %1 to i32 %6 = sub i32 %4, %5 %7 = sdiv exact i32 %6, 12 %8 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !32 %10 = load ptr, ptr %0, align 4, !tbaa !25 %11 = ptrtoint ptr %9 to i32 %12 = ptrtoint ptr %10 to i32 %13 = sub i32 %11, %12 %14 = sdiv exact i32 %13, 12 %15 = icmp ugt i32 %7, %14 br i1 %15, label %35, label %16 16: ; preds = %3 %17 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %18 = load ptr, ptr %17, align 4, !tbaa !21 %19 = ptrtoint ptr %18 to i32 %20 = sub i32 %19, %12 %21 = sdiv exact i32 %20, 12 %22 = icmp ugt i32 %7, %21 %23 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 %21 %24 = select i1 %22, ptr %23, ptr %2 %25 = tail call noundef ptr @_ZNSt3__24copyB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EET0_T_S7_S6_(ptr noundef %1, ptr noundef %24, ptr noundef %10) #16 br i1 %22, label %26, label %34 26: ; preds = %16 %27 = load ptr, ptr %17, align 4, !tbaa !21 %28 = load ptr, ptr %0, align 4, !tbaa !25 %29 = ptrtoint ptr %27 to i32 %30 = ptrtoint ptr %28 to i32 %31 = sub i32 %29, %30 %32 = sdiv exact i32 %31, -12 %33 = add nsw i32 %32, %7 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %23, ptr noundef %2, i32 noundef %33) #16 br label %37 34: ; preds = %16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__base_destruct_at_endB7v160006EPS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %25) #17 br label %37 35: ; preds = %3 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE13__vdeallocateEv(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 %36 = tail call noundef i32 @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %36) #16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %7) #16 br label %37 37: ; preds = %26, %34, %35 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__24copyB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EET0_T_S7_S6_(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 comdat { %4 = alloca %"struct.std::__2::pair.30", align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #15 call void @_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPNS_6vectorIiNS_9allocatorIiEEEESB_SB_Li0EEENS_4pairIT0_T2_EESD_T1_SE_(ptr nonnull sret(%"struct.std::__2::pair.30") align 4 %4, ptr noundef %0, ptr noundef %1, ptr noundef %2) #16 %5 = getelementptr inbounds %"struct.std::__2::pair.30", ptr %4, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !122 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #15 ret ptr %6 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !21 %7 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_S6_S6_EET2_RT_T0_T1_S7_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #16 store ptr %8, ptr %5, align 4, !tbaa !21 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE13__vdeallocateEv(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #11 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !25 %3 = icmp eq ptr %2, null br i1 %3, label %8, label %4 4: ; preds = %1 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 %5 = load ptr, ptr %0, align 4, !tbaa !25 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 tail call void @_ZdlPv(ptr noundef %5) #18 store ptr null, ptr %6, align 4, !tbaa !32 %7 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 store ptr null, ptr %7, align 4, !tbaa !21 store ptr null, ptr %0, align 4, !tbaa !25 br label %8 8: ; preds = %4, %1 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPNS_6vectorIiNS_9allocatorIiEEEESB_SB_Li0EEENS_4pairIT0_T2_EESD_T1_SE_(ptr noalias sret(%"struct.std::__2::pair.30") align 4 %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca %"struct.std::__2::pair.30", align 4 %6 = alloca %"struct.std::__2::__overload", align 1 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #15 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #15 call void @_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES8_S8_EENS_4pairIT_T1_EESA_T0_SB_(ptr nonnull sret(%"struct.std::__2::pair.30") align 4 %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef %1, ptr noundef %2, ptr noundef %3) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #15 %7 = load ptr, ptr %5, align 4, !tbaa !32 %8 = ptrtoint ptr %7 to i32 %9 = ptrtoint ptr %1 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 %11 %13 = getelementptr inbounds %"struct.std::__2::pair.30", ptr %5, i32 0, i32 1 %14 = load ptr, ptr %13, align 4, !tbaa !32 %15 = ptrtoint ptr %14 to i32 %16 = ptrtoint ptr %3 to i32 %17 = sub i32 %15, %16 %18 = sdiv exact i32 %17, 12 %19 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 %18 store ptr %12, ptr %0, align 4, !tbaa !124, !alias.scope !125 %20 = getelementptr inbounds %"struct.std::__2::pair.30", ptr %0, i32 0, i32 1 store ptr %19, ptr %20, align 4, !tbaa !122, !alias.scope !125 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #15 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES8_S8_EENS_4pairIT_T1_EESA_T0_SB_(ptr noalias sret(%"struct.std::__2::pair.30") align 4 %0, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 comdat { br label %6 6: ; preds = %10, %5 %7 = phi ptr [ %2, %5 ], [ %12, %10 ] %8 = phi ptr [ %4, %5 ], [ %13, %10 ] %9 = icmp eq ptr %7, %3 br i1 %9, label %14, label %10 10: ; preds = %6 %11 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEaSB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %7) #16 %12 = getelementptr inbounds %"class.std::__2::vector", ptr %7, i32 1 %13 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 1 br label %6, !llvm.loop !128 14: ; preds = %6 store ptr %3, ptr %0, align 4, !tbaa !124, !alias.scope !129 %15 = getelementptr inbounds %"struct.std::__2::pair.30", ptr %0, i32 0, i32 1 store ptr %8, ptr %15, align 4, !tbaa !122, !alias.scope !129 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEaSB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = icmp eq ptr %0, %1 br i1 %3, label %8, label %4 4: ; preds = %2 %5 = load ptr, ptr %1, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !10 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE6assignIPiLi0EEEvT_S6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %5, ptr noundef %7) #16 br label %8 8: ; preds = %4, %2 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE6assignIPiLi0EEEvT_S6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 comdat { %4 = ptrtoint ptr %2 to i32 %5 = ptrtoint ptr %1 to i32 %6 = sub i32 %4, %5 %7 = ashr exact i32 %6, 2 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !32 %10 = load ptr, ptr %0, align 4, !tbaa !3 %11 = ptrtoint ptr %9 to i32 %12 = ptrtoint ptr %10 to i32 %13 = sub i32 %11, %12 %14 = ashr exact i32 %13, 2 %15 = icmp ugt i32 %7, %14 br i1 %15, label %38, label %16 16: ; preds = %3 %17 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %18 = load ptr, ptr %17, align 4, !tbaa !10 %19 = ptrtoint ptr %18 to i32 %20 = sub i32 %19, %12 %21 = ashr exact i32 %20, 2 %22 = icmp ugt i32 %7, %21 %23 = getelementptr inbounds i32, ptr %1, i32 %21 %24 = select i1 %22, ptr %23, ptr %2 %25 = ptrtoint ptr %24 to i32 %26 = sub i32 %25, %5 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %10, ptr align 4 %1, i32 %26, i1 false), !noalias !132 br i1 %22, label %27, label %35 27: ; preds = %16 %28 = load ptr, ptr %17, align 4, !tbaa !10 %29 = load ptr, ptr %0, align 4, !tbaa !3 %30 = ptrtoint ptr %28 to i32 %31 = ptrtoint ptr %29 to i32 %32 = sub i32 %30, %31 %33 = ashr exact i32 %32, 2 %34 = sub nsw i32 %7, %33 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %23, ptr noundef %2, i32 noundef %34) #16 br label %40 35: ; preds = %16 %36 = ashr exact i32 %26, 2 %37 = getelementptr inbounds i32, ptr %10, i32 %36 store ptr %37, ptr %17, align 4, !tbaa !10 br label %40 38: ; preds = %3 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE13__vdeallocateEv(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 %39 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %39) #16 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %7) #16 br label %40 40: ; preds = %27, %35, %38 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE13__vdeallocateEv(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #11 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !3 %3 = icmp eq ptr %2, null br i1 %3, label %7, label %4 4: ; preds = %1 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %2, ptr %5, align 4, !tbaa !10 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 tail call void @_ZdlPv(ptr noundef nonnull %2) #18 store ptr null, ptr %6, align 4, !tbaa !32 store ptr null, ptr %5, align 4, !tbaa !10 store ptr null, ptr %0, align 4, !tbaa !3 br label %7 7: ; preds = %4, %1 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_S6_S6_EET2_RT_T0_T1_S7_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.13", align 4 store ptr %3, ptr %5, align 4, !tbaa !32 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #15 store ptr %3, ptr %6, align 4, !tbaa !32 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #15 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #16 %16 = getelementptr inbounds %"class.std::__2::vector", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !32 %18 = getelementptr inbounds %"class.std::__2::vector", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !32 br label %10, !llvm.loop !143 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !70 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEEPS5_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #17 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #15 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #15 ret ptr %11 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPKS3_Li0EEEvT_S9_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #5 comdat { %4 = ptrtoint ptr %2 to i32 %5 = ptrtoint ptr %1 to i32 %6 = sub i32 %4, %5 %7 = sdiv exact i32 %6, 12 %8 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %9 = load ptr, ptr %8, align 4, !tbaa !32 %10 = load ptr, ptr %0, align 4, !tbaa !25 %11 = ptrtoint ptr %9 to i32 %12 = ptrtoint ptr %10 to i32 %13 = sub i32 %11, %12 %14 = sdiv exact i32 %13, 12 %15 = icmp ugt i32 %7, %14 br i1 %15, label %35, label %16 16: ; preds = %3 %17 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %18 = load ptr, ptr %17, align 4, !tbaa !21 %19 = ptrtoint ptr %18 to i32 %20 = sub i32 %19, %12 %21 = sdiv exact i32 %20, 12 %22 = icmp ugt i32 %7, %21 %23 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 %21 %24 = select i1 %22, ptr %23, ptr %2 %25 = tail call noundef ptr @_ZNSt3__24copyB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EET0_T_S9_S8_(ptr noundef %1, ptr noundef %24, ptr noundef %10) #16 br i1 %22, label %26, label %34 26: ; preds = %16 %27 = load ptr, ptr %17, align 4, !tbaa !21 %28 = load ptr, ptr %0, align 4, !tbaa !25 %29 = ptrtoint ptr %27 to i32 %30 = ptrtoint ptr %28 to i32 %31 = sub i32 %29, %30 %32 = sdiv exact i32 %31, -12 %33 = add nsw i32 %32, %7 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %23, ptr noundef %2, i32 noundef %33) #16 br label %37 34: ; preds = %16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__base_destruct_at_endB7v160006EPS3_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %25) #17 br label %37 35: ; preds = %3 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE13__vdeallocateEv(ptr noundef nonnull align 4 dereferenceable(12) %0) #17 %36 = tail call noundef i32 @_ZNKSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %36) #16 tail call void @_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %7) #16 br label %37 37: ; preds = %26, %34, %35 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__24copyB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EET0_T_S9_S8_(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 comdat { %4 = alloca %"struct.std::__2::pair.32", align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #15 call void @_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKNS_6vectorIiNS_9allocatorIiEEEESC_PSA_Li0EEENS_4pairIT0_T2_EESF_T1_SG_(ptr nonnull sret(%"struct.std::__2::pair.32") align 4 %4, ptr noundef %0, ptr noundef %1, ptr noundef %2) #16 %5 = getelementptr inbounds %"struct.std::__2::pair.32", ptr %4, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !144 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #15 ret ptr %6 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKNS_6vectorIiNS_9allocatorIiEEEESC_PSA_Li0EEENS_4pairIT0_T2_EESF_T1_SG_(ptr noalias sret(%"struct.std::__2::pair.32") align 4 %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca %"struct.std::__2::pair.32", align 4 %6 = alloca %"struct.std::__2::__overload", align 1 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #15 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #15 call void @_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEES9_PS7_EENS_4pairIT_T1_EESC_T0_SD_(ptr nonnull sret(%"struct.std::__2::pair.32") align 4 %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef %1, ptr noundef %2, ptr noundef %3) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #15 %7 = load ptr, ptr %5, align 4, !tbaa !32 %8 = ptrtoint ptr %7 to i32 %9 = ptrtoint ptr %1 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 %11 %13 = getelementptr inbounds %"struct.std::__2::pair.32", ptr %5, i32 0, i32 1 %14 = load ptr, ptr %13, align 4, !tbaa !32 %15 = ptrtoint ptr %14 to i32 %16 = ptrtoint ptr %3 to i32 %17 = sub i32 %15, %16 %18 = sdiv exact i32 %17, 12 %19 = getelementptr inbounds %"class.std::__2::vector", ptr %3, i32 %18 store ptr %12, ptr %0, align 4, !tbaa !146, !alias.scope !147 %20 = getelementptr inbounds %"struct.std::__2::pair.32", ptr %0, i32 0, i32 1 store ptr %19, ptr %20, align 4, !tbaa !144, !alias.scope !147 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #15 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEES9_PS7_EENS_4pairIT_T1_EESC_T0_SD_(ptr noalias sret(%"struct.std::__2::pair.32") align 4 %0, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 comdat { br label %6 6: ; preds = %10, %5 %7 = phi ptr [ %2, %5 ], [ %12, %10 ] %8 = phi ptr [ %4, %5 ], [ %13, %10 ] %9 = icmp eq ptr %7, %3 br i1 %9, label %14, label %10 10: ; preds = %6 %11 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEaSB7v160006ERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %7) #16 %12 = getelementptr inbounds %"class.std::__2::vector", ptr %7, i32 1 %13 = getelementptr inbounds %"class.std::__2::vector", ptr %8, i32 1 br label %6, !llvm.loop !150 14: ; preds = %6 store ptr %3, ptr %0, align 4, !tbaa !146, !alias.scope !151 %15 = getelementptr inbounds %"struct.std::__2::pair.32", ptr %0, i32 0, i32 1 store ptr %8, ptr %15, align 4, !tbaa !144, !alias.scope !151 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #14 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #14 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #11 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #15 = { nounwind } attributes #16 = { minsize optsize } attributes #17 = { minsize nounwind optsize } attributes #18 = { builtin minsize nounwind optsize } attributes #19 = { minsize noreturn optsize } attributes #20 = { noreturn } attributes #21 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = !{!15, !5, i64 0} !15 = !{!"_ZTSSt16initializer_listIiE", !5, i64 0, !16, i64 4} !16 = !{!"long", !6, i64 0} !17 = !{!15, !16, i64 4} !18 = !{!19, !5, i64 0} !19 = !{!"_ZTSSt16initializer_listINSt3__26vectorIiNS0_9allocatorIiEEEEE", !5, i64 0, !16, i64 4} !20 = !{!19, !16, i64 4} !21 = !{!22, !5, i64 4} !22 = !{!"_ZTSNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEEE", !5, i64 0, !5, i64 4, !23, i64 8} !23 = !{!"_ZTSNSt3__217__compressed_pairIPNS_6vectorIiNS_9allocatorIiEEEENS2_IS4_EEEE", !24, i64 0} !24 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_6vectorIiNS_9allocatorIiEEEELi0ELb0EEE", !5, i64 0} !25 = !{!22, !5, i64 0} !26 = distinct !{!26, !27} !27 = !{!"llvm.loop.mustprogress"} !28 = distinct !{!28, !27} !29 = distinct !{!29, !27} !30 = distinct !{!30, !27} !31 = !{i64 0, i64 4, !32} !32 = !{!5, !5, i64 0} !33 = !{!34} !34 = distinct !{!34, !35, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !35 = distinct !{!35, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !36 = !{!37, !39, !41, !43, !45} !37 = distinct !{!37, !38, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !38 = distinct !{!38, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !39 = distinct !{!39, !40, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !40 = distinct !{!40, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !41 = distinct !{!41, !42, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !42 = distinct !{!42, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !43 = distinct !{!43, !44, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !44 = distinct !{!44, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !45 = distinct !{!45, !46, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !46 = distinct !{!46, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !47 = !{!48, !50, i64 4} !48 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !49, i64 0, !50, i64 4} !49 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !50 = !{!"bool", !6, i64 0} !51 = !{!24, !5, i64 0} !52 = !{!53} !53 = distinct !{!53, !54, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES9_: argument 0"} !54 = distinct !{!54, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES9_"} !55 = !{!56, !50, i64 4} !56 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorINS1_IiNS_9allocatorIiEEEENS2_IS4_EEE16__destroy_vectorEEE", !57, i64 0, !50, i64 4} !57 = !{!"_ZTSNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE16__destroy_vectorE", !5, i64 0} !58 = !{!49, !5, i64 0} !59 = !{!60} !60 = distinct !{!60, !61, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !61 = distinct !{!61, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !62 = !{i8 0, i8 2} !63 = !{} !64 = !{!65, !65, i64 0} !65 = !{!"vtable pointer", !7, i64 0} !66 = !{!67} !67 = distinct !{!67, !68, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS8_m: argument 0"} !68 = distinct !{!68, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS8_m"} !69 = distinct !{!69, !27} !70 = !{!71, !50, i64 12} !71 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEEPS5_EEEE", !72, i64 0, !50, i64 12} !72 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEEPS4_EE", !5, i64 0, !5, i64 4, !5, i64 8} !73 = !{!74} !74 = distinct !{!74, !75, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !75 = distinct !{!75, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !76 = distinct !{!76, !27} !77 = !{!72, !5, i64 0} !78 = !{!72, !5, i64 8} !79 = !{!72, !5, i64 4} !80 = distinct !{!80, !27} !81 = !{!57, !5, i64 0} !82 = distinct !{!82, !27} !83 = !{!84, !5, i64 8} !84 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !85, i64 12} !85 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !86, i64 4} !86 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !87 = !{!88} !88 = distinct !{!88, !89, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !89 = distinct !{!89, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !90 = !{!84, !5, i64 0} !91 = !{!84, !5, i64 4} !92 = !{!93, !95} !93 = distinct !{!93, !94, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !94 = distinct !{!94, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !95 = distinct !{!95, !96, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !96 = distinct !{!96, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !97 = distinct !{!97, !27} !98 = distinct !{!98, !27} !99 = !{!100, !5, i64 8} !100 = !{!"_ZTSNSt3__214__split_bufferINS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !101, i64 12} !101 = !{!"_ZTSNSt3__217__compressed_pairIPNS_6vectorIiNS_9allocatorIiEEEERNS2_IS4_EEEE", !24, i64 0, !102, i64 4} !102 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_6vectorIiNS1_IiEEEEEELi1ELb0EEE", !5, i64 0} !103 = !{!104} !104 = distinct !{!104, !105, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS8_m: argument 0"} !105 = distinct !{!105, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_6vectorIiNS1_IiEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS8_m"} !106 = !{!100, !5, i64 0} !107 = !{!100, !5, i64 4} !108 = !{!109, !50, i64 12} !109 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEEE", !110, i64 0, !50, i64 12} !110 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS1_IiEEEEEENS_16reverse_iteratorIPS4_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !111 = !{!112} !112 = distinct !{!112, !113, !"_ZNSt3__222__make_exception_guardB7v160006INS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEEENS_28__exception_guard_exceptionsIT_EESC_: argument 0"} !113 = distinct !{!113, !"_ZNSt3__222__make_exception_guardB7v160006INS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_6vectorIiNS2_IiEEEEEENS_16reverse_iteratorIPS5_EEEEEENS_28__exception_guard_exceptionsIT_EESC_"} !114 = !{!115, !5, i64 0} !115 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_6vectorIiNS_9allocatorIiEEEEEE", !5, i64 0} !116 = distinct !{!116, !27} !117 = !{!110, !5, i64 0} !118 = !{!110, !5, i64 8} !119 = !{!110, !5, i64 4} !120 = distinct !{!120, !27} !121 = distinct !{!121, !27} !122 = !{!123, !5, i64 4} !123 = !{!"_ZTSNSt3__24pairIPNS_6vectorIiNS_9allocatorIiEEEES5_EE", !5, i64 0, !5, i64 4} !124 = !{!123, !5, i64 0} !125 = !{!126} !126 = distinct !{!126, !127, !"_ZNSt3__29make_pairB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS7_IT0_E4typeEEEOS8_OSB_: argument 0"} !127 = distinct !{!127, !"_ZNSt3__29make_pairB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS7_IT0_E4typeEEEOS8_OSB_"} !128 = distinct !{!128, !27} !129 = !{!130} !130 = distinct !{!130, !131, !"_ZNSt3__29make_pairB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS7_IT0_E4typeEEEOS8_OSB_: argument 0"} !131 = distinct !{!131, !"_ZNSt3__29make_pairB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES5_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS7_IT0_E4typeEEEOS8_OSB_"} !132 = !{!133, !135, !137, !139, !141} !133 = distinct !{!133, !134, !"_ZNSt3__219__copy_trivial_implB7v160006IiiEENS_4pairIPT_PT0_EES3_S3_S5_: argument 0"} !134 = distinct !{!134, !"_ZNSt3__219__copy_trivial_implB7v160006IiiEENS_4pairIPT_PT0_EES3_S3_S5_"} !135 = distinct !{!135, !136, !"_ZNKSt3__214__copy_trivialclB7v160006IiiLi0EEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !136 = distinct !{!136, !"_ZNKSt3__214__copy_trivialclB7v160006IiiLi0EEENS_4pairIPT_PT0_EES4_S4_S6_"} !137 = distinct !{!137, !138, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPiS7_S7_Li0EEENS_4pairIT0_T2_EES9_T1_SA_: argument 0"} !138 = distinct !{!138, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPiS7_S7_Li0EEENS_4pairIT0_T2_EES9_T1_SA_"} !139 = distinct !{!139, !140, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPiS5_S5_EENS_4pairIT2_T4_EES7_T3_S8_: argument 0"} !140 = distinct !{!140, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPiS5_S5_EENS_4pairIT2_T4_EES7_T3_S8_"} !141 = distinct !{!141, !142, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPiS2_S2_EENS_4pairIT0_T2_EES4_T1_S5_: argument 0"} !142 = distinct !{!142, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPiS2_S2_EENS_4pairIT0_T2_EES4_T1_S5_"} !143 = distinct !{!143, !27} !144 = !{!145, !5, i64 4} !145 = !{!"_ZTSNSt3__24pairIPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EE", !5, i64 0, !5, i64 4} !146 = !{!145, !5, i64 0} !147 = !{!148} !148 = distinct !{!148, !149, !"_ZNSt3__29make_pairB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS9_IT0_E4typeEEEOSA_OSD_: argument 0"} !149 = distinct !{!149, !"_ZNSt3__29make_pairB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS9_IT0_E4typeEEEOSA_OSD_"} !150 = distinct !{!150, !27} !151 = !{!152} !152 = distinct !{!152, !153, !"_ZNSt3__29make_pairB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS9_IT0_E4typeEEEOSA_OSD_: argument 0"} !153 = distinct !{!153, !"_ZNSt3__29make_pairB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEEPS4_EENS_4pairINS_18__unwrap_ref_decayIT_E4typeENS9_IT0_E4typeEEEOSA_OSD_"}
(module $code_145.wasm (type (;0;) (func (param i32 i32))) (type (;1;) (func (param i32 i32 i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32) (result i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32 i32 i32 i32))) (type (;6;) (func (param i32 i32 i32 i32 i32))) (type (;7;) (func)) (type (;8;) (func (param i32 i32 i32) (result i32))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPKS3_Li0EEEvT_S9_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*_ (type 1))) (import "env" "memmove" (func $memmove (type 8))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_ (type 5))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ (type 0))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__construct_one_at_endB7v160006IJRKS3_EEEvDpOT_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_one_at_end_abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE21__push_back_slow_pathIRKS3_EEvOT_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__push_back_slow_path<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPS3_Li0EEEvT_S8_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 3))) (import "env" "__cxa_throw" (func $__cxa_throw (type 1))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 3))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 3))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_ (type 5))) (import "env" "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__unsigned_long_ (type 5))) (import "env" "_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES8_S8_EENS_4pairIT_T1_EESA_T0_SB_" (func $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__const (type 6))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE6assignIPiLi0EEEvT_S6_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::assign<int*__0>_int*__int*_ (type 1))) (import "env" "_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEES9_PS7_EENS_4pairIT_T1_EESC_T0_SD_" (func $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*__const (type 6))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $get_matrix_triples_int_ (type 3) (param i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 144 i32.sub local.tee 1 global.set $__stack_pointer local.get 1 i32.const 3 i32.store offset=96 local.get 1 i32.const 0 i32.store offset=140 local.get 1 i64.const 0 i64.store offset=132 align=4 local.get 1 local.get 1 i32.const 80 i32.add local.tee 4 i32.store offset=92 local.get 1 local.get 1 i64.load offset=92 align=4 i64.store offset=32 local.get 1 i32.const 0 i32.store offset=88 local.get 1 i64.const 0 i64.store offset=80 align=4 local.get 1 i32.const 100 i32.add local.tee 3 local.get 1 i32.const 32 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ local.set 2 local.get 1 i32.const 1 i32.store offset=116 local.get 1 local.get 2 i32.store offset=112 local.get 1 local.get 1 i64.load offset=112 align=4 i64.store offset=24 local.get 1 i32.const 120 i32.add local.get 1 i32.const 24 i32.add call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::vector_abi:v160006__std::initializer_list<std::__2::vector<int__std::__2::allocator<int>>>_ local.set 5 local.get 2 call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ drop local.get 1 i32.const 3 i32.store offset=68 local.get 1 local.get 1 i32.const 52 i32.add i32.store offset=64 local.get 1 local.get 1 i64.load offset=64 align=4 i64.store offset=16 local.get 1 i32.const 0 i32.store offset=60 local.get 1 i64.const 0 i64.store offset=52 align=4 local.get 4 local.get 1 i32.const 16 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ local.set 2 local.get 1 i32.const 1 i32.store offset=76 local.get 1 local.get 2 i32.store offset=72 local.get 1 local.get 1 i64.load offset=72 align=4 i64.store offset=8 local.get 3 local.get 1 i32.const 8 i32.add call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::vector_abi:v160006__std::initializer_list<std::__2::vector<int__std::__2::allocator<int>>>_ local.set 4 local.get 2 call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ drop local.get 0 i32.const 0 local.get 0 i32.const 0 i32.gt_s select i32.const 1 i32.add local.set 9 i32.const 1 local.set 2 loop ;; label = @1 local.get 2 local.get 9 i32.eq if ;; label = @2 block ;; label = @3 local.get 1 i32.const 92 i32.add local.set 7 i32.const 1 local.set 6 loop ;; label = @4 i32.const 1 local.set 3 local.get 6 i32.const 3 i32.eq br_if 1 (;@3;) loop ;; label = @5 local.get 3 local.get 9 i32.eq if ;; label = @6 local.get 4 local.get 5 i32.ne if ;; label = @7 local.get 5 local.get 4 i32.load local.get 4 i32.load offset=4 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*_ end local.get 1 i32.const 3 i32.store offset=48 local.get 1 i32.const 0 i32.store offset=60 local.get 1 i64.const 0 i64.store offset=52 align=4 local.get 1 local.get 1 i32.const 52 i32.add i32.store offset=44 local.get 1 local.get 1 i64.load offset=44 align=4 i64.store local.get 4 local.get 1 i32.const 80 i32.add local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ local.tee 2 local.get 7 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*_ local.get 2 call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ drop local.get 6 i32.const 1 i32.add local.set 6 br 2 (;@4;) else local.get 4 local.get 4 i32.load offset=4 local.get 4 i32.load local.tee 2 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul local.get 2 i32.add i32.const 12 i32.sub call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::push_back_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>_const&_ local.get 1 i32.load offset=132 local.get 3 i32.const 2 i32.shl i32.add i32.const 4 i32.sub local.set 8 local.get 3 i32.const 12 i32.mul local.tee 2 local.get 4 i32.load i32.add i32.load local.set 10 local.get 2 local.get 5 i32.load i32.add i32.const 12 i32.sub i32.load local.set 11 i32.const 0 local.set 2 loop ;; label = @7 local.get 2 i32.const 3 i32.ne if ;; label = @8 local.get 10 local.get 8 i32.load local.get 2 i32.add i32.const 3 i32.rem_s i32.const 2 i32.shl i32.add local.tee 12 local.get 12 i32.load local.get 11 local.get 2 i32.const 2 i32.shl i32.add i32.load i32.add i32.store local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@7;) end end local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@5;) end unreachable end unreachable end unreachable end else local.get 1 local.get 2 i32.const 1 i32.sub local.tee 8 local.get 2 i32.mul i32.const 1 i32.add i32.const 3 i32.rem_s i32.store offset=80 local.get 1 i32.const 80 i32.add local.set 6 block ;; label = @3 local.get 1 i32.const 132 i32.add local.tee 3 i32.load offset=4 local.tee 7 local.get 3 i32.load offset=8 i32.lt_u if ;; label = @4 local.get 7 local.get 6 i32.load i32.store local.get 3 local.get 7 i32.const 4 i32.add i32.store offset=4 br 1 (;@3;) end local.get 3 local.get 6 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ end local.get 5 local.get 5 i32.load offset=4 local.get 5 i32.load local.tee 3 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul local.get 3 i32.add i32.const 12 i32.sub call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::push_back_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>_const&_ local.get 5 i32.load local.get 2 i32.const 12 i32.mul i32.add i32.load local.get 1 i32.load offset=132 local.get 8 i32.const 2 i32.shl i32.add i32.load i32.const 2 i32.shl i32.add local.tee 3 local.get 3 i32.load i32.const 1 i32.add i32.store local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@1;) end end local.get 5 i32.load local.get 0 i32.const 12 i32.mul i32.add i32.load i32.load local.get 4 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::~vector_abi:v160006___ local.get 5 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::~vector_abi:v160006___ local.get 1 i32.const 132 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ drop local.get 1 i32.const 144 i32.add global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ (type 4) (param i32 i32) (result i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 3 if ;; label = @1 local.get 0 local.get 3 call $std::__2::vector<int__std::__2::allocator<int>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 0 i32.load offset=4 local.get 1 i32.load local.get 3 i32.const 2 i32.shl local.tee 1 call $memmove local.get 1 i32.add i32.store offset=4 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 2 i32.const 8 i32.add call $std::__2::__exception_guard_exceptions<std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector>::~__exception_guard_exceptions_abi:v160006___ local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::vector_abi:v160006__std::initializer_list<std::__2::vector<int__std::__2::allocator<int>>>_ (type 4) (param i32 i32) (result i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 3 if ;; label = @1 local.get 0 local.get 3 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 1 i32.load local.tee 1 local.get 1 local.get 3 i32.const 12 i32.mul i32.add local.get 3 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_ end local.get 2 i32.const 1 i32.store8 offset=12 local.get 2 i32.const 8 i32.add local.tee 1 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 1 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__destroy_vector::operator___abi:v160006___ end local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ (type 3) (param i32) (result i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 1 local.get 0 i32.store offset=12 local.get 1 i32.const 12 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ local.get 1 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*_.1 (type 1) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32) local.get 2 local.get 1 i32.sub i32.const 12 i32.div_s local.tee 4 local.get 0 i32.load offset=8 local.get 0 i32.load local.tee 5 i32.sub i32.const 12 i32.div_s i32.le_u if ;; label = @1 local.get 1 local.get 0 i32.load offset=4 local.get 5 i32.sub i32.const 12 i32.div_s local.tee 3 i32.const 12 i32.mul i32.add local.tee 8 local.get 2 local.get 3 local.get 4 i32.lt_u local.tee 9 select local.set 7 global.get $__stack_pointer i32.const 16 i32.sub local.tee 6 global.set $__stack_pointer global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 8 i32.add local.get 3 i32.const 7 i32.add local.get 1 local.get 7 local.get 5 call $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>*__const local.get 3 i32.load offset=8 local.set 7 local.get 6 local.get 5 local.get 3 i32.load offset=12 local.get 5 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul i32.add i32.store offset=12 local.get 6 local.get 1 local.get 7 local.get 1 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul i32.add i32.store offset=8 local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 6 i32.load offset=12 local.set 1 local.get 6 i32.const 16 i32.add global.set $__stack_pointer local.get 9 if ;; label = @2 local.get 0 local.get 8 local.get 2 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const -12 i32.div_s local.get 4 i32.add call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_ return end local.get 0 local.get 1 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__base_destruct_at_end_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>*_ return end local.get 0 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vdeallocate__ local.get 0 local.get 0 local.get 4 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__recommend_abi:v160006__unsigned_long__const call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 1 local.get 2 local.get 4 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::push_back_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>_const&_ (type 0) (param i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @1 local.get 0 local.get 1 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_one_at_end_abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_ return end local.get 0 local.get 1 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__push_back_slow_path<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::~vector_abi:v160006___ (type 2) (param i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 1 local.get 0 i32.store offset=12 local.get 1 i32.const 12 i32.add call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__destroy_vector::operator___abi:v160006___ local.get 1 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::__vallocate_abi:v160006__unsigned_long_ (type 0) (param i32 i32) (local i32) local.get 1 i32.const 1073741824 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end local.get 0 local.get 1 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.tee 2 i32.store offset=4 local.get 0 local.get 2 i32.store local.get 0 local.get 2 local.get 1 i32.const 2 i32.shl i32.add i32.store offset=8) (func $std::__2::__exception_guard_exceptions<std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector>::~__exception_guard_exceptions_abi:v160006___ (type 2) (param i32) local.get 0 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 0 call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ end) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vallocate_abi:v160006__unsigned_long_ (type 0) (param i32 i32) (local i32) local.get 1 i32.const 357913942 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end local.get 0 local.get 1 call $std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>::allocate_abi:v160006__unsigned_long_ local.tee 2 i32.store offset=4 local.get 0 local.get 2 i32.store local.get 0 local.get 2 local.get 1 i32.const 12 i32.mul i32.add i32.store offset=8) (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_.1 (type 5) (param i32 i32 i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 local.get 4 local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::vector_std::__2::vector<int__std::__2::allocator<int>>_const&_ drop local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.add local.tee 4 i32.store offset=28 local.get 1 i32.const 12 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.load8_u offset=20 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 drop local.get 3 i32.load offset=16 i32.load local.set 1 local.get 3 i32.load offset=12 i32.load local.set 2 loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 1 i32.const 12 i32.sub call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ local.set 1 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 0 local.get 4 i32.store offset=4) (func $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ (type 2) (param i32) (local i32) local.get 0 i32.load local.tee 1 i32.load local.tee 0 if ;; label = @1 local.get 1 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 6 global.set $__stack_pointer local.get 0 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::__recommend_abi:v160006__unsigned_long__const local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 local.get 6 i32.const 12 i32.add local.tee 2 i32.const 0 i32.store offset=12 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=16 local.get 4 if ;; label = @1 local.get 4 call $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=8 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=12 local.get 2 local.get 5 i32.store offset=4 local.get 2 i32.load offset=8 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=8 local.get 2 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=4 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=4 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=8 i32.store offset=4 local.get 2 local.get 1 i32.store offset=8 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=12 i32.store offset=8 local.get 2 local.get 1 i32.store offset=12 local.get 2 local.get 2 i32.load offset=4 i32.store local.get 2 i32.load offset=4 local.set 1 local.get 2 i32.load offset=8 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=8 br 1 (;@1;) end end local.get 2 i32.load local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 6 i32.const 32 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_one_at_end_abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_.1 (type 0) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::vector_std::__2::vector<int__std::__2::allocator<int>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__push_back_slow_path<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_.1 (type 0) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__recommend_abi:v160006__unsigned_long__const local.set 3 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 3 if ;; label = @1 local.get 3 call $std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>::allocate_abi:v160006__unsigned_long_ local.set 4 end local.get 2 local.get 4 i32.store offset=12 local.get 2 local.get 4 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 4 local.get 3 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::vector_std::__2::vector<int__std::__2::allocator<int>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 5 local.get 2 i32.load offset=16 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 i32.const 0 i32.store8 offset=20 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 5 i32.ne if ;; label = @2 local.get 4 i32.const 12 i32.sub local.tee 4 i32.const 0 i32.store offset=8 local.get 4 i64.const 0 i64.store align=4 local.get 4 local.get 1 i32.const 12 i32.sub local.tee 1 i32.load i32.store local.get 4 local.get 1 i32.load offset=4 i32.store offset=4 local.get 4 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.sub local.tee 4 i32.store offset=28 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 5 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 5 i32.ne if ;; label = @3 local.get 5 call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ i32.const 12 i32.add local.set 5 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 4 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 4 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*_.1 (type 1) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32) local.get 2 local.get 1 i32.sub i32.const 12 i32.div_s local.tee 4 local.get 0 i32.load offset=8 local.get 0 i32.load local.tee 5 i32.sub i32.const 12 i32.div_s i32.le_u if ;; label = @1 local.get 1 local.get 0 i32.load offset=4 local.get 5 i32.sub i32.const 12 i32.div_s local.tee 3 i32.const 12 i32.mul i32.add local.tee 8 local.get 2 local.get 3 local.get 4 i32.lt_u local.tee 9 select local.set 7 global.get $__stack_pointer i32.const 16 i32.sub local.tee 6 global.set $__stack_pointer global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 i32.const 8 i32.add local.get 3 i32.const 7 i32.add local.get 1 local.get 7 local.get 5 call $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__const local.get 3 i32.load offset=8 local.set 7 local.get 6 local.get 5 local.get 3 i32.load offset=12 local.get 5 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul i32.add i32.store offset=12 local.get 6 local.get 1 local.get 7 local.get 1 i32.sub i32.const 12 i32.div_s i32.const 12 i32.mul i32.add i32.store offset=8 local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 6 i32.load offset=12 local.set 1 local.get 6 i32.const 16 i32.add global.set $__stack_pointer local.get 9 if ;; label = @2 local.get 0 local.get 8 local.get 2 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const -12 i32.div_s local.get 4 i32.add call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__unsigned_long_ return end local.get 0 local.get 1 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__base_destruct_at_end_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>*_ return end local.get 0 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vdeallocate__ local.get 0 local.get 0 local.get 4 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__recommend_abi:v160006__unsigned_long__const call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 1 local.get 2 local.get 4 call $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__unsigned_long_) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__destroy_vector::operator___abi:v160006___ (type 2) (param i32) (local i32) local.get 0 i32.load local.tee 1 i32.load if ;; label = @1 local.get 1 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__clear_abi:v160006___ local.get 0 i32.load i32.load call $operator_delete_void*_ end) (func $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const (type 7) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 3 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::allocator<int>::allocate_abi:v160006__unsigned_long_ (type 3) (param i32) (result i32) local.get 0 i32.const 1073741824 i32.ge_u if ;; label = @1 call $std::__throw_bad_array_new_length_abi:v160006___ unreachable end local.get 0 i32.const 2 i32.shl call $operator_new_unsigned_long_) (func $std::__throw_bad_array_new_length_abi:v160006___ (type 7) (local i32 i32) global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable) (func $std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>::allocate_abi:v160006__unsigned_long_ (type 3) (param i32) (result i32) local.get 0 i32.const 357913942 i32.ge_u if ;; label = @1 call $std::__throw_bad_array_new_length_abi:v160006___ unreachable end local.get 0 i32.const 12 i32.mul call $operator_new_unsigned_long_) (func $std::__2::vector<int__std::__2::allocator<int>>::vector_std::__2::vector<int__std::__2::allocator<int>>_const&_ (type 4) (param i32 i32) (result i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 3 local.get 1 i32.load local.tee 4 i32.ne if ;; label = @1 local.get 0 local.get 3 local.get 4 i32.sub i32.const 2 i32.shr_s local.tee 3 call $std::__2::vector<int__std::__2::allocator<int>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_ end local.get 2 i32.const 1 i32.store8 offset=12 local.get 2 i32.const 8 i32.add call $std::__2::__exception_guard_exceptions<std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector>::~__exception_guard_exceptions_abi:v160006___ local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 0) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_.1 (type 5) (param i32 i32 i32 i32) local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 1 local.get 2 i32.eq i32.eqz if ;; label = @2 local.get 3 local.get 1 i32.load i32.store local.get 3 i32.const 4 i32.add local.set 3 local.get 1 i32.const 4 i32.add local.set 1 br 1 (;@1;) end end local.get 0 local.get 3 i32.store offset=4) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__clear_abi:v160006___ (type 2) (param i32) local.get 0 local.get 0 i32.load call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__base_destruct_at_end_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>*_) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__base_destruct_at_end_abi:v160006__std::__2::vector<int__std::__2::allocator<int>>*_ (type 0) (param i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 2 loop ;; label = @1 local.get 1 local.get 2 i32.eq i32.eqz if ;; label = @2 local.get 2 i32.const 12 i32.sub call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ local.set 2 br 1 (;@1;) end end local.get 0 local.get 1 i32.store offset=4) (func $std::__2::vector<int__std::__2::allocator<int>>::__recommend_abi:v160006__unsigned_long__const (type 4) (param i32 i32) (result i32) (local i32) local.get 1 i32.const 1073741824 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 0 i32.const 1 i32.shr_s local.tee 2 local.get 1 local.get 1 local.get 2 i32.lt_u select local.get 0 i32.const 2147483644 i32.ge_u select) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__recommend_abi:v160006__unsigned_long__const (type 4) (param i32 i32) (result i32) (local i32) local.get 1 i32.const 357913942 i32.ge_u if ;; label = @1 call $std::__2::vector<int__std::__2::allocator<int>>::__throw_length_error_abi:v160006____const unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 0 i32.const 1 i32.shl local.tee 2 local.get 1 local.get 1 local.get 2 i32.lt_u select local.get 0 i32.const 178956970 i32.ge_u select) (func $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__vdeallocate__ (type 2) (param i32) local.get 0 i32.load if ;; label = @1 local.get 0 call $std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__clear_abi:v160006___ local.get 0 i32.load call $operator_delete_void*_ local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 end) (func $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__const.1 (type 6) (param i32 i32 i32 i32 i32) loop ;; label = @1 local.get 2 local.get 3 i32.ne if ;; label = @2 local.get 2 local.get 4 i32.ne if ;; label = @3 local.get 4 local.get 2 i32.load local.get 2 i32.load offset=4 call $void_std::__2::vector<int__std::__2::allocator<int>>::assign<int*__0>_int*__int*_ end local.get 4 i32.const 12 i32.add local.set 4 local.get 2 i32.const 12 i32.add local.set 2 br 1 (;@1;) end end local.get 0 local.get 4 i32.store offset=4 local.get 0 local.get 3 i32.store) (func $void_std::__2::vector<int__std::__2::allocator<int>>::assign<int*__0>_int*__int*_.1 (type 1) (param i32 i32 i32) (local i32 i32 i32 i32) local.get 2 local.get 1 i32.sub i32.const 2 i32.shr_s local.tee 4 local.get 0 i32.load offset=8 local.get 0 i32.load local.tee 3 i32.sub i32.const 2 i32.shr_s i32.le_u if ;; label = @1 local.get 3 local.get 1 local.get 1 local.get 0 i32.load offset=4 local.get 3 i32.sub local.tee 3 i32.add local.tee 5 local.get 2 local.get 4 local.get 3 i32.const 2 i32.shr_s local.tee 3 i32.gt_u select local.get 1 i32.sub local.tee 1 call $memmove local.set 6 local.get 3 local.get 4 i32.lt_u if ;; label = @2 local.get 0 local.get 5 local.get 2 local.get 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.sub call $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_ return end local.get 0 local.get 1 local.get 6 i32.add i32.store offset=4 return end local.get 0 i32.load local.tee 3 if ;; label = @1 local.get 0 local.get 3 i32.store offset=4 local.get 3 call $operator_delete_void*_ local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 end local.get 0 local.get 0 local.get 4 call $std::__2::vector<int__std::__2::allocator<int>>::__recommend_abi:v160006__unsigned_long__const call $std::__2::vector<int__std::__2::allocator<int>>::__vallocate_abi:v160006__unsigned_long_ local.get 0 local.get 1 local.get 2 local.get 4 call $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z18get_matrix_triplesi" (func $get_matrix_triples_int_)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPKS3_Li0EEEvT_S9_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*_.1)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPKS3_Li0EEEvT_S9_m" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_.1)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE22__construct_one_at_endB7v160006IJRKS3_EEEvDpOT_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_one_at_end_abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_.1)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE21__push_back_slow_pathIRKS3_EEvOT_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__push_back_slow_path<std::__2::vector<int__std::__2::allocator<int>>_const&>_std::__2::vector<int__std::__2::allocator<int>>_const&_.1)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE6assignIPS3_Li0EEEvT_S8_" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::assign<std::__2::vector<int__std::__2::allocator<int>>*__0>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*_.1)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE18__construct_at_endIPiLi0EEEvT_S6_m" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__construct_at_end<int*__0>_int*__int*__unsigned_long_.1)) (export "_ZNSt3__26vectorINS0_IiNS_9allocatorIiEEEENS1_IS3_EEE18__construct_at_endIPS3_Li0EEEvT_S8_m" (func $void_std::__2::vector<std::__2::vector<int__std::__2::allocator<int>>__std::__2::allocator<std::__2::vector<int__std::__2::allocator<int>>>>::__construct_at_end<std::__2::vector<int__std::__2::allocator<int>>_const*__0>_std::__2::vector<int__std::__2::allocator<int>>_const*__std::__2::vector<int__std::__2::allocator<int>>_const*__unsigned_long_.1)) (export "_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPNS_6vectorIiNS_9allocatorIiEEEES8_S8_EENS_4pairIT_T1_EESA_T0_SB_" (func $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__const.1)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE6assignIPiLi0EEEvT_S6_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::assign<int*__0>_int*__int*_.1)) (export "_ZNKSt3__211__copy_loopINS_17_ClassicAlgPolicyEEclB7v160006IPKNS_6vectorIiNS_9allocatorIiEEEES9_PS7_EENS_4pairIT_T1_EESC_T0_SD_" (func $std::__2::pair<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::__copy_loop<std::__2::_ClassicAlgPolicy>::operator___abi:v160006_<std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*>_std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__std::__2::vector<int__std::__2::allocator<int>>*__const.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/148
/* There are eight planets in our solar system: the closerst to the Sun is Mercury, the next one is Venus, then Earth, Mars, Jupiter, Saturn, Uranus, Neptune. Write a function that takes two planet names as strings planet1 and planet2. The function should return a vector containing all planets whose orbits are located between the orbit of planet1 and the orbit of planet2, sorted by the proximity to the sun. The function should return an empty vector if planet1 or planet2 are not correct planet names. Examples bf("Jupiter", "Neptune") ==> {"Saturn", "Uranus"} bf("Earth", "Mercury") ==> {"Venus"} bf("Mercury", "Uranus") ==> {"Venus", "Earth", "Mars", "Jupiter", "Saturn"} */ #include<stdio.h> #include<vector> #include<string> using namespace std; vector<string> bf(string planet1,string planet2){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> vector<string> bf(string planet1,string planet2){
vector<string> planets={"Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"}; int pos1=-1,pos2=-1,m; for (m=0;m<planets.size();m++) { if (planets[m]==planet1) pos1=m; if (planets[m]==planet2) pos2=m; } if (pos1==-1 or pos2==-1) return {}; if (pos1>pos2) {m=pos1;pos1=pos2;pos2=m;} vector<string> out={}; for (m=pos1+1;m<pos2;m++) out.push_back(planets[m]); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(bf("Jupiter", "Neptune") , {"Saturn", "Uranus"})); assert (issame(bf("Earth", "Mercury") , {"Venus",})); assert (issame(bf("Mercury", "Uranus") , {"Venus", "Earth", "Mars", "Jupiter", "Saturn"})); assert (issame(bf("Neptune", "Venus") , {"Earth", "Mars", "Jupiter", "Saturn", "Uranus"})); assert (issame(bf("Earth", "Earth") , {})); assert (issame(bf("Mars", "Earth") , {})); assert (issame(bf("Jupiter", "Makemake") , {})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(bf("Jupiter", "Neptune") , {"Saturn", "Uranus"})); assert (issame(bf("Earth", "Mercury") , {"Venus",})); assert (issame(bf("Mercury", "Uranus") , {"Venus", "Earth", "Mars", "Jupiter", "Saturn"})); }
; ModuleID = 'c_code/code_146.cpp' source_filename = "c_code/code_146.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<std::__2::string>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<std::__2::string>::__destroy_vector" = type { ptr } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__exception_guard_exceptions.9" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.11" } %"class.std::__2::__compressed_pair.11" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.12" } %"struct.std::__2::__compressed_pair_elem.12" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.13" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse.14", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse.14" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E = comdat any $_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_ = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [8 x i8] c"Mercury\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"Venus\00", align 1 @.str.2 = private unnamed_addr constant [6 x i8] c"Earth\00", align 1 @.str.3 = private unnamed_addr constant [5 x i8] c"Mars\00", align 1 @.str.4 = private unnamed_addr constant [8 x i8] c"Jupiter\00", align 1 @.str.5 = private unnamed_addr constant [7 x i8] c"Saturn\00", align 1 @.str.6 = private unnamed_addr constant [7 x i8] c"Uranus\00", align 1 @.str.7 = private unnamed_addr constant [8 x i8] c"Neptune\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.9 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize optsize define void @_Z2bfNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 { %4 = alloca %"class.std::__2::vector", align 4 %5 = alloca %"class.std::initializer_list", align 4 %6 = alloca [8 x %"class.std::__2::basic_string"], align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #18 call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #18 %7 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull @.str) #19 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 1 %9 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull @.str.1) #19 %10 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 2 %11 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull @.str.2) #19 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 3 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull @.str.3) #19 %14 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 4 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull @.str.4) #19 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 5 %17 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull @.str.5) #19 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 6 %19 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull @.str.6) #19 %20 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 7 %21 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull @.str.7) #19 store ptr %6, ptr %5, align 4, !tbaa !3 %22 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1 store i32 8, ptr %22, align 4, !tbaa !9 %23 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %5) #19 %24 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 8 br label %25 25: ; preds = %25, %3 %26 = phi ptr [ %24, %3 ], [ %27, %25 ] %27 = getelementptr inbounds %"class.std::__2::basic_string", ptr %26, i32 -1 %28 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #20 %29 = icmp eq ptr %27, %6 br i1 %29, label %30, label %25 30: ; preds = %25 call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #18 %31 = getelementptr inbounds %"class.std::__2::vector", ptr %4, i32 0, i32 1 br label %32 32: ; preds = %43, %30 %33 = phi i32 [ -1, %30 ], [ %46, %43 ] %34 = phi i32 [ -1, %30 ], [ %50, %43 ] %35 = phi i32 [ 0, %30 ], [ %51, %43 ] %36 = load ptr, ptr %31, align 4, !tbaa !10 %37 = load ptr, ptr %4, align 4, !tbaa !14 %38 = ptrtoint ptr %36 to i32 %39 = ptrtoint ptr %37 to i32 %40 = sub i32 %38, %39 %41 = sdiv exact i32 %40, 12 %42 = icmp ult i32 %35, %41 br i1 %42, label %43, label %52 43: ; preds = %32 %44 = getelementptr inbounds %"class.std::__2::basic_string", ptr %37, i32 %35 %45 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 %46 = select i1 %45, i32 %35, i32 %33 %47 = load ptr, ptr %4, align 4, !tbaa !14 %48 = getelementptr inbounds %"class.std::__2::basic_string", ptr %47, i32 %35 %49 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %2) #20 %50 = select i1 %49, i32 %35, i32 %34 %51 = add nuw nsw i32 %35, 1 br label %32, !llvm.loop !15 52: ; preds = %32 %53 = icmp eq i32 %33, -1 %54 = icmp eq i32 %34, -1 %55 = select i1 %53, i1 true, i1 %54 br i1 %55, label %56, label %59 56: ; preds = %52 store ptr null, ptr %0, align 4, !tbaa !14 %57 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %57, align 4, !tbaa !10 %58 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %58, align 4, !tbaa !17 br label %71 59: ; preds = %52 %60 = call i32 @llvm.smin.i32(i32 %33, i32 %34) %61 = call i32 @llvm.smax.i32(i32 %33, i32 %34) store ptr null, ptr %0, align 4, !tbaa !14 %62 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %62, align 4, !tbaa !10 %63 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %63, align 4, !tbaa !17 br label %64 64: ; preds = %68, %59 %65 = phi i32 [ %60, %59 ], [ %66, %68 ] %66 = add nsw i32 %65, 1 %67 = icmp slt i32 %66, %61 br i1 %67, label %68, label %71 68: ; preds = %64 %69 = load ptr, ptr %4, align 4, !tbaa !14 %70 = getelementptr inbounds %"class.std::__2::basic_string", ptr %69, i32 %66 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %70) #19 br label %64, !llvm.loop !18 71: ; preds = %64, %56 %72 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #18 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #19 ret ptr %0 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !14 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !17 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #18 store ptr %0, ptr %3, align 4, !tbaa.struct !19, !alias.scope !21 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !9 %8 = icmp eq i32 %7, 0 br i1 %8, label %12, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #19 %10 = load ptr, ptr %1, align 4, !tbaa !3 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 %7 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %10, ptr noundef nonnull %11, i32 noundef %7) #19 br label %12 12: ; preds = %9, %2 %13 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %13, align 4, !tbaa !24 %14 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #20 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #18 ret ptr %0 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2eqB7v160006INS_9allocatorIcEEEEbRKNS_12basic_stringIcNS_11char_traitsIcEET_EES9_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %7 = load i32, ptr %6, align 4 %8 = zext i8 %4 to i32 %9 = select i1 %5, i32 %7, i32 %8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %11 = load i8, ptr %10, align 1 %12 = icmp slt i8 %11, 0 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %14 = load i32, ptr %13, align 4 %15 = zext i8 %11 to i32 %16 = select i1 %12, i32 %14, i32 %15 %17 = icmp eq i32 %9, %16 br i1 %17, label %18, label %38 18: ; preds = %2 %19 = load ptr, ptr %1, align 4 %20 = select i1 %12, ptr %19, ptr %1 br i1 %5, label %21, label %25 21: ; preds = %18 %22 = load ptr, ptr %0, align 4 %23 = tail call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %22, ptr noundef %20, i32 noundef %7) #20 %24 = icmp eq i32 %23, 0 br label %38 25: ; preds = %18, %34 %26 = phi i32 [ %35, %34 ], [ %8, %18 ] %27 = phi ptr [ %36, %34 ], [ %0, %18 ] %28 = phi ptr [ %37, %34 ], [ %20, %18 ] %29 = icmp eq i32 %26, 0 br i1 %29, label %38, label %30 30: ; preds = %25 %31 = load i8, ptr %27, align 1, !tbaa !28 %32 = load i8, ptr %28, align 1, !tbaa !28 %33 = icmp eq i8 %31, %32 br i1 %33, label %34, label %38 34: ; preds = %30 %35 = add nsw i32 %26, -1 %36 = getelementptr inbounds i8, ptr %27, i32 1 %37 = getelementptr inbounds i8, ptr %28, i32 1 br label %25, !llvm.loop !29 38: ; preds = %30, %25, %21, %2 %39 = phi i1 [ false, %2 ], [ %24, %21 ], [ %29, %25 ], [ %29, %30 ] ret i1 %39 } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #5 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !20 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { %2 = alloca %"class.std::__2::vector<std::__2::string>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #18 store ptr %0, ptr %2, align 4, !tbaa !20 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #20 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #18 ret ptr %0 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #8 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #2 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #18 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #19 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #21 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #19 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !30 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #6 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #18 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #20 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #21 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #10 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #11 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #12 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #22 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #19, !noalias !32 store ptr %7, ptr %0, align 4, !tbaa !14 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !20 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #19 store ptr %8, ptr %5, align 4, !tbaa !10 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !24, !range !35, !noundef !36 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #13 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #14 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.9) #22 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #12 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #22 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #23 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.9", align 4 store ptr %3, ptr %5, align 4, !tbaa !20 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 store ptr %3, ptr %6, align 4, !tbaa !20 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #19 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !20 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !20 br label %10, !llvm.loop !37 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.9", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !38 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %11 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.9", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !38, !range !35, !noundef !36 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !41 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !28 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !28 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #19 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !43 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !44 %5 = load ptr, ptr %4, align 4, !tbaa !20 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !45 %8 = load ptr, ptr %7, align 4, !tbaa !20 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #12 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %8, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !46 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #12 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !47 %3 = load ptr, ptr %2, align 4, !tbaa !14 %4 = icmp eq ptr %3, null br i1 %4, label %8, label %5 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #20 %6 = load ptr, ptr %0, align 4, !tbaa !47 %7 = load ptr, ptr %6, align 4, !tbaa !14 tail call void @_ZdlPv(ptr noundef %7) #24 br label %8 8: ; preds = %5, %1 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #15 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !14 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %2) #20 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %4, %2 ], [ %9, %8 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %11, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 -1 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #20 br label %5, !llvm.loop !48 11: ; preds = %5 store ptr %1, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #15 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #20 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #11 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #5 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #18 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !14 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #19 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !14 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #19 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !49 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #19 %24 = load ptr, ptr %21, align 4, !tbaa !49 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !49 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #19 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #20 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #18 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #22 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !20 %8 = load ptr, ptr %0, align 4, !tbaa !14 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !17 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !20 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #19, !noalias !53 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !56 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !49 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !57 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !20 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !14 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !57 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #19 store ptr %9, ptr %7, align 4, !tbaa !57 %10 = load ptr, ptr %0, align 4, !tbaa !20 store ptr %9, ptr %0, align 4, !tbaa !20 store ptr %10, ptr %7, align 4, !tbaa !20 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !20 %13 = load ptr, ptr %11, align 4, !tbaa !20 store ptr %13, ptr %4, align 4, !tbaa !20 store ptr %12, ptr %11, align 4, !tbaa !20 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !20 %16 = load ptr, ptr %14, align 4, !tbaa !20 store ptr %16, ptr %3, align 4, !tbaa !20 store ptr %15, ptr %14, align 4, !tbaa !20 %17 = load ptr, ptr %7, align 4, !tbaa !57 store ptr %17, ptr %1, align 4, !tbaa !56 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #6 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #20 %2 = load ptr, ptr %0, align 4, !tbaa !56 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #24 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.13", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #18 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !20 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #18 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !58 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !59 store i8 1, ptr %19, align 4, !tbaa !61 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #20 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #18 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.13", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !61, !range !35, !noundef !36 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #16 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !64 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.14", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !65 %5 = load ptr, ptr %4, align 4, !tbaa.struct !19 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse.14", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !66 %8 = load ptr, ptr %7, align 4, !tbaa.struct !19 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #19 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #12 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #20 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !67 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #15 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !57 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #20 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #4 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !49 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !49 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #20 br label %4, !llvm.loop !68 10: ; preds = %4 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #17 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #17 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #14 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { nounwind } attributes #19 = { minsize optsize } attributes #20 = { minsize nounwind optsize } attributes #21 = { noreturn } attributes #22 = { minsize noreturn optsize } attributes #23 = { builtin minsize optsize allocsize(0) } attributes #24 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSSt16initializer_listINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE", !5, i64 0, !8, i64 4} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"long", !6, i64 0} !9 = !{!4, !8, i64 4} !10 = !{!11, !5, i64 4} !11 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !12, i64 8} !12 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !13, i64 0} !13 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !14 = !{!11, !5, i64 0} !15 = distinct !{!15, !16} !16 = !{!"llvm.loop.mustprogress"} !17 = !{!13, !5, i64 0} !18 = distinct !{!18, !16} !19 = !{i64 0, i64 4, !20} !20 = !{!5, !5, i64 0} !21 = !{!22} !22 = distinct !{!22, !23, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_: argument 0"} !23 = distinct !{!23, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_"} !24 = !{!25, !27, i64 4} !25 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEE", !26, i64 0, !27, i64 4} !26 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorE", !5, i64 0} !27 = !{!"bool", !6, i64 0} !28 = !{!6, !6, i64 0} !29 = distinct !{!29, !16} !30 = !{!31, !31, i64 0} !31 = !{!"vtable pointer", !7, i64 0} !32 = !{!33} !33 = distinct !{!33, !34, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !34 = distinct !{!34, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !35 = !{i8 0, i8 2} !36 = !{} !37 = distinct !{!37, !16} !38 = !{!39, !27, i64 12} !39 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEEE", !40, i64 0, !27, i64 12} !40 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EE", !5, i64 0, !5, i64 4, !5, i64 8} !41 = !{i64 0, i64 4, !20, i64 4, i64 4, !42, i64 8, i64 4, !42, i64 11, i64 4, !42, i64 0, i64 11, !28, i64 11, i64 0, !28, i64 11, i64 1, !28, i64 11, i64 1, !28, i64 0, i64 12, !28} !42 = !{!8, !8, i64 0} !43 = !{!40, !5, i64 0} !44 = !{!40, !5, i64 8} !45 = !{!40, !5, i64 4} !46 = distinct !{!46, !16} !47 = !{!26, !5, i64 0} !48 = distinct !{!48, !16} !49 = !{!50, !5, i64 8} !50 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !51, i64 12} !51 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !13, i64 0, !52, i64 4} !52 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !53 = !{!54} !54 = distinct !{!54, !55, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !55 = distinct !{!55, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !56 = !{!50, !5, i64 0} !57 = !{!50, !5, i64 4} !58 = distinct !{!58, !16} !59 = !{!60, !5, i64 0} !60 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !61 = !{!62, !27, i64 12} !62 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !63, i64 0, !27, i64 12} !63 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !64 = !{!63, !5, i64 0} !65 = !{!63, !5, i64 8} !66 = !{!63, !5, i64 4} !67 = distinct !{!67, !16} !68 = distinct !{!68, !16}
(module $code_146.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32))) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32 i32 i32 i32))) (type (;6;) (func (param i32))) (type (;7;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 2))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ (type 5))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 4))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 6))) (import "env" "memcmp" (func $memcmp (type 4))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $bf_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 128 i32.sub local.tee 7 global.set $__stack_pointer local.get 7 i32.const 12 i32.add global.get $__memory_base local.tee 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.tee 4 i32.const 12 i32.add local.get 3 i32.const 8 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 24 i32.add local.get 3 i32.const 48 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 36 i32.add local.get 3 i32.const 21 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 48 i32.add local.get 3 i32.const 33 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 60 i32.add local.get 3 i32.const 41 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 72 i32.add local.get 3 i32.const 14 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 84 i32.add local.get 3 i32.const 54 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 7 i32.const 8 i32.store offset=112 local.get 7 local.get 4 i32.store offset=108 local.get 7 local.get 7 i64.load offset=108 align=4 i64.store local.get 4 i32.const 96 i32.add local.set 6 global.get $__stack_pointer i32.const 16 i32.sub local.tee 8 global.set $__stack_pointer local.get 7 i32.const 116 i32.add local.tee 3 i32.const 0 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 8 local.get 3 i32.store offset=8 local.get 7 i32.load offset=4 local.tee 5 if ;; label = @1 local.get 5 i32.const 357913942 i32.ge_u if ;; label = @2 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end local.get 3 local.get 5 call $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ local.tee 9 i32.store offset=4 local.get 3 local.get 9 i32.store local.get 3 local.get 9 local.get 5 i32.const 12 i32.mul i32.add i32.store offset=8 local.get 3 local.get 7 i32.load local.tee 9 local.get 9 local.get 5 i32.const 12 i32.mul i32.add local.get 5 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ end local.get 8 i32.const 1 i32.store8 offset=12 local.get 8 i32.const 8 i32.add local.tee 5 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 5 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ end local.get 8 i32.const 16 i32.add global.set $__stack_pointer loop ;; label = @1 local.get 6 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.tee 6 local.get 4 i32.ne br_if 0 (;@1;) end i32.const 0 local.set 6 i32.const -1 local.set 5 i32.const -1 local.set 4 loop ;; label = @1 local.get 3 i32.load offset=4 local.get 3 i32.load local.tee 8 i32.sub i32.const 12 i32.div_s local.get 6 i32.gt_u if ;; label = @2 local.get 6 local.get 5 local.get 8 local.get 6 i32.const 12 i32.mul local.tee 9 i32.add local.get 1 call $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ select local.set 5 local.get 6 local.get 4 local.get 3 i32.load local.get 9 i32.add local.get 2 call $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ select local.set 4 local.get 6 i32.const 1 i32.add local.set 6 br 1 (;@1;) end end block ;; label = @1 local.get 5 i32.const -1 i32.ne local.get 4 i32.const -1 i32.ne i32.and i32.eqz if ;; label = @2 local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 br 1 (;@1;) end local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 5 local.get 4 local.get 4 local.get 5 i32.lt_s select local.set 2 local.get 5 local.get 4 local.get 4 local.get 5 i32.gt_s select local.set 6 loop ;; label = @2 local.get 6 i32.const 1 i32.add local.tee 6 local.get 2 i32.ge_s br_if 1 (;@1;) local.get 3 i32.load local.get 6 i32.const 12 i32.mul i32.add local.set 1 block ;; label = @3 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @4 local.get 0 local.get 1 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@3;) end local.get 0 local.get 1 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end br 0 (;@2;) end unreachable end global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 3 i32.store offset=12 local.get 0 i32.const 12 i32.add call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 7 i32.const 128 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $bool_std::__2::operator==_abi:v160006_<std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32) block ;; label = @1 local.get 0 i32.load offset=4 local.tee 5 local.get 0 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s local.tee 6 i32.const 0 i32.lt_s select local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s local.tee 4 i32.const 0 i32.lt_s select i32.ne br_if 0 (;@1;) local.get 1 i32.load local.get 1 local.get 4 i32.const 0 i32.lt_s select local.set 1 local.get 6 i32.const 0 i32.ge_s if ;; label = @2 loop ;; label = @3 local.get 2 i32.eqz local.set 3 local.get 2 i32.eqz br_if 2 (;@1;) local.get 0 i32.load8_u local.get 1 i32.load8_u i32.ne br_if 2 (;@1;) local.get 1 i32.const 1 i32.add local.set 1 local.get 0 i32.const 1 i32.add local.set 0 local.get 2 i32.const 1 i32.sub local.set 2 br 0 (;@3;) end unreachable end local.get 0 i32.load local.get 1 local.get 5 call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ i32.eqz local.set 3 end local.get 3) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1 (type 5) (param i32 i32 i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 local.get 4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.add local.tee 4 i32.store offset=28 local.get 1 i32.const 12 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.load8_u offset=20 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 drop local.get 3 i32.load offset=16 i32.load local.set 1 local.get 3 i32.load offset=12 i32.load local.set 2 loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 1 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 1 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 0 local.get 4 i32.store offset=4) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 4) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 3) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 4 i32.const 357913942 i32.ge_u if ;; label = @1 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 3 i32.const 1 i32.shl local.tee 5 local.get 4 local.get 4 local.get 5 i32.lt_u select local.get 3 i32.const 178956970 i32.ge_u select local.set 3 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 4 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 3 if ;; label = @1 local.get 3 call $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ local.set 4 end local.get 2 local.get 4 i32.store offset=12 local.get 2 local.get 4 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 4 local.get 3 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 1 local.get 0 i32.load local.set 5 local.get 2 i32.load offset=16 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 5 i32.ne if ;; label = @2 local.get 4 i32.const 12 i32.sub local.tee 4 local.get 1 i32.const 12 i32.sub local.tee 1 i64.load align=4 i64.store align=4 local.get 4 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 local.get 1 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 local.get 4 i32.store offset=28 local.get 3 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 5 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 5 i32.ne if ;; label = @3 local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 5 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 4 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 4 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ (type 6) (param i32) (local i32 i32 i32) local.get 0 i32.load local.tee 1 i32.load if ;; label = @1 local.get 1 i32.load local.set 3 local.get 1 i32.load offset=4 local.set 2 loop ;; label = @2 local.get 2 local.get 3 i32.ne if ;; label = @3 local.get 2 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 2 br 1 (;@2;) end end local.get 1 local.get 3 i32.store offset=4 local.get 0 i32.load i32.load call $operator_delete_void*_ end) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const (type 7) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base i32.const 26 i32.add call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 3 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>::allocate_abi:v160006__unsigned_long_ (type 1) (param i32) (result i32) (local i32) local.get 0 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 i32.const 12 i32.mul call $operator_new_unsigned_long_) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z2bfNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_" (func $bf_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "Mercury\00Venus\00Uranus\00Mars\00vector\00Jupiter\00Saturn\00Earth\00Neptune\00"))
CPP/149
/* Write a function that accepts a vector of strings as a parameter, deletes the strings that have odd lengths from it, and returns the resulted vector with a sorted order, The vector is always a vector of strings and never a vector of numbers, and it may contain duplicates. The order of the vector should be ascending by length of each word, and you should return the vector sorted by that rule. If two words have the same length, sort the vector alphabetically. The function should return a vector of strings in sorted order. You may assume that all words will have the same length. For example: assert vector_sort({"aa", "a", "aaa"}) => {"aa"} assert vector_sort({"ab", "a", "aaa", "cd"}) => {"ab", "cd"} */ #include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; vector<string> sorted_list_sum(vector<string> lst){
#include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<math.h> #include<stdlib.h> vector<string> sorted_list_sum(vector<string> lst){
vector<string> out={}; for (int i=0;i<lst.size();i++) if (lst[i].length()%2==0) out.push_back(lst[i]); string mid; sort(out.begin(),out.end()); for (int i=0;i<out.size();i++) for (int j=1;j<out.size();j++) if (out[j].length()<out[j-1].length()) { mid=out[j];out[j]=out[j-1];out[j-1]=mid; } return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(sorted_list_sum({"aa", "a", "aaa"}) , {"aa"})); assert (issame(sorted_list_sum({"school", "AI", "asdf", "b"}) , {"AI", "asdf", "school"})); assert (issame(sorted_list_sum({"d", "b", "c", "a"}) , {})); assert (issame(sorted_list_sum({"d", "dcba", "abcd", "a"}) , {"abcd", "dcba"})); assert (issame(sorted_list_sum({"AI", "ai", "au"}) , {"AI", "ai", "au"})); assert (issame(sorted_list_sum({"a", "b", "b", "c", "c", "a"}) , {})); assert (issame(sorted_list_sum({"aaaa", "bbbb", "dd", "cc"}) , {"cc", "dd", "aaaa", "bbbb"})); }
#undef NDEBUG #include<assert.h> bool issame(vector<string> a,vector<string>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(sorted_list_sum({"aa", "a", "aaa"}) , {"aa"})); assert (issame(sorted_list_sum({"ab", "a", "aaa", "cd"}) , {"ab", "cd"})); }
; ModuleID = 'c_code/code_147.cpp' source_filename = "c_code/code_147.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.7" } %"class.std::__2::__compressed_pair.7" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.8" } %"struct.std::__2::__compressed_pair_elem.8" = type { ptr } %"class.std::__2::reverse_iterator" = type { ptr } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } %"struct.std::__2::__less.10" = type { i8 } %"class.std::__2::basic_string_view" = type { ptr, i32 } $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_ = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE = comdat any $_ZNSt3__24sortB7v160006INS_11__wrap_iterIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_6__lessIS7_S7_EEEEvT_SC_T0_ = comdat any $_ZNSt3__26__sortIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEvT0_SB_T_ = comdat any $_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE = comdat any $_ZNSt3__218__insertion_sort_3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_ = comdat any $_ZNSt3__214__partial_sortB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_RT0_ = comdat any $_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_ = comdat any $_ZNSt3__227__insertion_sort_incompleteIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEbT0_SB_T_ = comdat any $_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_ = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any $_ZNSt3__27__sort4B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_SC_T0_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__219__partial_sort_implB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_OT0_ = comdat any $_ZNSt3__211__make_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_ = comdat any $_ZNSt3__211__sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_OT0_NS_15iterator_traitsISC_E15difference_typeESC_ = comdat any $_ZNSt3__211__sort_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_ = comdat any $_ZNSt3__210__pop_heapB7v160006INS_17_ClassicAlgPolicyENS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SB_RT0_NS_15iterator_traitsISB_E15difference_typeE = comdat any $_ZNSt3__217__floyd_sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EET1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE = comdat any $_ZNSt3__29__sift_upB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE = comdat any $_ZNSt3__27__sort5IRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEjT0_SB_SB_SB_SB_T_ = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z15sorted_list_sumNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 store ptr null, ptr %0, align 4, !tbaa !3 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 br label %7 7: ; preds = %33, %2 %8 = phi i32 [ 0, %2 ], [ %34, %33 ] %9 = load ptr, ptr %6, align 4, !tbaa !10 %10 = load ptr, ptr %1, align 4, !tbaa !3 %11 = ptrtoint ptr %9 to i32 %12 = ptrtoint ptr %10 to i32 %13 = sub i32 %11, %12 %14 = sdiv exact i32 %13, 12 %15 = icmp ult i32 %8, %14 br i1 %15, label %21, label %16 16: ; preds = %7 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #20 call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, i8 0, i32 12, i1 false) %17 = load ptr, ptr %0, align 4, !tbaa !3 %18 = load ptr, ptr %4, align 4, !tbaa !10 tail call void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_6__lessIS7_S7_EEEEvT_SC_T0_(ptr %17, ptr %18) #21 %19 = load ptr, ptr %4, align 4, !tbaa !10 %20 = load ptr, ptr %0, align 4, !tbaa !3 br label %35 21: ; preds = %7 %22 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 %8 %23 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %22, i32 0, i32 2 %24 = load i8, ptr %23, align 1 %25 = icmp slt i8 %24, 0 %26 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %22, i32 0, i32 1 %27 = load i32, ptr %26, align 4 %28 = zext i8 %24 to i32 %29 = select i1 %25, i32 %27, i32 %28 %30 = and i32 %29, 1 %31 = icmp eq i32 %30, 0 br i1 %31, label %32, label %33 32: ; preds = %21 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %22) #21 br label %33 33: ; preds = %21, %32 %34 = add nuw nsw i32 %8, 1 br label %7, !llvm.loop !12 35: ; preds = %59, %16 %36 = phi ptr [ %20, %16 ], [ %49, %59 ] %37 = phi ptr [ %19, %16 ], [ %50, %59 ] %38 = phi ptr [ %19, %16 ], [ %52, %59 ] %39 = phi ptr [ %20, %16 ], [ %51, %59 ] %40 = phi i32 [ 0, %16 ], [ %60, %59 ] %41 = ptrtoint ptr %38 to i32 %42 = ptrtoint ptr %39 to i32 %43 = sub i32 %41, %42 %44 = sdiv exact i32 %43, 12 %45 = icmp ult i32 %40, %44 br i1 %45, label %48, label %46 46: ; preds = %35 %47 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #20 ret void 48: ; preds = %35, %91 %49 = phi ptr [ %92, %91 ], [ %36, %35 ] %50 = phi ptr [ %93, %91 ], [ %37, %35 ] %51 = phi ptr [ %94, %91 ], [ %36, %35 ] %52 = phi ptr [ %93, %91 ], [ %38, %35 ] %53 = phi i32 [ %95, %91 ], [ 1, %35 ] %54 = ptrtoint ptr %52 to i32 %55 = ptrtoint ptr %51 to i32 %56 = sub i32 %54, %55 %57 = sdiv exact i32 %56, 12 %58 = icmp ult i32 %53, %57 br i1 %58, label %61, label %59 59: ; preds = %48 %60 = add nuw nsw i32 %40, 1 br label %35, !llvm.loop !14 61: ; preds = %48 %62 = getelementptr inbounds %"class.std::__2::basic_string", ptr %51, i32 %53 %63 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %62, i32 0, i32 2 %64 = load i8, ptr %63, align 1 %65 = icmp slt i8 %64, 0 %66 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %62, i32 0, i32 1 %67 = load i32, ptr %66, align 4 %68 = zext i8 %64 to i32 %69 = select i1 %65, i32 %67, i32 %68 %70 = add nsw i32 %53, -1 %71 = getelementptr inbounds %"class.std::__2::basic_string", ptr %51, i32 %70 %72 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %71, i32 0, i32 2 %73 = load i8, ptr %72, align 1 %74 = icmp slt i8 %73, 0 %75 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %71, i32 0, i32 1 %76 = load i32, ptr %75, align 4 %77 = zext i8 %73 to i32 %78 = select i1 %74, i32 %76, i32 %77 %79 = icmp ult i32 %69, %78 br i1 %79, label %80, label %91 80: ; preds = %61 %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %62) #21 %82 = load ptr, ptr %0, align 4, !tbaa !3 %83 = getelementptr inbounds %"class.std::__2::basic_string", ptr %82, i32 %70 %84 = getelementptr inbounds %"class.std::__2::basic_string", ptr %82, i32 %53 %85 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %84, ptr noundef nonnull align 4 dereferenceable(12) %83) #21 %86 = load ptr, ptr %0, align 4, !tbaa !3 %87 = getelementptr inbounds %"class.std::__2::basic_string", ptr %86, i32 %70 %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(12) %3) #21 %89 = load ptr, ptr %0, align 4, !tbaa !3 %90 = load ptr, ptr %4, align 4, !tbaa !10 br label %91 91: ; preds = %61, %80 %92 = phi ptr [ %49, %61 ], [ %89, %80 ] %93 = phi ptr [ %50, %61 ], [ %90, %80 ] %94 = phi ptr [ %51, %61 ], [ %89, %80 ] %95 = add nuw nsw i32 %53, 1 br label %48, !llvm.loop !15 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE9push_backB7v160006ERKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !16 %7 = icmp eq ptr %4, %6 br i1 %7, label %9, label %8 8: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #21 br label %10 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #21 br label %10 10: ; preds = %9, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = icmp eq ptr %0, %1 br i1 %3, label %26, label %4 4: ; preds = %2 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %9 = load i8, ptr %8, align 1 %10 = icmp slt i8 %9, 0 br i1 %7, label %18, label %11 11: ; preds = %4 br i1 %10, label %13, label %12 12: ; preds = %11 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 br label %26 13: ; preds = %11 %14 = load ptr, ptr %1, align 4 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %14, i32 noundef %16) #21 br label %26 18: ; preds = %4 %19 = load ptr, ptr %1, align 4 %20 = select i1 %10, ptr %19, ptr %1 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %22 = load i32, ptr %21, align 4 %23 = zext i8 %9 to i32 %24 = select i1 %10, i32 %22, i32 %23 %25 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %20, i32 noundef %24) #21 br label %26 26: ; preds = %2, %12, %18, %13 %27 = phi ptr [ %25, %18 ], [ %17, %13 ], [ %0, %12 ], [ %0, %2 ] ret ptr %27 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1) #21 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %4, i32 1 store ptr %6, ptr %3, align 4, !tbaa !10 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #20 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #21 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = sdiv exact i32 %18, 12 %20 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #21 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !21 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %1) #21 %24 = load ptr, ptr %21, align 4, !tbaa !21 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %24, i32 1 store ptr %25, ptr %21, align 4, !tbaa !21 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #21 %26 = call noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #22 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #20 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !20 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #21 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #6 ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #2 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #23 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !16 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = sdiv exact i32 %11, 12 %13 = icmp ult i32 %12, 178956970 %14 = shl nuw nsw i32 %12, 1 %15 = tail call i32 @llvm.umax.i32(i32 %14, i32 %1) %16 = select i1 %13, i32 %15, i32 357913941 ret i32 %16 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEC2EmmS8_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #21, !noalias !25 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !28 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !21 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !29 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !16 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE26__swap_out_circular_bufferERNS_14__split_bufferIS6_RS7_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %5 = load ptr, ptr %4, align 4, !tbaa !10 %6 = load ptr, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %8 = load ptr, ptr %7, align 4, !tbaa !29 %9 = tail call ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr %5, ptr %6, ptr %8) #21 store ptr %9, ptr %7, align 4, !tbaa !29 %10 = load ptr, ptr %0, align 4, !tbaa !16 store ptr %9, ptr %0, align 4, !tbaa !16 store ptr %10, ptr %7, align 4, !tbaa !16 %11 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %12 = load ptr, ptr %4, align 4, !tbaa !16 %13 = load ptr, ptr %11, align 4, !tbaa !16 store ptr %13, ptr %4, align 4, !tbaa !16 store ptr %12, ptr %11, align 4, !tbaa !16 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %15 = load ptr, ptr %3, align 4, !tbaa !16 %16 = load ptr, ptr %14, align 4, !tbaa !16 store ptr %16, ptr %3, align 4, !tbaa !16 store ptr %15, ptr %14, align 4, !tbaa !16 %17 = load ptr, ptr %7, align 4, !tbaa !29 store ptr %17, ptr %1, align 4, !tbaa !28 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #7 comdat { tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #22 %2 = load ptr, ptr %0, align 4, !tbaa !28 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #24 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #23 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #20 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #21 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #25 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #21 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !30 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #7 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #23 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #26 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #20 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #22 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #25 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #7 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #10 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: minsize optsize define linkonce_odr hidden ptr @_ZNSt3__242__uninitialized_allocator_move_if_noexceptB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_SA_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2, ptr %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::reverse_iterator", align 4 %6 = alloca %"class.std::__2::reverse_iterator", align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #20 %8 = ptrtoint ptr %3 to i32 store i32 %8, ptr %6, align 4, !tbaa !16 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #20 store ptr %0, ptr %7, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %9, align 4 %10 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %10, align 4 br label %11 11: ; preds = %15, %4 %12 = phi ptr [ %3, %4 ], [ %16, %15 ] %13 = phi ptr [ %1, %4 ], [ %17, %15 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %18, label %15 15: ; preds = %11 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 -1 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %17, i8 0, i32 12, i1 false) br label %11, !llvm.loop !32 18: ; preds = %11 %19 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %7, i32 0, i32 1 store ptr %12, ptr %5, align 4, !tbaa !33 store i8 1, ptr %19, align 4, !tbaa !35 %20 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #22 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #20 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #20 ret ptr %12 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #7 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !35, !range !39, !noundef !40 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #12 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !41 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !42 %5 = load ptr, ptr %4, align 4, !tbaa.struct !43 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !44 %8 = load ptr, ptr %7, align 4, !tbaa.struct !43 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #21 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorINS8_IPS6_EEEESB_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #3 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %9, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #22 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 br label %4, !llvm.loop !45 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #13 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !29 tail call void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #22 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEE17__destruct_at_endB7v160006EPS6_NS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 br label %4 4: ; preds = %7, %2 %5 = load ptr, ptr %3, align 4, !tbaa !21 %6 = icmp eq ptr %5, %1 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 store ptr %8, ptr %3, align 4, !tbaa !21 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #22 br label %4, !llvm.loop !46 10: ; preds = %4 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__24sortB7v160006INS_11__wrap_iterIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_6__lessIS7_S7_EEEEvT_SC_T0_(ptr %0, ptr %1) local_unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__less.10", align 1 call void @_ZNSt3__26__sortIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEvT0_SB_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #21 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26__sortIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEvT0_SB_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #3 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %0 to i32 %6 = sub i32 %4, %5 %7 = sdiv exact i32 %6, 12 %8 = icmp eq ptr %1, %0 %9 = tail call i32 @llvm.ctlz.i32(i32 %7, i1 false), !range !47 %10 = shl nuw nsw i32 %9, 1 %11 = sub nsw i32 62, %10 %12 = select i1 %8, i32 0, i32 %11 tail call void @_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %12) #21 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr void @_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %3) local_unnamed_addr #3 comdat { %5 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %6 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %7 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %8 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %9 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %10 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 br label %11 11: ; preds = %145, %4 %12 = phi ptr [ %0, %4 ], [ %21, %145 ] %13 = phi ptr [ %1, %4 ], [ %130, %145 ] %14 = phi i32 [ %3, %4 ], [ %53, %145 ] %15 = ptrtoint ptr %13 to i32 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 br label %17 17: ; preds = %156, %11 %18 = phi ptr [ %12, %11 ], [ %157, %156 ] %19 = phi i32 [ %14, %11 ], [ %53, %156 ] br label %20 20: ; preds = %97, %17 %21 = phi ptr [ %18, %17 ], [ %90, %97 ] %22 = phi i32 [ %19, %17 ], [ %53, %97 ] %23 = ptrtoint ptr %21 to i32 %24 = sub i32 %15, %23 %25 = sdiv exact i32 %24, 12 switch i32 %25, label %45 [ i32 0, label %160 i32 1, label %160 i32 2, label %26 i32 3, label %30 i32 4, label %34 i32 5, label %39 ] 26: ; preds = %20 %27 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 %28 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %21) #22 br i1 %28, label %29, label %160 29: ; preds = %26 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %27, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 8 dereferenceable(12) %10, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) br label %160 30: ; preds = %20 %31 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 1 %32 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 %33 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %21, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %160 34: ; preds = %20 %35 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 1 %36 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 2 %37 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 %38 = tail call noundef i32 @_ZNSt3__27__sort4B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_SC_T0_(ptr noundef %21, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %37, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %160 39: ; preds = %20 %40 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 1 %41 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 2 %42 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 3 %43 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 -1 %44 = tail call noundef i32 @_ZNSt3__27__sort5IRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEjT0_SB_SB_SB_SB_T_(ptr noundef %21, ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull %42, ptr noundef nonnull %43, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %160 45: ; preds = %20 %46 = icmp slt i32 %24, 84 br i1 %46, label %47, label %48 47: ; preds = %45 tail call void @_ZNSt3__218__insertion_sort_3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_(ptr noundef %21, ptr noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %160 48: ; preds = %45 %49 = icmp eq i32 %22, 0 br i1 %49, label %50, label %52 50: ; preds = %48 %51 = tail call noundef ptr @_ZNSt3__214__partial_sortB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_RT0_(ptr noundef %21, ptr noundef %13, ptr noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %160 52: ; preds = %48 %53 = add nsw i32 %22, -1 %54 = icmp ugt i32 %24, 11988 %55 = lshr i32 %25, 1 %56 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 %55 br i1 %54, label %57, label %62 57: ; preds = %52 %58 = lshr i32 %25, 2 %59 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 %58 %60 = getelementptr inbounds %"class.std::__2::basic_string", ptr %56, i32 %58 %61 = tail call noundef i32 @_ZNSt3__27__sort5IRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEjT0_SB_SB_SB_SB_T_(ptr noundef %21, ptr noundef %59, ptr noundef %56, ptr noundef %60, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %64 62: ; preds = %52 %63 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %21, ptr noundef %56, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %64 64: ; preds = %62, %57 %65 = phi i32 [ %61, %57 ], [ %63, %62 ] %66 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %56) #22 br i1 %66, label %104, label %67 67: ; preds = %64, %100 %68 = phi ptr [ %69, %100 ], [ %16, %64 ] %69 = getelementptr inbounds %"class.std::__2::basic_string", ptr %68, i32 -1 %70 = icmp eq ptr %21, %69 br i1 %70, label %71, label %100 71: ; preds = %67 %72 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 1 %73 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %16) #22 br i1 %73, label %83, label %74 74: ; preds = %71, %81 %75 = phi ptr [ %82, %81 ], [ %72, %71 ] %76 = icmp eq ptr %75, %16 br i1 %76, label %160, label %77 77: ; preds = %74 %78 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %75) #22 br i1 %78, label %79, label %81 79: ; preds = %77 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %75, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %16, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(12) %9, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) %80 = getelementptr inbounds %"class.std::__2::basic_string", ptr %75, i32 1 br label %83 81: ; preds = %77 %82 = getelementptr inbounds %"class.std::__2::basic_string", ptr %75, i32 1 br label %74, !llvm.loop !48 83: ; preds = %79, %71 %84 = phi ptr [ %72, %71 ], [ %80, %79 ] %85 = icmp eq ptr %84, %16 br i1 %85, label %160, label %86 86: ; preds = %83, %99 %87 = phi ptr [ %92, %99 ], [ %84, %83 ] %88 = phi ptr [ %95, %99 ], [ %16, %83 ] br label %89 89: ; preds = %89, %86 %90 = phi ptr [ %87, %86 ], [ %92, %89 ] %91 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %90) #22 %92 = getelementptr inbounds %"class.std::__2::basic_string", ptr %90, i32 1 br i1 %91, label %93, label %89, !llvm.loop !49 93: ; preds = %89, %93 %94 = phi ptr [ %95, %93 ], [ %88, %89 ] %95 = getelementptr inbounds %"class.std::__2::basic_string", ptr %94, i32 -1 %96 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %95) #22 br i1 %96, label %93, label %97, !llvm.loop !50 97: ; preds = %93 %98 = icmp ult ptr %90, %95 br i1 %98, label %99, label %20 99: ; preds = %97 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %90, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %90, ptr noundef nonnull align 4 dereferenceable(12) %95, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 8 dereferenceable(12) %8, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) br label %86, !llvm.loop !51 100: ; preds = %67 %101 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(12) %56) #22 br i1 %101, label %102, label %67, !llvm.loop !52 102: ; preds = %100 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %69, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 8 dereferenceable(12) %7, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) %103 = add i32 %65, 1 br label %104 104: ; preds = %64, %102 %105 = phi ptr [ %69, %102 ], [ %16, %64 ] %106 = phi i32 [ %103, %102 ], [ %65, %64 ] %107 = getelementptr inbounds %"class.std::__2::basic_string", ptr %21, i32 1 %108 = icmp ult ptr %107, %105 br i1 %108, label %109, label %128 109: ; preds = %104, %124 %110 = phi ptr [ %127, %124 ], [ %56, %104 ] %111 = phi ptr [ %117, %124 ], [ %107, %104 ] %112 = phi ptr [ %120, %124 ], [ %105, %104 ] %113 = phi i32 [ %125, %124 ], [ %106, %104 ] br label %114 114: ; preds = %114, %109 %115 = phi ptr [ %111, %109 ], [ %117, %114 ] %116 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %115, ptr noundef nonnull align 4 dereferenceable(12) %110) #22 %117 = getelementptr inbounds %"class.std::__2::basic_string", ptr %115, i32 1 br i1 %116, label %114, label %118, !llvm.loop !53 118: ; preds = %114, %118 %119 = phi ptr [ %120, %118 ], [ %112, %114 ] %120 = getelementptr inbounds %"class.std::__2::basic_string", ptr %119, i32 -1 %121 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 4 dereferenceable(12) %110) #22 br i1 %121, label %122, label %118, !llvm.loop !54 122: ; preds = %118 %123 = icmp ugt ptr %115, %120 br i1 %123, label %128, label %124 124: ; preds = %122 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %115, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %115, ptr noundef nonnull align 4 dereferenceable(12) %120, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 8 dereferenceable(12) %6, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) %125 = add i32 %113, 1 %126 = icmp eq ptr %110, %115 %127 = select i1 %126, ptr %120, ptr %110 br label %109, !llvm.loop !55 128: ; preds = %122, %104 %129 = phi ptr [ %56, %104 ], [ %110, %122 ] %130 = phi ptr [ %107, %104 ], [ %115, %122 ] %131 = phi i32 [ %106, %104 ], [ %113, %122 ] %132 = icmp eq ptr %130, %129 br i1 %132, label %137, label %133 133: ; preds = %128 %134 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %129, ptr noundef nonnull align 4 dereferenceable(12) %130) #22 br i1 %134, label %135, label %137 135: ; preds = %133 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %130, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) %129, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %129, ptr noundef nonnull align 8 dereferenceable(12) %5, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) %136 = add i32 %131, 1 br label %137 137: ; preds = %135, %133, %128 %138 = phi i32 [ %136, %135 ], [ %131, %133 ], [ %131, %128 ] %139 = icmp eq i32 %138, 0 br i1 %139, label %140, label %147 140: ; preds = %137 %141 = tail call noundef zeroext i1 @_ZNSt3__227__insertion_sort_incompleteIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEbT0_SB_T_(ptr noundef nonnull %21, ptr noundef nonnull %130, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 %142 = getelementptr inbounds %"class.std::__2::basic_string", ptr %130, i32 1 %143 = tail call noundef zeroext i1 @_ZNSt3__227__insertion_sort_incompleteIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEbT0_SB_T_(ptr noundef nonnull %142, ptr noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br i1 %143, label %144, label %146 144: ; preds = %140 br i1 %141, label %160, label %145 145: ; preds = %144, %158 br label %11, !llvm.loop !56 146: ; preds = %140 br i1 %141, label %156, label %147 147: ; preds = %146, %137 %148 = ptrtoint ptr %130 to i32 %149 = sub i32 %148, %23 %150 = sdiv exact i32 %149, 12 %151 = sub i32 %15, %148 %152 = sdiv exact i32 %151, 12 %153 = icmp slt i32 %150, %152 br i1 %153, label %154, label %158 154: ; preds = %147 tail call void @_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef nonnull %21, ptr noundef nonnull %130, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %53) #21 %155 = getelementptr inbounds %"class.std::__2::basic_string", ptr %130, i32 1 br label %156 156: ; preds = %154, %146 %157 = phi ptr [ %142, %146 ], [ %155, %154 ] br label %17, !llvm.loop !56 158: ; preds = %147 %159 = getelementptr inbounds %"class.std::__2::basic_string", ptr %130, i32 1 tail call void @_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef nonnull %159, ptr noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %53) #21 br label %145 160: ; preds = %144, %83, %20, %20, %74, %26, %29, %30, %34, %39, %50, %47 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.ctlz.i32(i32, i1 immarg) #15 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__218__insertion_sort_3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::basic_string", align 4 %5 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 2 %6 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 1 %7 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 3 br label %9 9: ; preds = %27, %3 %10 = phi ptr [ %8, %3 ], [ %28, %27 ] %11 = phi ptr [ %5, %3 ], [ %10, %27 ] %12 = icmp eq ptr %10, %1 br i1 %12, label %13, label %14 13: ; preds = %9 ret void 14: ; preds = %9 %15 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11) #22 br i1 %15, label %16, label %27 16: ; preds = %14 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #20 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %10, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %10, i8 0, i32 12, i1 false) br label %17 17: ; preds = %21, %16 %18 = phi ptr [ %11, %16 ], [ %22, %21 ] %19 = phi ptr [ %10, %16 ], [ %18, %21 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %18) #22 %20 = icmp eq ptr %18, %0 br i1 %20, label %24, label %21 21: ; preds = %17 %22 = getelementptr inbounds %"class.std::__2::basic_string", ptr %18, i32 -1 %23 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %22) #22 br i1 %23, label %17, label %24, !llvm.loop !57 24: ; preds = %17, %21 %25 = phi ptr [ %0, %17 ], [ %18, %21 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %4) #22 %26 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #20 br label %27 27: ; preds = %24, %14 %28 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 1 br label %9, !llvm.loop !58 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__partial_sortB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_RT0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) local_unnamed_addr #3 comdat { %5 = icmp eq ptr %0, %1 br i1 %5, label %8, label %6 6: ; preds = %4 %7 = tail call noundef ptr @_ZNSt3__219__partial_sort_implB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #21 br label %8 8: ; preds = %4, %6 %9 = phi ptr [ %7, %6 ], [ %2, %4 ] ret ptr %9 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) local_unnamed_addr #13 comdat { %5 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %6 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %7 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %8 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %9 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %10 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 %11 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1) #22 br i1 %10, label %16, label %12 12: ; preds = %4 br i1 %11, label %13, label %21 13: ; preds = %12 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %9, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) %14 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br i1 %14, label %15, label %21 15: ; preds = %13 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %8, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) br label %21 16: ; preds = %4 br i1 %11, label %17, label %18 17: ; preds = %16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %7, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) br label %21 18: ; preds = %16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %6, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) %19 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1) #22 br i1 %19, label %20, label %21 20: ; preds = %18 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %5, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) br label %21 21: ; preds = %18, %20, %13, %15, %12, %17 %22 = phi i32 [ 1, %17 ], [ 0, %12 ], [ 2, %15 ], [ 1, %13 ], [ 2, %20 ], [ 1, %18 ] ret i32 %22 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__227__insertion_sort_incompleteIRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEbT0_SB_T_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #0 comdat { %4 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = ptrtoint ptr %1 to i32 %7 = ptrtoint ptr %0 to i32 %8 = sub i32 %6, %7 %9 = sdiv exact i32 %8, 12 switch i32 %9, label %29 [ i32 0, label %60 i32 1, label %60 i32 2, label %10 i32 3, label %14 i32 4, label %18 i32 5, label %23 ] 10: ; preds = %3 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %12 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br i1 %12, label %13, label %60 13: ; preds = %10 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %11, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 8 dereferenceable(12) %4, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) br label %60 14: ; preds = %3 %15 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 1 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %17 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %0, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %60 18: ; preds = %3 %19 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 1 %20 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 2 %21 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %22 = tail call noundef i32 @_ZNSt3__27__sort4B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_SC_T0_(ptr noundef %0, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %60 23: ; preds = %3 %24 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 1 %25 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 2 %26 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 3 %27 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %28 = tail call noundef i32 @_ZNSt3__27__sort5IRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEjT0_SB_SB_SB_SB_T_(ptr noundef %0, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 br label %60 29: ; preds = %3 %30 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 2 %31 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 1 %32 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %0, ptr noundef nonnull %31, ptr noundef nonnull %30, ptr noundef nonnull align 1 dereferenceable(1) %2) #21 %33 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 3 br label %34 34: ; preds = %54, %29 %35 = phi ptr [ %33, %29 ], [ %56, %54 ] %36 = phi ptr [ %30, %29 ], [ %35, %54 ] %37 = phi i32 [ 0, %29 ], [ %55, %54 ] %38 = icmp eq ptr %35, %1 br i1 %38, label %60, label %39 39: ; preds = %34 %40 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %36) #22 br i1 %40, label %41, label %54 41: ; preds = %39 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #20 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %35, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %35, i8 0, i32 12, i1 false) br label %42 42: ; preds = %46, %41 %43 = phi ptr [ %36, %41 ], [ %47, %46 ] %44 = phi ptr [ %35, %41 ], [ %43, %46 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %43) #22 %45 = icmp eq ptr %43, %0 br i1 %45, label %49, label %46 46: ; preds = %42 %47 = getelementptr inbounds %"class.std::__2::basic_string", ptr %43, i32 -1 %48 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %47) #22 br i1 %48, label %42, label %49, !llvm.loop !59 49: ; preds = %42, %46 %50 = phi ptr [ %0, %42 ], [ %43, %46 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 %51 = add i32 %37, 1 %52 = icmp eq i32 %51, 8 %53 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #20 br i1 %52, label %57, label %54 54: ; preds = %49, %39 %55 = phi i32 [ %51, %49 ], [ %37, %39 ] %56 = getelementptr inbounds %"class.std::__2::basic_string", ptr %35, i32 1 br label %34, !llvm.loop !60 57: ; preds = %49 %58 = getelementptr inbounds %"class.std::__2::basic_string", ptr %35, i32 1 %59 = icmp eq ptr %58, %1 br label %60 60: ; preds = %34, %57, %10, %13, %3, %3, %23, %18, %14 %61 = phi i1 [ true, %23 ], [ true, %18 ], [ true, %14 ], [ true, %3 ], [ true, %3 ], [ true, %13 ], [ true, %10 ], [ %59, %57 ], [ true, %34 ] ret i1 %61 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #14 comdat { %3 = tail call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #22 %4 = icmp slt i32 %3, 0 ret i1 %4 } ; Function Attrs: inlinehint minsize nounwind optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = alloca %"class.std::__2::basic_string_view", align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #20 tail call void @llvm.experimental.noalias.scope.decl(metadata !61) %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %5 = load i8, ptr %4, align 1, !noalias !61 %6 = icmp slt i8 %5, 0 %7 = load ptr, ptr %1, align 4, !noalias !61 %8 = select i1 %6, ptr %7, ptr %1 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !noalias !61 %11 = zext i8 %5 to i32 %12 = select i1 %6, i32 %10, i32 %11 store ptr %8, ptr %3, align 4, !tbaa !64, !alias.scope !61 %13 = getelementptr inbounds %"class.std::__2::basic_string_view", ptr %3, i32 0, i32 1 store i32 %12, ptr %13, align 4, !tbaa !66, !alias.scope !61 %14 = icmp eq i32 %12, 0 %15 = icmp ne ptr %8, null %16 = or i1 %15, %14 tail call void @llvm.assume(i1 %16) %17 = call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(8) %3) #22 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #20 ret i32 %17 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) local_unnamed_addr #14 comdat { %3 = load i32, ptr %1, align 4 %4 = getelementptr inbounds i8, ptr %1, i32 4 %5 = load i32, ptr %4, align 4 %6 = inttoptr i32 %3 to ptr %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %8 = load i8, ptr %7, align 1 %9 = icmp slt i8 %8, 0 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %11 = load i32, ptr %10, align 4 %12 = zext i8 %8 to i32 %13 = select i1 %9, i32 %11, i32 %12 %14 = load ptr, ptr %0, align 4 %15 = select i1 %9, ptr %14, ptr %0 %16 = icmp ult i32 %5, %13 %17 = tail call i32 @llvm.umin.i32(i32 %5, i32 %13) %18 = tail call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %15, ptr noundef %6, i32 noundef %17) #22 %19 = icmp eq i32 %18, 0 %20 = icmp ult i32 %13, %5 %21 = zext i1 %16 to i32 %22 = select i1 %20, i32 -1, i32 %21 %23 = select i1 %19, i32 %22, i32 %18 ret i32 %23 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #13 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #22 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #16 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNSt3__27__sort4B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_SC_T0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %4) local_unnamed_addr #3 comdat { %6 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %7 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %8 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %9 = tail call noundef i32 @_ZNSt3__27__sort3B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_T0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %4) #21 %10 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2) #22 br i1 %10, label %11, label %19 11: ; preds = %5 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %8, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) %12 = add i32 %9, 1 %13 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1) #22 br i1 %13, label %14, label %19 14: ; preds = %11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %7, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) %15 = add i32 %9, 2 %16 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br i1 %16, label %17, label %19 17: ; preds = %14 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %6, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) %18 = add i32 %9, 3 br label %19 19: ; preds = %11, %17, %14, %5 %20 = phi i32 [ %18, %17 ], [ %15, %14 ], [ %12, %11 ], [ %9, %5 ] ret i32 %20 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #14 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !20 tail call void @_ZdlPv(ptr noundef %7) #24 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !20 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__219__partial_sort_implB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_SB_EET1_SC_SC_T2_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) local_unnamed_addr #3 comdat { %5 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %6 = icmp eq ptr %0, %1 br i1 %6, label %21, label %7 7: ; preds = %4 tail call void @_ZNSt3__211__make_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #21 %8 = ptrtoint ptr %1 to i32 %9 = ptrtoint ptr %0 to i32 %10 = sub i32 %8, %9 %11 = sdiv exact i32 %10, 12 br label %12 12: ; preds = %18, %7 %13 = phi ptr [ %1, %7 ], [ %19, %18 ] %14 = icmp eq ptr %13, %2 br i1 %14, label %20, label %15 15: ; preds = %12 %16 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br i1 %16, label %17, label %18 17: ; preds = %15 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %13, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(12) %5, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) tail call void @_ZNSt3__211__sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_OT0_NS_15iterator_traitsISC_E15difference_typeESC_(ptr noundef nonnull %0, ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %11, ptr noundef nonnull %0) #21 br label %18 18: ; preds = %15, %17 %19 = getelementptr inbounds %"class.std::__2::basic_string", ptr %13, i32 1 br label %12, !llvm.loop !67 20: ; preds = %12 tail call void @_ZNSt3__211__sort_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3) #21 br label %21 21: ; preds = %4, %20 ret ptr %2 } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__211__make_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %0 to i32 %6 = sub i32 %4, %5 %7 = sdiv exact i32 %6, 12 %8 = icmp sgt i32 %6, 12 br i1 %8, label %9, label %18 9: ; preds = %3 %10 = add nsw i32 %7, -2 %11 = lshr i32 %10, 1 br label %12 12: ; preds = %15, %9 %13 = phi i32 [ %11, %9 ], [ %17, %15 ] %14 = icmp sgt i32 %13, -1 br i1 %14, label %15, label %18 15: ; preds = %12 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 %13 tail call void @_ZNSt3__211__sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_OT0_NS_15iterator_traitsISC_E15difference_typeESC_(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %7, ptr noundef %16) #21 %17 = add nsw i32 %13, -1 br label %12, !llvm.loop !68 18: ; preds = %12, %3 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__211__sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_OT0_NS_15iterator_traitsISC_E15difference_typeESC_(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(1) %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::basic_string", align 4 %6 = ptrtoint ptr %3 to i32 %7 = ptrtoint ptr %0 to i32 %8 = sub i32 %6, %7 %9 = sdiv exact i32 %8, 12 %10 = icmp slt i32 %2, 2 br i1 %10, label %53, label %11 11: ; preds = %4 %12 = add nsw i32 %2, -2 %13 = lshr i32 %12, 1 %14 = icmp slt i32 %13, %9 br i1 %14, label %53, label %15 15: ; preds = %11 %16 = shl nsw i32 %9, 1 %17 = or i32 %16, 1 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 %17 %19 = add nsw i32 %16, 2 %20 = icmp slt i32 %19, %2 br i1 %20, label %21, label %26 21: ; preds = %15 %22 = getelementptr inbounds %"class.std::__2::basic_string", ptr %18, i32 1 %23 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22) #22 %24 = select i1 %23, ptr %22, ptr %18 %25 = select i1 %23, i32 %19, i32 %17 br label %26 26: ; preds = %21, %15 %27 = phi ptr [ %18, %15 ], [ %24, %21 ] %28 = phi i32 [ %17, %15 ], [ %25, %21 ] %29 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %3) #22 br i1 %29, label %53, label %30 30: ; preds = %26 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #20 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, i8 0, i32 12, i1 false) br label %31 31: ; preds = %47, %30 %32 = phi ptr [ %3, %30 ], [ %33, %47 ] %33 = phi ptr [ %27, %30 ], [ %48, %47 ] %34 = phi i32 [ %28, %30 ], [ %49, %47 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %33) #22 %35 = icmp slt i32 %13, %34 br i1 %35, label %51, label %36 36: ; preds = %31 %37 = shl nsw i32 %34, 1 %38 = or i32 %37, 1 %39 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 %38 %40 = add i32 %37, 2 %41 = icmp slt i32 %40, %2 br i1 %41, label %42, label %47 42: ; preds = %36 %43 = getelementptr inbounds %"class.std::__2::basic_string", ptr %39, i32 1 %44 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %43) #22 %45 = select i1 %44, ptr %43, ptr %39 %46 = select i1 %44, i32 %40, i32 %38 br label %47 47: ; preds = %42, %36 %48 = phi ptr [ %39, %36 ], [ %45, %42 ] %49 = phi i32 [ %38, %36 ], [ %46, %42 ] %50 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 br i1 %50, label %51, label %31, !llvm.loop !69 51: ; preds = %31, %47 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 %52 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #20 br label %53 53: ; preds = %51, %26, %4, %11 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__211__sort_heapB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %0 to i32 %6 = sub i32 %4, %5 %7 = sdiv exact i32 %6, 12 br label %8 8: ; preds = %13, %3 %9 = phi ptr [ %1, %3 ], [ %14, %13 ] %10 = phi i32 [ %7, %3 ], [ %15, %13 ] %11 = icmp sgt i32 %10, 1 br i1 %11, label %13, label %12 12: ; preds = %8 ret void 13: ; preds = %8 tail call void @_ZNSt3__210__pop_heapB7v160006INS_17_ClassicAlgPolicyENS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SB_RT0_NS_15iterator_traitsISB_E15difference_typeE(ptr noundef %0, ptr noundef %9, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %10) #21 %14 = getelementptr inbounds %"class.std::__2::basic_string", ptr %9, i32 -1 %15 = add nsw i32 %10, -1 br label %8, !llvm.loop !70 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__210__pop_heapB7v160006INS_17_ClassicAlgPolicyENS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SB_RT0_NS_15iterator_traitsISB_E15difference_typeE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %3) local_unnamed_addr #17 comdat { %5 = alloca %"class.std::__2::basic_string", align 4 %6 = icmp sgt i32 %3, 0 tail call void @llvm.assume(i1 %6) %7 = icmp ugt i32 %3, 1 br i1 %7, label %8, label %21 8: ; preds = %4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #20 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = tail call noundef ptr @_ZNSt3__217__floyd_sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EET1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %3) #21 %10 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %11 = icmp eq ptr %9, %10 br i1 %11, label %12, label %13 12: ; preds = %8 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 br label %19 13: ; preds = %8 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10) #22 %14 = getelementptr inbounds %"class.std::__2::basic_string", ptr %9, i32 1 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 %15 = ptrtoint ptr %14 to i32 %16 = ptrtoint ptr %0 to i32 %17 = sub i32 %15, %16 %18 = sdiv exact i32 %17, 12 call void @_ZNSt3__29__sift_upB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef nonnull %0, ptr noundef nonnull %14, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %18) #21 br label %19 19: ; preds = %13, %12 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #20 br label %21 21: ; preds = %19, %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__217__floyd_sift_downB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EET1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(1) %1, i32 noundef %2) local_unnamed_addr #3 comdat { %4 = icmp sgt i32 %2, 1 tail call void @llvm.assume(i1 %4) %5 = add nsw i32 %2, -2 %6 = lshr i32 %5, 1 br label %7 7: ; preds = %21, %3 %8 = phi ptr [ %0, %3 ], [ %22, %21 ] %9 = phi i32 [ 0, %3 ], [ %23, %21 ] %10 = add nsw i32 %9, 1 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %8, i32 %10 %12 = shl nsw i32 %9, 1 %13 = or i32 %12, 1 %14 = add i32 %12, 2 %15 = icmp slt i32 %14, %2 br i1 %15, label %16, label %21 16: ; preds = %7 %17 = getelementptr inbounds %"class.std::__2::basic_string", ptr %11, i32 1 %18 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %17) #22 %19 = select i1 %18, ptr %17, ptr %11 %20 = select i1 %18, i32 %14, i32 %13 br label %21 21: ; preds = %16, %7 %22 = phi ptr [ %11, %7 ], [ %19, %16 ] %23 = phi i32 [ %13, %7 ], [ %20, %16 ] tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %22) #22 %24 = icmp sgt i32 %23, %6 br i1 %24, label %25, label %7, !llvm.loop !71 25: ; preds = %21 ret ptr %22 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__29__sift_upB7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_OT0_NS_15iterator_traitsISC_E15difference_typeE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2, i32 noundef %3) local_unnamed_addr #0 comdat { %5 = alloca %"class.std::__2::basic_string", align 4 %6 = icmp sgt i32 %3, 1 br i1 %6, label %7, label %26 7: ; preds = %4 %8 = add nsw i32 %3, -2 %9 = lshr i32 %8, 1 %10 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 %9 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %1, i32 -1 %12 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11) #22 br i1 %12, label %13, label %26 13: ; preds = %7 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #20 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %11, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %11, i8 0, i32 12, i1 false) br label %14 14: ; preds = %19, %13 %15 = phi ptr [ %11, %13 ], [ %16, %19 ] %16 = phi ptr [ %10, %13 ], [ %22, %19 ] %17 = phi i32 [ %9, %13 ], [ %21, %19 ] call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16) #22 %18 = icmp eq i32 %17, 0 br i1 %18, label %24, label %19 19: ; preds = %14 %20 = add nsw i32 %17, -1 %21 = lshr i32 %20, 1 %22 = getelementptr inbounds %"class.std::__2::basic_string", ptr %0, i32 %21 %23 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 br i1 %23, label %14, label %24, !llvm.loop !72 24: ; preds = %14, %19 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %5) #22 %25 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #22 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #20 br label %26 26: ; preds = %7, %24, %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNSt3__27__sort5IRNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_EEPS7_EEjT0_SB_SB_SB_SB_T_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 1 dereferenceable(1) %5) local_unnamed_addr #3 comdat { %7 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %8 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %9 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %10 = alloca %"struct.std::__2::basic_string<char>::__long", align 8 %11 = tail call noundef i32 @_ZNSt3__27__sort4B7v160006INS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEjT1_SC_SC_SC_T0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5) #21 %12 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3) #22 br i1 %12, label %13, label %24 13: ; preds = %6 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %10, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) %14 = add i32 %11, 1 %15 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2) #22 br i1 %15, label %16, label %24 16: ; preds = %13 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %9, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) %17 = add i32 %11, 2 %18 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1) #22 br i1 %18, label %19, label %24 19: ; preds = %16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %8, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) %20 = add i32 %11, 3 %21 = tail call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %0) #22 br i1 %21, label %22, label %24 22: ; preds = %19 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %0, i32 12, i1 false), !tbaa.struct !17 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %7, i32 12, i1 false), !tbaa.struct !17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) %23 = add i32 %11, 4 br label %24 24: ; preds = %13, %19, %22, %16, %6 %25 = phi i32 [ %23, %22 ], [ %20, %19 ], [ %17, %16 ], [ %14, %13 ], [ %11, %6 ] ret i32 %25 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umin.i32(i32, i32) #18 ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) declare void @llvm.experimental.noalias.scope.decl(metadata) #19 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #18 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #7 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #13 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #16 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #17 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #18 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #19 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) } attributes #20 = { nounwind } attributes #21 = { minsize optsize } attributes #22 = { minsize nounwind optsize } attributes #23 = { minsize noreturn optsize } attributes #24 = { builtin minsize nounwind optsize } attributes #25 = { noreturn } attributes #26 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"} !14 = distinct !{!14, !13} !15 = distinct !{!15, !13} !16 = !{!5, !5, i64 0} !17 = !{i64 0, i64 4, !16, i64 4, i64 4, !18, i64 8, i64 4, !18, i64 11, i64 4, !18, i64 0, i64 11, !20, i64 11, i64 0, !20, i64 11, i64 1, !20, i64 11, i64 1, !20, i64 0, i64 12, !20} !18 = !{!19, !19, i64 0} !19 = !{!"long", !6, i64 0} !20 = !{!6, !6, i64 0} !21 = !{!22, !5, i64 8} !22 = !{!"_ZTSNSt3__214__split_bufferINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8, !23, i64 12} !23 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS4_IS6_EEEE", !9, i64 0, !24, i64 4} !24 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEELi1ELb0EEE", !5, i64 0} !25 = !{!26} !26 = distinct !{!26, !27, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !27 = distinct !{!27, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !28 = !{!22, !5, i64 0} !29 = !{!22, !5, i64 4} !30 = !{!31, !31, i64 0} !31 = !{!"vtable pointer", !7, i64 0} !32 = distinct !{!32, !13} !33 = !{!34, !5, i64 0} !34 = !{!"_ZTSNSt3__216reverse_iteratorIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEE", !5, i64 0} !35 = !{!36, !38, i64 12} !36 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEENS_16reverse_iteratorIPS7_EEEEEE", !37, i64 0, !38, i64 12} !37 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EEEE", !5, i64 0, !5, i64 4, !5, i64 8} !38 = !{!"bool", !6, i64 0} !39 = !{i8 0, i8 2} !40 = !{} !41 = !{!37, !5, i64 0} !42 = !{!37, !5, i64 8} !43 = !{i64 0, i64 4, !16} !44 = !{!37, !5, i64 4} !45 = distinct !{!45, !13} !46 = distinct !{!46, !13} !47 = !{i32 0, i32 33} !48 = distinct !{!48, !13} !49 = distinct !{!49, !13} !50 = distinct !{!50, !13} !51 = distinct !{!51, !13} !52 = distinct !{!52, !13} !53 = distinct !{!53, !13} !54 = distinct !{!54, !13} !55 = distinct !{!55, !13} !56 = distinct !{!56, !13} !57 = distinct !{!57, !13} !58 = distinct !{!58, !13} !59 = distinct !{!59, !13} !60 = distinct !{!60, !13} !61 = !{!62} !62 = distinct !{!62, !63, !"_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEcvNS_17basic_string_viewIcS2_EEB7v160006Ev: argument 0"} !63 = distinct !{!63, !"_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEcvNS_17basic_string_viewIcS2_EEB7v160006Ev"} !64 = !{!65, !5, i64 0} !65 = !{!"_ZTSNSt3__217basic_string_viewIcNS_11char_traitsIcEEEE", !5, i64 0, !19, i64 4} !66 = !{!65, !19, i64 4} !67 = distinct !{!67, !13} !68 = distinct !{!68, !13} !69 = distinct !{!69, !13} !70 = distinct !{!70, !13} !71 = distinct !{!71, !13} !72 = distinct !{!72, !13}
(module $code_147.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32) (result i32))) (type (;3;) (func (param i32) (result i32))) (type (;4;) (func (param i32 i32 i32))) (type (;5;) (func (param i32 i32 i32 i32))) (type (;6;) (func (param i32))) (type (;7;) (func)) (type (;8;) (func (param i32 i32 i32 i32) (result i32))) (type (;9;) (func (param i32 i32 i32 i32 i32) (result i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 4))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 6))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 3))) (import "env" "__cxa_throw" (func $__cxa_throw (type 4))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 3))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 3))) (import "env" "_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE" (func $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_ (type 5))) (import "env" "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_" (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const (type 0))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 2))) (import "env" "memcmp" (func $memcmp (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $sorted_list_sum_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_ (type 1) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 2 i32.sub i32.const 12 i32.div_s local.get 3 i32.le_u if ;; label = @2 local.get 4 i32.const 0 i32.store offset=8 local.get 4 i64.const 0 i64.store local.get 0 i32.load local.set 1 local.get 0 i32.load offset=4 local.set 3 global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 1 local.get 3 local.get 2 i32.const 15 i32.add i32.const 62 local.get 3 local.get 1 i32.sub i32.const 12 i32.div_s i32.clz i32.const 1 i32.shl i32.sub i32.const 0 local.get 1 local.get 3 i32.ne select call $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_ local.get 2 i32.const 16 i32.add global.set $__stack_pointer local.get 0 i32.load local.set 1 local.get 0 i32.load offset=4 local.set 2 i32.const 0 local.set 5 loop ;; label = @3 i32.const 1 local.set 3 local.get 2 local.get 1 i32.sub i32.const 12 i32.div_s local.get 5 i32.le_u if ;; label = @4 local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 4 i32.const 16 i32.add global.set $__stack_pointer return end loop ;; label = @4 local.get 2 local.get 1 i32.sub i32.const 12 i32.div_s local.get 3 i32.le_u if ;; label = @5 local.get 5 i32.const 1 i32.add local.set 5 br 2 (;@3;) else local.get 1 local.get 3 i32.const 12 i32.mul local.tee 8 i32.add local.tee 7 i32.load offset=4 local.get 7 i32.load8_u offset=11 local.tee 6 local.get 6 i32.extend8_s i32.const 0 i32.lt_s select local.get 7 i32.const 12 i32.sub local.tee 6 i32.load offset=4 local.get 6 i32.load8_u offset=11 local.tee 6 local.get 6 i32.extend8_s i32.const 0 i32.lt_s select i32.lt_u if ;; label = @6 local.get 4 local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 0 i32.load local.tee 1 local.get 8 i32.add local.get 1 local.get 3 i32.const 1 i32.sub i32.const 12 i32.mul local.tee 2 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 0 i32.load local.get 2 i32.add local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 0 i32.load offset=4 local.set 2 local.get 0 i32.load local.set 1 end local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@4;) end unreachable end unreachable end unreachable end local.get 2 local.get 3 i32.const 12 i32.mul i32.add local.tee 2 i32.load offset=4 local.get 2 i32.load8_s offset=11 local.tee 5 local.get 5 i32.const 0 i32.lt_s select i32.const 1 i32.and i32.eqz if ;; label = @2 block ;; label = @3 local.get 0 i32.load offset=4 local.get 0 i32.load offset=8 i32.ne if ;; label = @4 local.get 0 local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br 1 (;@3;) end local.get 0 local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ end end local.get 3 i32.const 1 i32.add local.set 3 br 0 (;@1;) end unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 0 local.get 1 i32.ne if (result i32) ;; label = @1 local.get 1 i32.load8_u offset=11 local.tee 3 i32.extend8_s local.set 2 local.get 0 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @2 local.get 2 i32.const 0 i32.ge_s if ;; label = @3 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ return end local.get 0 local.get 1 i32.load local.get 1 local.get 2 i32.const 0 i32.lt_s local.tee 0 select local.get 1 i32.load offset=4 local.get 3 local.get 0 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ else local.get 0 end) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) local.get 0 local.get 0 i32.load offset=4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.const 12 i32.add i32.store offset=4) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 1) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s i32.const 1 i32.add local.tee 3 i32.const 357913942 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 357913941 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.tee 4 i32.const 1 i32.shl local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 178956970 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 12 i32.div_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 357913942 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 12 i32.mul call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 12 i32.mul i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 12 i32.mul i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 2 local.get 2 i32.load offset=20 i32.const 12 i32.add i32.store offset=20 local.get 0 i32.load offset=4 local.set 3 local.get 0 i32.load local.set 1 local.get 2 i32.load offset=16 local.set 5 global.get $__stack_pointer i32.const 32 i32.sub local.tee 4 global.set $__stack_pointer local.get 4 local.get 5 i32.store offset=24 local.get 4 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 4 local.get 4 i32.const 28 i32.add i32.store offset=16 local.get 4 local.get 4 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 3 i32.ne if ;; label = @2 local.get 5 i32.const 12 i32.sub local.tee 5 local.get 3 i32.const 12 i32.sub local.tee 3 i64.load align=4 i64.store align=4 local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 br 1 (;@1;) end end local.get 4 i32.const 1 i32.store8 offset=20 local.get 4 local.get 5 i32.store offset=28 local.get 4 i32.const 8 i32.add local.tee 1 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 1 i32.load drop local.get 1 i32.load offset=8 i32.load local.set 3 local.get 1 i32.load offset=4 i32.load local.set 1 loop ;; label = @2 local.get 1 local.get 3 i32.ne if ;; label = @3 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ i32.const 12 i32.add local.set 3 br 1 (;@2;) end end end local.get 4 i32.const 32 i32.add global.set $__stack_pointer local.get 2 local.get 5 i32.store offset=16 local.get 0 i32.load local.set 1 local.get 0 local.get 5 i32.store local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 0 loop ;; label = @1 local.get 0 local.get 2 i32.load offset=20 local.tee 1 i32.ne if ;; label = @2 local.get 2 local.get 1 i32.const 12 i32.sub local.tee 1 i32.store offset=20 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (func $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_.1 (type 5) (param i32 i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 7 global.set $__stack_pointer loop ;; label = @1 local.get 1 i32.const 12 i32.sub local.set 9 loop ;; label = @2 block ;; label = @3 block ;; label = @4 block ;; label = @5 block ;; label = @6 block ;; label = @7 block ;; label = @8 block ;; label = @9 block ;; label = @10 local.get 1 local.get 0 local.tee 4 i32.sub local.tee 5 i32.const 12 i32.div_s local.tee 0 br_table 7 (;@3;) 7 (;@3;) 0 (;@10;) 4 (;@6;) 1 (;@9;) 2 (;@8;) 3 (;@7;) end local.get 9 local.get 4 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 6 (;@3;) local.get 7 local.get 4 i32.load offset=8 i32.store offset=8 local.get 7 local.get 4 i64.load align=4 i64.store local.get 4 local.get 9 i32.load offset=8 i32.store offset=8 local.get 4 local.get 9 i64.load align=4 i64.store align=4 local.get 9 local.get 7 i32.load offset=8 i32.store offset=8 local.get 9 local.get 7 i64.load i64.store align=4 br 6 (;@3;) end local.get 4 local.get 4 i32.const 12 i32.add local.get 4 i32.const 24 i32.add local.get 9 call $unsigned_int_std::__2::__sort4_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 5 (;@3;) end local.get 4 local.get 4 i32.const 12 i32.add local.get 4 i32.const 24 i32.add local.get 4 i32.const 36 i32.add local.get 9 call $unsigned_int_std::__2::__sort5<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 4 (;@3;) end local.get 5 i32.const 83 i32.le_s if ;; label = @7 local.get 1 local.set 3 global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer local.get 4 local.get 4 i32.const 12 i32.add local.get 4 i32.const 24 i32.add local.tee 1 call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop local.get 4 i32.const 36 i32.add local.set 0 loop ;; label = @8 local.get 3 local.get 0 local.tee 2 i32.ne if ;; label = @9 local.get 0 local.get 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ if ;; label = @10 local.get 5 local.get 0 i32.load offset=8 i32.store offset=8 local.get 5 local.get 0 i64.load align=4 i64.store local.get 0 i64.const 0 i64.store align=4 local.get 0 i32.const 0 i32.store offset=8 loop ;; label = @11 block ;; label = @12 local.get 0 local.get 1 local.tee 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 local.get 4 i32.eq if ;; label = @13 local.get 4 local.set 0 br 1 (;@12;) end local.get 5 local.get 0 i32.const 12 i32.sub local.tee 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 1 (;@11;) end end local.get 0 local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 2 i32.const 12 i32.add local.set 0 local.get 2 local.set 1 br 1 (;@8;) end end local.get 5 i32.const 16 i32.add global.set $__stack_pointer br 4 (;@3;) end local.get 3 i32.eqz if ;; label = @7 local.get 1 local.get 4 i32.ne local.tee 0 if (result i32) ;; label = @8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 10 global.set $__stack_pointer local.get 0 if ;; label = @9 local.get 1 local.get 4 i32.sub local.tee 0 i32.const 12 i32.div_s local.set 2 block ;; label = @10 local.get 0 i32.const 13 i32.lt_s br_if 0 (;@10;) local.get 2 i32.const 2 i32.sub i32.const 1 i32.shr_u local.set 0 loop ;; label = @11 local.get 0 i32.const 0 i32.lt_s br_if 1 (;@10;) local.get 4 local.get 2 local.get 4 local.get 0 i32.const 12 i32.mul i32.add call $void_std::__2::__sift_down_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*_ local.get 0 i32.const 1 i32.sub local.set 0 br 0 (;@11;) end unreachable end local.get 1 local.get 4 i32.sub i32.const 12 i32.div_s local.set 2 local.get 1 local.set 0 loop ;; label = @10 local.get 0 local.get 1 i32.ne if ;; label = @11 local.get 0 local.get 4 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ if ;; label = @12 local.get 10 local.get 0 i32.load offset=8 i32.store offset=8 local.get 10 local.get 0 i64.load align=4 i64.store local.get 0 local.get 4 i32.load offset=8 i32.store offset=8 local.get 0 local.get 4 i64.load align=4 i64.store align=4 local.get 4 local.get 10 i32.load offset=8 i32.store offset=8 local.get 4 local.get 10 i64.load i64.store align=4 local.get 4 local.get 2 local.get 4 call $void_std::__2::__sift_down_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*_ end local.get 0 i32.const 12 i32.add local.set 0 br 1 (;@10;) end end local.get 1 local.get 4 i32.sub i32.const 12 i32.div_s local.set 0 loop ;; label = @10 local.get 0 i32.const 1 i32.gt_s if ;; label = @11 local.get 1 local.set 2 i32.const 0 local.set 5 global.get $__stack_pointer i32.const 16 i32.sub local.tee 11 global.set $__stack_pointer local.get 0 local.tee 1 i32.const 2 i32.ge_u if ;; label = @12 local.get 11 local.get 4 i32.load offset=8 i32.store offset=8 local.get 11 local.get 4 i64.load align=4 i64.store local.get 4 i64.const 0 i64.store align=4 local.get 4 i32.const 0 i32.store offset=8 local.get 4 local.set 0 local.get 1 i32.const 2 i32.sub i32.const 1 i32.shr_u local.set 6 loop ;; label = @13 local.get 5 i32.const 1 i32.shl local.tee 9 i32.const 1 i32.or local.set 3 local.get 5 i32.const 12 i32.mul local.get 0 i32.add i32.const 12 i32.add local.set 8 local.get 1 local.get 9 i32.const 2 i32.add local.tee 9 i32.le_s if (result i32) ;; label = @14 local.get 3 else local.get 8 i32.const 12 i32.add local.tee 5 local.get 8 local.get 8 local.get 5 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 5 select local.set 8 local.get 9 local.get 3 local.get 5 select end local.set 5 local.get 0 local.get 8 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 8 local.set 0 local.get 5 local.get 6 i32.le_s br_if 0 (;@13;) end block ;; label = @13 local.get 2 i32.const 12 i32.sub local.tee 3 local.get 0 i32.eq if ;; label = @14 local.get 0 local.get 11 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ br 1 (;@13;) end local.get 0 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 local.get 11 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 i32.const 12 i32.add local.tee 0 local.set 5 global.get $__stack_pointer i32.const 16 i32.sub local.tee 8 global.set $__stack_pointer block ;; label = @14 local.get 0 local.get 4 i32.sub i32.const 12 i32.div_s local.tee 0 i32.const 2 i32.lt_s br_if 0 (;@14;) local.get 4 local.get 0 i32.const 2 i32.sub i32.const 1 i32.shr_u local.tee 0 i32.const 12 i32.mul i32.add local.tee 3 local.get 5 i32.const 12 i32.sub local.tee 5 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@14;) local.get 8 local.get 5 i32.load offset=8 i32.store offset=8 local.get 8 local.get 5 i64.load align=4 i64.store local.get 5 i64.const 0 i64.store align=4 local.get 5 i32.const 0 i32.store offset=8 loop ;; label = @15 block ;; label = @16 local.get 5 local.get 3 local.tee 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 i32.eqz br_if 0 (;@16;) local.get 4 local.get 0 i32.const 1 i32.sub i32.const 1 i32.shr_u local.tee 0 i32.const 12 i32.mul i32.add local.tee 3 local.get 8 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 1 (;@15;) end end local.get 5 local.get 8 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 8 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 8 i32.const 16 i32.add global.set $__stack_pointer end local.get 11 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 11 i32.const 16 i32.add global.set $__stack_pointer local.get 1 i32.const 1 i32.sub local.set 0 local.get 2 i32.const 12 i32.sub local.set 1 br 1 (;@10;) end end end local.get 10 i32.const 16 i32.add global.set $__stack_pointer i32.const 0 else local.get 1 end drop br 4 (;@3;) end local.get 4 local.get 0 i32.const 1 i32.shr_u i32.const 12 i32.mul i32.add local.set 6 block (result i32) ;; label = @7 local.get 5 i32.const 11989 i32.ge_u if ;; label = @8 local.get 4 local.get 4 local.get 0 i32.const 2 i32.shr_u i32.const 12 i32.mul local.tee 0 i32.add local.get 6 local.get 0 local.get 6 i32.add local.get 9 call $unsigned_int_std::__2::__sort5<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ br 1 (;@7;) end local.get 4 local.get 6 local.get 9 call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ end local.set 10 local.get 3 i32.const 1 i32.sub local.set 3 local.get 9 local.set 0 local.get 4 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @7 loop ;; label = @8 local.get 0 i32.const 12 i32.sub local.tee 0 local.get 4 i32.eq if ;; label = @9 local.get 4 i32.const 12 i32.add local.set 6 local.get 4 local.get 9 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 5 (;@4;) loop ;; label = @10 local.get 6 local.get 9 i32.eq br_if 7 (;@3;) local.get 4 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ if ;; label = @11 local.get 7 local.get 6 i32.load offset=8 i32.store offset=8 local.get 7 local.get 6 i64.load align=4 i64.store local.get 6 local.get 9 i32.load offset=8 i32.store offset=8 local.get 6 local.get 9 i64.load align=4 i64.store align=4 local.get 9 local.get 7 i32.load offset=8 i32.store offset=8 local.get 9 local.get 7 i64.load i64.store align=4 local.get 6 i32.const 12 i32.add local.set 6 br 7 (;@4;) else local.get 6 i32.const 12 i32.add local.set 6 br 1 (;@10;) end unreachable end unreachable end local.get 0 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@8;) end local.get 7 local.get 4 i32.load offset=8 i32.store offset=8 local.get 7 local.get 4 i64.load align=4 i64.store local.get 4 local.get 0 i32.load offset=8 i32.store offset=8 local.get 4 local.get 0 i64.load align=4 i64.store align=4 local.get 0 local.get 7 i32.load offset=8 i32.store offset=8 local.get 0 local.get 7 i64.load i64.store align=4 local.get 10 i32.const 1 i32.add local.set 10 end local.get 4 i32.const 12 i32.add local.tee 5 local.get 0 i32.ge_u br_if 1 (;@5;) loop ;; label = @7 local.get 5 local.tee 8 i32.const 12 i32.add local.set 5 local.get 8 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 0 (;@7;) loop ;; label = @8 local.get 0 i32.const 12 i32.sub local.tee 0 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@8;) end local.get 0 local.get 8 i32.lt_u if ;; label = @8 local.get 8 local.set 5 br 3 (;@5;) else local.get 7 local.get 8 i32.load offset=8 i32.store offset=8 local.get 7 local.get 8 i64.load align=4 i64.store local.get 8 local.get 0 i32.load offset=8 i32.store offset=8 local.get 8 local.get 0 i64.load align=4 i64.store align=4 local.get 0 local.get 7 i32.load offset=8 i32.store offset=8 local.get 0 local.get 7 i64.load i64.store align=4 local.get 0 local.get 6 local.get 6 local.get 8 i32.eq select local.set 6 local.get 10 i32.const 1 i32.add local.set 10 br 1 (;@7;) end unreachable end unreachable end local.get 4 local.get 4 i32.const 12 i32.add local.get 9 call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 2 (;@3;) end block ;; label = @5 local.get 5 local.get 6 i32.eq br_if 0 (;@5;) local.get 6 local.get 5 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@5;) local.get 7 local.get 5 i32.load offset=8 i32.store offset=8 local.get 7 local.get 5 i64.load align=4 i64.store local.get 5 local.get 6 i32.load offset=8 i32.store offset=8 local.get 5 local.get 6 i64.load align=4 i64.store align=4 local.get 6 local.get 7 i32.load offset=8 i32.store offset=8 local.get 6 local.get 7 i64.load i64.store align=4 local.get 10 i32.const 1 i32.add local.set 10 end local.get 10 i32.eqz if ;; label = @5 local.get 4 local.get 5 call $bool_std::__2::__insertion_sort_incomplete<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ local.set 8 local.get 5 i32.const 12 i32.add local.tee 0 local.get 1 call $bool_std::__2::__insertion_sort_incomplete<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ if ;; label = @6 local.get 4 local.set 0 local.get 5 local.set 1 local.get 8 i32.eqz br_if 5 (;@1;) br 3 (;@3;) end local.get 8 br_if 3 (;@2;) end local.get 5 local.get 4 i32.sub i32.const 12 i32.div_s local.get 1 local.get 5 i32.sub i32.const 12 i32.div_s i32.lt_s if ;; label = @5 local.get 4 local.get 5 local.get 2 local.get 3 call $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_ local.get 5 i32.const 12 i32.add local.set 0 br 3 (;@2;) end local.get 5 i32.const 12 i32.add local.get 1 local.get 2 local.get 3 call $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_ local.get 4 local.set 0 local.get 5 local.set 1 br 3 (;@1;) end local.get 6 local.get 9 local.tee 5 i32.eq br_if 0 (;@3;) loop ;; label = @4 local.get 6 local.tee 0 i32.const 12 i32.add local.set 6 local.get 4 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@4;) loop ;; label = @5 local.get 4 local.get 5 i32.const 12 i32.sub local.tee 5 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 0 (;@5;) end local.get 0 local.get 5 i32.ge_u br_if 2 (;@2;) local.get 7 local.get 0 i32.load offset=8 i32.store offset=8 local.get 7 local.get 0 i64.load align=4 i64.store local.get 0 local.get 5 i32.load offset=8 i32.store offset=8 local.get 0 local.get 5 i64.load align=4 i64.store align=4 local.get 5 local.get 7 i32.load offset=8 i32.store offset=8 local.get 5 local.get 7 i64.load i64.store align=4 br 0 (;@4;) end unreachable end end end local.get 7 i32.const 16 i32.add global.set $__stack_pointer) (func $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0) (param i32 i32) (result i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 1 i32.load local.set 4 local.get 2 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select i32.store offset=12 local.get 2 local.get 4 local.get 1 local.get 3 select i32.store offset=8 local.get 0 local.get 2 i32.const 8 i32.add call $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const local.get 2 i32.const 16 i32.add global.set $__stack_pointer i32.const 31 i32.shr_u) (func $unsigned_int_std::__2::__sort4_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ (type 8) (param i32 i32 i32 i32) (result i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ local.set 5 block ;; label = @1 local.get 3 local.get 2 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@1;) local.get 4 local.get 2 i32.load offset=8 i32.store offset=8 local.get 4 local.get 2 i64.load align=4 i64.store local.get 2 local.get 3 i32.load offset=8 i32.store offset=8 local.get 2 local.get 3 i64.load align=4 i64.store align=4 local.get 3 local.get 4 i32.load offset=8 i32.store offset=8 local.get 3 local.get 4 i64.load i64.store align=4 local.get 2 local.get 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @2 local.get 5 i32.const 1 i32.add local.set 5 br 1 (;@1;) end local.get 4 local.get 1 i32.load offset=8 i32.store offset=8 local.get 4 local.get 1 i64.load align=4 i64.store local.get 1 local.get 2 i32.load offset=8 i32.store offset=8 local.get 1 local.get 2 i64.load align=4 i64.store align=4 local.get 2 local.get 4 i32.load offset=8 i32.store offset=8 local.get 2 local.get 4 i64.load i64.store align=4 local.get 1 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @2 local.get 5 i32.const 2 i32.add local.set 5 br 1 (;@1;) end local.get 4 local.get 0 i32.load offset=8 i32.store offset=8 local.get 4 local.get 0 i64.load align=4 i64.store local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 1 local.get 4 i32.load offset=8 i32.store offset=8 local.get 1 local.get 4 i64.load i64.store align=4 local.get 5 i32.const 3 i32.add local.set 5 end local.get 4 i32.const 16 i32.add global.set $__stack_pointer local.get 5) (func $unsigned_int_std::__2::__sort5<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ (type 9) (param i32 i32 i32 i32 i32) (result i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 local.get 3 call $unsigned_int_std::__2::__sort4_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ local.set 6 block ;; label = @1 local.get 4 local.get 3 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 0 (;@1;) local.get 5 local.get 3 i32.load offset=8 i32.store offset=8 local.get 5 local.get 3 i64.load align=4 i64.store local.get 3 local.get 4 i32.load offset=8 i32.store offset=8 local.get 3 local.get 4 i64.load align=4 i64.store align=4 local.get 4 local.get 5 i32.load offset=8 i32.store offset=8 local.get 4 local.get 5 i64.load i64.store align=4 local.get 3 local.get 2 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @2 local.get 6 i32.const 1 i32.add local.set 6 br 1 (;@1;) end local.get 5 local.get 2 i32.load offset=8 i32.store offset=8 local.get 5 local.get 2 i64.load align=4 i64.store local.get 2 local.get 3 i32.load offset=8 i32.store offset=8 local.get 2 local.get 3 i64.load align=4 i64.store align=4 local.get 3 local.get 5 i32.load offset=8 i32.store offset=8 local.get 3 local.get 5 i64.load i64.store align=4 local.get 2 local.get 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @2 local.get 6 i32.const 2 i32.add local.set 6 br 1 (;@1;) end local.get 5 local.get 1 i32.load offset=8 i32.store offset=8 local.get 5 local.get 1 i64.load align=4 i64.store local.get 1 local.get 2 i32.load offset=8 i32.store offset=8 local.get 1 local.get 2 i64.load align=4 i64.store align=4 local.get 2 local.get 5 i32.load offset=8 i32.store offset=8 local.get 2 local.get 5 i64.load i64.store align=4 local.get 1 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz if ;; label = @2 local.get 6 i32.const 3 i32.add local.set 6 br 1 (;@1;) end local.get 5 local.get 0 i32.load offset=8 i32.store offset=8 local.get 5 local.get 0 i64.load align=4 i64.store local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 1 local.get 5 i32.load offset=8 i32.store offset=8 local.get 1 local.get 5 i64.load i64.store align=4 local.get 6 i32.const 4 i32.add local.set 6 end local.get 5 i32.const 16 i32.add global.set $__stack_pointer local.get 6) (func $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ (type 2) (param i32 i32 i32) (result i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer local.get 1 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.set 5 local.get 2 local.get 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.set 4 block (result i32) ;; label = @1 block ;; label = @2 local.get 5 i32.eqz if ;; label = @3 i32.const 0 local.get 4 i32.eqz br_if 2 (;@1;) drop local.get 3 local.get 1 i32.load offset=8 i32.store offset=8 local.get 3 local.get 1 i64.load align=4 i64.store local.get 1 local.get 2 i32.load offset=8 i32.store offset=8 local.get 1 local.get 2 i64.load align=4 i64.store align=4 local.get 2 local.get 3 i32.load offset=8 i32.store offset=8 local.get 2 local.get 3 i64.load i64.store align=4 i32.const 1 local.get 1 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 2 (;@1;) drop local.get 3 local.get 0 i32.load offset=8 i32.store offset=8 local.get 3 local.get 0 i64.load align=4 i64.store local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 1 local.get 3 i32.load offset=8 i32.store offset=8 local.get 1 local.get 3 i64.load i64.store align=4 br 1 (;@2;) end local.get 4 if ;; label = @3 local.get 3 local.get 0 i32.load offset=8 i32.store offset=8 local.get 3 local.get 0 i64.load align=4 i64.store local.get 0 local.get 2 i32.load offset=8 i32.store offset=8 local.get 0 local.get 2 i64.load align=4 i64.store align=4 local.get 2 local.get 3 i32.load offset=8 i32.store offset=8 local.get 2 local.get 3 i64.load i64.store align=4 i32.const 1 br 2 (;@1;) end local.get 3 local.get 0 i32.load offset=8 i32.store offset=8 local.get 3 local.get 0 i64.load align=4 i64.store local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 1 local.get 3 i32.load offset=8 i32.store offset=8 local.get 1 local.get 3 i64.load i64.store align=4 i32.const 1 local.get 2 local.get 1 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 1 (;@1;) drop local.get 3 local.get 1 i32.load offset=8 i32.store offset=8 local.get 3 local.get 1 i64.load align=4 i64.store local.get 1 local.get 2 i32.load offset=8 i32.store offset=8 local.get 1 local.get 2 i64.load align=4 i64.store align=4 local.get 2 local.get 3 i32.load offset=8 i32.store offset=8 local.get 2 local.get 3 i64.load i64.store align=4 end i32.const 2 end local.get 3 i32.const 16 i32.add global.set $__stack_pointer) (func $bool_std::__2::__insertion_sort_incomplete<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ (type 0) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 3 global.set $__stack_pointer i32.const 1 local.set 6 block ;; label = @1 block ;; label = @2 block ;; label = @3 block ;; label = @4 block ;; label = @5 block ;; label = @6 local.get 1 local.get 0 i32.sub i32.const 12 i32.div_s br_table 5 (;@1;) 5 (;@1;) 0 (;@6;) 1 (;@5;) 2 (;@4;) 3 (;@3;) 4 (;@2;) end local.get 1 i32.const 12 i32.sub local.tee 1 local.get 0 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 4 (;@1;) local.get 3 local.get 0 i32.load offset=8 i32.store offset=8 local.get 3 local.get 0 i64.load align=4 i64.store local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 1 local.get 3 i32.load offset=8 i32.store offset=8 local.get 1 local.get 3 i64.load i64.store align=4 br 4 (;@1;) end local.get 0 local.get 0 i32.const 12 i32.add local.get 1 i32.const 12 i32.sub call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 3 (;@1;) end local.get 0 local.get 0 i32.const 12 i32.add local.get 0 i32.const 24 i32.add local.get 1 i32.const 12 i32.sub call $unsigned_int_std::__2::__sort4_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 2 (;@1;) end local.get 0 local.get 0 i32.const 12 i32.add local.get 0 i32.const 24 i32.add local.get 0 i32.const 36 i32.add local.get 1 i32.const 12 i32.sub call $unsigned_int_std::__2::__sort5<std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop br 1 (;@1;) end local.get 0 local.get 0 i32.const 12 i32.add local.get 0 i32.const 24 i32.add local.tee 4 call $unsigned_int_std::__2::__sort3_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&_ drop local.get 0 i32.const 36 i32.add local.set 2 loop ;; label = @2 local.get 2 local.tee 5 local.get 1 i32.eq br_if 1 (;@1;) block ;; label = @3 local.get 2 local.get 4 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ if ;; label = @4 local.get 3 local.get 2 i32.load offset=8 i32.store offset=8 local.get 3 local.get 2 i64.load align=4 i64.store local.get 2 i64.const 0 i64.store align=4 local.get 2 i32.const 0 i32.store offset=8 loop ;; label = @5 block ;; label = @6 local.get 2 local.get 4 local.tee 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 0 local.get 2 i32.eq if ;; label = @7 local.get 0 local.set 2 br 1 (;@6;) end local.get 3 local.get 2 i32.const 12 i32.sub local.tee 4 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 1 (;@5;) end end local.get 2 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 7 i32.const 1 i32.add local.tee 7 i32.const 8 i32.eq br_if 1 (;@3;) end local.get 5 i32.const 12 i32.add local.set 2 local.get 5 local.set 4 br 1 (;@2;) end end local.get 5 i32.const 12 i32.add local.get 1 i32.eq local.set 6 end local.get 3 i32.const 16 i32.add global.set $__stack_pointer local.get 6) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ (type 1) (param i32 i32) local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @1 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i32.const 0 i32.store8 offset=11 local.get 1 i32.const 0 i32.store8) (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const.1 (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 0 i32.load local.get 0 local.get 0 i32.load8_u offset=11 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 1 i32.load local.get 1 i32.load offset=4 local.tee 1 local.get 0 i32.load offset=4 local.get 2 local.get 3 select local.tee 0 local.get 0 local.get 1 i32.gt_u local.tee 2 select call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ local.tee 3 i32.const -1 local.get 2 local.get 0 local.get 1 i32.lt_u select local.get 3 select) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 2) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (func $void_std::__2::__sift_down_abi:v160006_<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*_ (type 4) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 7 global.set $__stack_pointer local.get 2 local.get 0 i32.sub i32.const 12 i32.div_s local.set 3 block ;; label = @1 local.get 1 i32.const 2 i32.lt_s br_if 0 (;@1;) local.get 1 i32.const 2 i32.sub i32.const 1 i32.shr_u local.tee 8 local.get 3 i32.lt_s br_if 0 (;@1;) local.get 0 local.get 3 i32.const 1 i32.shl local.tee 5 i32.const 1 i32.or local.tee 4 i32.const 12 i32.mul i32.add local.set 3 local.get 1 local.get 5 i32.const 2 i32.add local.tee 5 i32.gt_s if ;; label = @2 local.get 3 i32.const 12 i32.add local.tee 6 local.get 3 local.get 3 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 6 select local.set 3 local.get 5 local.get 4 local.get 6 select local.set 4 end local.get 3 local.get 2 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ br_if 0 (;@1;) local.get 7 local.get 2 i32.load offset=8 i32.store offset=8 local.get 7 local.get 2 i64.load align=4 i64.store local.get 2 i64.const 0 i64.store align=4 local.get 2 i32.const 0 i32.store offset=8 loop ;; label = @2 block ;; label = @3 local.get 2 local.get 3 local.tee 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 4 local.get 8 i32.gt_s br_if 0 (;@3;) local.get 0 local.get 4 i32.const 1 i32.shl local.tee 5 i32.const 1 i32.or local.tee 4 i32.const 12 i32.mul i32.add local.set 3 local.get 1 local.get 5 i32.const 2 i32.add local.tee 5 i32.gt_s if ;; label = @4 local.get 3 i32.const 12 i32.add local.tee 6 local.get 3 local.get 3 local.get 6 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ local.tee 6 select local.set 3 local.get 5 local.get 4 local.get 6 select local.set 4 end local.get 3 local.get 7 call $bool_std::__2::operator<_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ i32.eqz br_if 1 (;@2;) end end local.get 2 local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__move_assign_abi:v160006__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&__std::__2::integral_constant<bool__true>_ local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 7 i32.const 16 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z15sorted_list_sumNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE" (func $sorted_list_sum_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__construct_one_at_endB7v160006IJRKS6_EEEvDpOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_one_at_end_abi:v160006_<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIRKS6_EEvOT_" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__push_back_slow_path<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNSt3__211__introsortINS_17_ClassicAlgPolicyERNS_6__lessINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES8_EEPS8_EEvT1_SC_T0_NS_15iterator_traitsISC_E15difference_typeE" (func $void_std::__2::__introsort<std::__2::_ClassicAlgPolicy__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*__std::__2::__less<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>&__std::__2::iterator_traits<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>*>::difference_type_.1)) (export "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_" (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/150
/* A simple program which should return the value of x if n is a prime number and should return the value of y otherwise. Examples: for x_or_y(7, 34, 12) == 34 for x_or_y(15, 8, 5) == 5 */ #include<stdio.h> using namespace std; int x_or_y(int n,int x,int y){
#include<stdio.h> #include<math.h> #include<algorithm> using namespace std; #include<stdlib.h> int x_or_y(int n,int x,int y){
bool isp=true; if (n<2) isp=false; for (int i=2;i*i<=n;i++) if (n%i==0) isp=false; if (isp) return x; return y; }
#undef NDEBUG #include<assert.h> int main(){ assert (x_or_y(7, 34, 12) == 34); assert (x_or_y(15, 8, 5) == 5); assert (x_or_y(3, 33, 5212) == 33); assert (x_or_y(1259, 3, 52) == 3); assert (x_or_y(7919, -1, 12) == -1); assert (x_or_y(3609, 1245, 583) == 583); assert (x_or_y(91, 56, 129) == 129); assert (x_or_y(6, 34, 1234) == 1234); assert (x_or_y(1, 2, 0) == 0); assert (x_or_y(2, 2, 0) == 2); }
#undef NDEBUG #include<assert.h> int main(){ assert (x_or_y(7, 34, 12) == 34); assert (x_or_y(15, 8, 5) == 5); }
; ModuleID = 'c_code/code_148.cpp' source_filename = "c_code/code_148.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) define noundef i32 @_Z6x_or_yiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 { %4 = icmp sgt i32 %0, 1 br label %5 5: ; preds = %12, %3 %6 = phi i1 [ %4, %3 ], [ %15, %12 ] %7 = phi i32 [ 2, %3 ], [ %16, %12 ] %8 = mul nsw i32 %7, %7 %9 = icmp sgt i32 %8, %0 br i1 %9, label %10, label %12 10: ; preds = %5 %11 = select i1 %6, i32 %1, i32 %2 ret i32 %11 12: ; preds = %5 %13 = srem i32 %0, %7 %14 = icmp ne i32 %13, 0 %15 = select i1 %14, i1 %6, i1 false %16 = add nuw nsw i32 %7, 1 br label %5, !llvm.loop !3 } attributes #0 = { minsize mustprogress nofree norecurse nosync nounwind optsize willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = distinct !{!3, !4} !4 = !{!"llvm.loop.mustprogress"}
(module $code_148.wasm (type (;0;) (func)) (type (;1;) (func (param i32 i32 i32) (result i32))) (func $__wasm_call_ctors (type 0)) (func $x_or_y_int__int__int_ (type 1) (param i32 i32 i32) (result i32) (local i32 i32) local.get 0 i32.const 1 i32.gt_s local.set 4 i32.const 2 local.set 3 loop (result i32) ;; label = @1 local.get 0 local.get 3 local.get 3 i32.mul i32.lt_s if (result i32) ;; label = @2 local.get 1 local.get 2 local.get 4 select else local.get 0 local.get 3 i32.rem_s i32.const 0 i32.ne local.get 4 i32.and local.set 4 local.get 3 i32.const 1 i32.add local.set 3 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z6x_or_yiii" (func $x_or_y_int__int__int_)))
CPP/151
/* Given a vector of numbers, return the sum of squares of the numbers in the vector that are odd. Ignore numbers that are negative or not integers. double_the_difference({1, 3, 2, 0}) == 1 + 9 + 0 + 0 = 10 double_the_difference({-1, -2, 0}) == 0 double_the_difference({9, -2}) == 81 double_the_difference({0}) == 0 If the input vector is empty, return 0. */ #include<stdio.h> #include<math.h> #include<vector> using namespace std; long long double_the_difference(vector<float> lst){
#include<stdio.h> #include<math.h> #include<vector> #include<algorithm> using namespace std; #include<stdlib.h> long long double_the_difference(vector<float> lst){
long long sum=0; for (int i=0;i<lst.size();i++) if (lst[i]-round(lst[i])<1e-4) if (lst[i]>0 and (int)(round(lst[i]))%2==1) sum+=(int)(round(lst[i]))*(int)(round(lst[i])); return sum; }
#undef NDEBUG #include<assert.h> int main(){ assert (double_the_difference({}) == 0); assert (double_the_difference({5, 4}) == 25); assert (double_the_difference({0.1, 0.2, 0.3}) == 0 ); assert (double_the_difference({-10, -20, -30}) == 0 ); assert (double_the_difference({-1, -2, 8}) == 0); assert (double_the_difference({0.2, 3, 5}) == 34); long long odd_sum=0; vector<float> lst={}; for (int i=-99;i<100;i+=2) { lst.push_back(i+0.0); if (i>0 and i%2==1) odd_sum+=i*i; } assert (double_the_difference(lst) == odd_sum ); }
#undef NDEBUG #include<assert.h> int main(){ assert (double_the_difference({1, 3, 2, 0}) == 10); assert (double_the_difference({-1, -2, 0}) == 0); assert (double_the_difference({9, -2}) == 81 ); assert (double_the_difference({0}) == 0 ); }
; ModuleID = 'c_code/code_149.cpp' source_filename = "c_code/code_149.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) define noundef i64 @_Z21double_the_differenceNSt3__26vectorIfNS_9allocatorIfEEEE(ptr nocapture noundef readonly %0) local_unnamed_addr #0 { %2 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = load ptr, ptr %0, align 4, !tbaa !10 %5 = ptrtoint ptr %3 to i32 %6 = ptrtoint ptr %4 to i32 %7 = sub i32 %5, %6 %8 = ashr exact i32 %7, 2 br label %9 9: ; preds = %31, %1 %10 = phi i64 [ 0, %1 ], [ %32, %31 ] %11 = phi i32 [ 0, %1 ], [ %33, %31 ] %12 = icmp eq i32 %11, %8 br i1 %12, label %13, label %14 13: ; preds = %9 ret i64 %10 14: ; preds = %9 %15 = getelementptr inbounds float, ptr %4, i32 %11 %16 = load float, ptr %15, align 4, !tbaa !11 %17 = tail call float @llvm.round.f32(float %16) %18 = fsub float %16, %17 %19 = fpext float %18 to double %20 = fcmp olt double %19, 1.000000e-04 %21 = fcmp ogt float %16, 0.000000e+00 %22 = and i1 %21, %20 br i1 %22, label %23, label %31 23: ; preds = %14 %24 = fptosi float %17 to i32 %25 = and i32 %24, -2147483647 %26 = icmp eq i32 %25, 1 br i1 %26, label %27, label %31 27: ; preds = %23 %28 = mul nsw i32 %24, %24 %29 = zext i32 %28 to i64 %30 = add nsw i64 %10, %29 br label %31 31: ; preds = %14, %27, %23 %32 = phi i64 [ %30, %27 ], [ %10, %23 ], [ %10, %14 ] %33 = add nuw i32 %11, 1 br label %9, !llvm.loop !13 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare float @llvm.round.f32(float) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(read, inaccessiblemem: none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorIfNS_9allocatorIfEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPfNS_9allocatorIfEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPfLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!12, !12, i64 0} !12 = !{!"float", !6, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"}
(module $code_149.wasm (type (;0;) (func (param f32) (result f32))) (type (;1;) (func (param i32))) (type (;2;) (func)) (type (;3;) (func (param i32) (result i64))) (type (;4;) (func (param i32) (result i32))) (import "env" "roundf" (func $roundf (type 0))) (import "env" "setTempRet0" (func $setTempRet0 (type 1))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 2)) (func $double_the_difference_std::__2::vector<float__std::__2::allocator<float>>_ (type 3) (param i32) (result i64) (local i64 f32 f32 i32 i32 i32) local.get 0 i32.load offset=4 local.get 0 i32.load local.tee 5 i32.sub i32.const 2 i32.shr_s local.set 6 i32.const 0 local.set 0 loop ;; label = @1 local.get 0 local.get 6 i32.eq i32.eqz if ;; label = @2 local.get 5 local.get 0 i32.const 2 i32.shl i32.add f32.load local.tee 3 call $roundf local.set 2 block ;; label = @3 local.get 3 f32.const 0x0p+0 (;=0;) f32.gt i32.eqz local.get 3 local.get 2 f32.sub f64.promote_f32 f64.const 0x1.a36e2eb1c432dp-14 (;=0.0001;) f64.lt i32.eqz i32.or br_if 0 (;@3;) block (result i32) ;; label = @4 local.get 2 f32.abs f32.const 0x1p+31 (;=2.14748e+09;) f32.lt if ;; label = @5 local.get 2 i32.trunc_f32_s br 1 (;@4;) end i32.const -2147483648 end local.tee 4 i32.const -2147483647 i32.and i32.const 1 i32.ne br_if 0 (;@3;) local.get 1 local.get 4 local.get 4 i32.mul i64.extend_i32_u i64.add local.set 1 end local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@1;) end end local.get 1) (func $legalstub$double_the_difference_std::__2::vector<float__std::__2::allocator<float>>_ (type 4) (param i32) (result i32) (local i64) local.get 0 call $double_the_difference_std::__2::vector<float__std::__2::allocator<float>>_ local.tee 1 i64.const 32 i64.shr_u i32.wrap_i64 call $setTempRet0 local.get 1 i32.wrap_i64) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z21double_the_differenceNSt3__26vectorIfNS_9allocatorIfEEEE" (func $legalstub$double_the_difference_std::__2::vector<float__std::__2::allocator<float>>_)) (export "orig$_Z21double_the_differenceNSt3__26vectorIfNS_9allocatorIfEEEE" (func $double_the_difference_std::__2::vector<float__std::__2::allocator<float>>_)))
CPP/152
/* I think we all remember that feeling when the result of some long-awaited event is finally known. The feelings and thoughts you have at that moment are definitely worth noting down and comparing. Your task is to determine if a person correctly guessed the results of a number of matches. You are given two vectors of scores and guesses of equal length, where each index shows a match. Return a vector of the same length denoting how far off each guess was. If they have guessed correctly, the value is 0, and if not, the value is the absolute difference between the guess and the score. example: compare({1,2,3,4,5,1},{1,2,3,4,2,-2}) -> {0,0,0,0,3,3} compare({0,5,0,0,0,4},{4,1,1,0,0,-2}) -> {4,4,1,0,0,6} */ #include<stdio.h> #include<math.h> #include<vector> using namespace std; vector<int> compare(vector<int> game,vector<int> guess){
#include<stdio.h> #include<math.h> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> vector<int> compare(vector<int> game,vector<int> guess){
vector<int> out; for (int i=0;i<game.size();i++) out.push_back(abs(game[i]-guess[i])); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(compare({1,2,3,4,5,1},{1,2,3,4,2,-2}),{0,0,0,0,3,3})); assert (issame(compare({0,5,0,0,0,4},{4,1,1,0,0,-2}),{4,4,1,0,0,6})); assert (issame(compare({1,2,3,4,5,1},{1,2,3,4,2,-2}),{0,0,0,0,3,3})); assert (issame(compare({0,0,0,0,0,0},{0,0,0,0,0,0}),{0,0,0,0,0,0})); assert (issame(compare({1,2,3},{-1,-2,-3}),{2,4,6})); assert (issame(compare({1,2,3,5},{-1,2,3,4}),{2,0,0,1})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(compare({1,2,3,4,5,1},{1,2,3,4,2,-2}),{0,0,0,0,3,3})); assert (issame(compare({0,5,0,0,0,4},{4,1,1,0,0,-2}),{4,4,1,0,0,6})); }
; ModuleID = 'c_code/code_150.cpp' source_filename = "c_code/code_150.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z7compareNSt3__26vectorIiNS_9allocatorIiEEEES3_(ptr noalias sret(%"class.std::__2::vector") align 4 %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 { %4 = alloca i32, align 4 store ptr null, ptr %0, align 4, !tbaa !3 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %5, align 4, !tbaa !10 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %6, align 4, !tbaa !11 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 br label %8 8: ; preds = %17, %3 %9 = phi i32 [ 0, %3 ], [ %25, %17 ] %10 = load ptr, ptr %7, align 4, !tbaa !10 %11 = load ptr, ptr %1, align 4, !tbaa !3 %12 = ptrtoint ptr %10 to i32 %13 = ptrtoint ptr %11 to i32 %14 = sub i32 %12, %13 %15 = ashr exact i32 %14, 2 %16 = icmp ult i32 %9, %15 br i1 %16, label %17, label %26 17: ; preds = %8 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #13 %18 = getelementptr inbounds i32, ptr %11, i32 %9 %19 = load i32, ptr %18, align 4, !tbaa !12 %20 = load ptr, ptr %2, align 4, !tbaa !3 %21 = getelementptr inbounds i32, ptr %20, i32 %9 %22 = load i32, ptr %21, align 4, !tbaa !12 %23 = sub nsw i32 %19, %22 %24 = call i32 @llvm.abs.i32(i32 %23, i1 true) store i32 %24, ptr %4, align 4, !tbaa !12 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %4) #14 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #13 %25 = add nuw nsw i32 %9, 1 br label %8, !llvm.loop !14 26: ; preds = %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006EOi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !16 %7 = icmp ult ptr %4, %6 br i1 %7, label %8, label %11 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #14 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #13 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #14 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !17 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !17 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #14 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #13 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !16 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #14, !noalias !21 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !24 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !17 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !25 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !16 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !25 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !26 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !26 br label %8, !llvm.loop !31 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !25 %17 = load ptr, ptr %0, align 4, !tbaa !16 store ptr %10, ptr %0, align 4, !tbaa !16 store ptr %17, ptr %6, align 4, !tbaa !16 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !16 %20 = load ptr, ptr %18, align 4, !tbaa !16 store ptr %20, ptr %3, align 4, !tbaa !16 store ptr %19, ptr %18, align 4, !tbaa !16 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !16 %24 = load ptr, ptr %22, align 4, !tbaa !16 store ptr %24, ptr %21, align 4, !tbaa !16 store ptr %23, ptr %22, align 4, !tbaa !16 %25 = load ptr, ptr %6, align 4, !tbaa !25 store ptr %25, ptr %1, align 4, !tbaa !24 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #5 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #15 %2 = load ptr, ptr %0, align 4, !tbaa !24 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !32 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #5 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #8 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #16 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #7 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #13 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #15 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !25 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !17 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !17 br label %5, !llvm.loop !34 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #12 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = !{!5, !5, i64 0} !17 = !{!18, !5, i64 8} !18 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !19, i64 12} !19 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !20, i64 4} !20 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !21 = !{!22} !22 = distinct !{!22, !23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !23 = distinct !{!23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !24 = !{!18, !5, i64 0} !25 = !{!18, !5, i64 4} !26 = !{!27, !29} !27 = distinct !{!27, !28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !28 = distinct !{!28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !29 = distinct !{!29, !30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !30 = distinct !{!30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !31 = distinct !{!31, !15} !32 = !{!33, !33, i64 0} !33 = !{!"vtable pointer", !7, i64 0} !34 = distinct !{!34, !15}
(module $code_150.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $compare_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_ (type 2) (param i32 i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 5 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load local.tee 3 i32.sub i32.const 2 i32.shr_s local.get 6 i32.gt_u if ;; label = @2 local.get 5 local.get 3 local.get 6 i32.const 2 i32.shl local.tee 4 i32.add i32.load local.get 2 i32.load local.get 4 i32.add i32.load i32.sub local.tee 3 local.get 3 i32.const 31 i32.shr_s local.tee 3 i32.xor local.get 3 i32.sub i32.store offset=12 local.get 5 i32.const 12 i32.add local.set 3 block ;; label = @3 local.get 0 i32.load offset=4 local.tee 4 local.get 0 i32.load offset=8 i32.lt_u if ;; label = @4 local.get 4 local.get 3 i32.load i32.store local.get 0 local.get 4 i32.const 4 i32.add i32.store offset=4 br 1 (;@3;) end local.get 0 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_ end local.get 6 i32.const 1 i32.add local.set 6 br 1 (;@1;) end end local.get 5 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1 (type 1) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z7compareNSt3__26vectorIiNS_9allocatorIiEEEES3_" (func $compare_std::__2::vector<int__std::__2::allocator<int>>__std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int>_int&&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/153
/* You will be given the name of a class (a string) and a vector of extensions. The extensions are to be used to load additional classes to the class. The strength of the extension is as follows: Let CAP be the number of the uppercase letters in the extension's name, and let SM be the number of lowercase letters in the extension's name, the strength is given by the fraction CAP - SM. You should find the strongest extension and return a string in this format: ClassName.StrongestExtensionName. If there are two or more extensions with the same strength, you should choose the one that comes first in the vector. For example, if you are given "Slices" as the class and a vector of the extensions: {"SErviNGSliCes", "Cheese", "StuFfed"} then you should return "Slices.SErviNGSliCes" since "SErviNGSliCes" is the strongest extension (its strength is -1). Example: for Strongest_Extension("my_class", {"AA", "Be", "CC"}) == "my_class.AA" */ #include<stdio.h> #include<vector> #include<string> using namespace std; string Strongest_Extension(string class_name,vector<string> extensions){
#include<stdio.h> #include<math.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<stdlib.h> string Strongest_Extension(string class_name,vector<string> extensions){
string strongest=""; int max=-1000; for (int i=0;i<extensions.size();i++) { int strength=0; for (int j=0;j<extensions[i].length();j++) { char chr=extensions[i][j]; if (chr>=65 and chr<=90) strength+=1; if (chr>=97 and chr<=122) strength-=1; } if (strength>max) { max=strength; strongest=extensions[i]; } } return class_name+'.'+strongest; }
#undef NDEBUG #include<assert.h> int main(){ assert (Strongest_Extension("Watashi", {"tEN", "niNE", "eIGHt8OKe"}) == "Watashi.eIGHt8OKe"); assert (Strongest_Extension("Boku123", {"nani", "NazeDa", "YEs.WeCaNe", "32145tggg"}) == "Boku123.YEs.WeCaNe"); assert (Strongest_Extension("__YESIMHERE", {"t", "eMptY", "(nothing", "zeR00", "NuLl__", "123NoooneB321"}) == "__YESIMHERE.NuLl__"); assert (Strongest_Extension("K", {"Ta", "TAR", "t234An", "cosSo"}) == "K.TAR"); assert (Strongest_Extension("__HAHA", {"Tab", "123", "781345", "-_-"}) == "__HAHA.123"); assert (Strongest_Extension("YameRore", {"HhAas", "okIWILL123", "WorkOut", "Fails", "-_-"}) == "YameRore.okIWILL123"); assert (Strongest_Extension("finNNalLLly", {"Die", "NowW", "Wow", "WoW"}) == "finNNalLLly.WoW"); assert (Strongest_Extension("_", {"Bb", "91245"}) == "_.Bb"); assert (Strongest_Extension("Sp", {"671235", "Bb"}) == "Sp.671235"); }
#undef NDEBUG #include<assert.h> int main(){ assert (Strongest_Extension("my_class", {"AA", "Be", "CC"}) == "my_class.AA"); }
; ModuleID = 'c_code/code_151.cpp' source_filename = "c_code/code_151.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_ = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize mustprogress optsize define void @_Z19Strongest_ExtensionNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_6vectorIS5_NS3_IS5_EEEE(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 { %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #13 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull @.str) #14 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 br label %8 8: ; preds = %52, %3 %9 = phi i32 [ 0, %3 ], [ %54, %52 ] %10 = phi i32 [ -1000, %3 ], [ %53, %52 ] %11 = load ptr, ptr %7, align 4, !tbaa !3 %12 = load ptr, ptr %2, align 4, !tbaa !10 %13 = ptrtoint ptr %11 to i32 %14 = ptrtoint ptr %12 to i32 %15 = sub i32 %13, %14 %16 = sdiv exact i32 %15, 12 %17 = icmp ult i32 %9, %16 br i1 %17, label %18, label %27 18: ; preds = %8 %19 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 %9 %20 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %19, i32 0, i32 2 %21 = load i8, ptr %20, align 1 %22 = icmp slt i8 %21, 0 %23 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %19, i32 0, i32 1 %24 = load i32, ptr %23, align 4 %25 = zext i8 %21 to i32 %26 = select i1 %22, i32 %24, i32 %25 br label %30 27: ; preds = %8 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #13 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext 46) #14 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_(ptr sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %4) #14 %28 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #13 %29 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #15 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #13 ret void 30: ; preds = %18, %36 %31 = phi i32 [ %48, %36 ], [ 0, %18 ] %32 = phi i32 [ %49, %36 ], [ 0, %18 ] %33 = icmp eq i32 %32, %26 br i1 %33, label %34, label %36 34: ; preds = %30 %35 = icmp sgt i32 %31, %10 br i1 %35, label %50, label %52 36: ; preds = %30 %37 = load ptr, ptr %19, align 4 %38 = select i1 %22, ptr %37, ptr %19 %39 = getelementptr inbounds i8, ptr %38, i32 %32 %40 = load i8, ptr %39, align 1, !tbaa !11 %41 = add i8 %40, -65 %42 = icmp ult i8 %41, 26 %43 = zext i1 %42 to i32 %44 = add nsw i32 %31, %43 %45 = add i8 %40, -97 %46 = icmp ult i8 %45, 26 %47 = sext i1 %46 to i32 %48 = add nsw i32 %44, %47 %49 = add nuw i32 %32, 1 br label %30, !llvm.loop !12 50: ; preds = %34 %51 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %19) #14 br label %52 52: ; preds = %50, %34 %53 = phi i32 [ %31, %50 ], [ %10, %34 ] %54 = add nuw nsw i32 %9, 1 br label %8, !llvm.loop !14 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #15 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #14 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = icmp eq ptr %0, %1 br i1 %3, label %26, label %4 4: ; preds = %2 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %9 = load i8, ptr %8, align 1 %10 = icmp slt i8 %9, 0 br i1 %7, label %18, label %11 11: ; preds = %4 br i1 %10, label %13, label %12 12: ; preds = %11 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !15 br label %26 13: ; preds = %11 %14 = load ptr, ptr %1, align 4 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %14, i32 noundef %16) #14 br label %26 18: ; preds = %4 %19 = load ptr, ptr %1, align 4 %20 = select i1 %10, ptr %19, ptr %1 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %22 = load i32, ptr %21, align 4 %23 = zext i8 %9 to i32 %24 = select i1 %10, i32 %22, i32 %23 %25 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %20, i32 noundef %24) #14 br label %26 26: ; preds = %2, %12, %18, %13 %27 = phi ptr [ %25, %18 ], [ %17, %13 ], [ %0, %12 ], [ %0, %2 ] ret ptr %27 } ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_RKS9_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #3 comdat { %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #14 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, i8 0, i32 12, i1 false) ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #2 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #13 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #13 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !19 store i8 %2, ptr %24, align 1, !tbaa !11 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !11 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #5 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #17 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !30 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #8 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #2 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #2 ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #2 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #2 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #18 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !11 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !11 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #12 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = load ptr, ptr %1, align 4 %7 = select i1 %5, ptr %6, ptr %1 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %4 to i32 %11 = select i1 %5, i32 %9, i32 %10 %12 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %7, i32 noundef %11) #14 ret ptr %12 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #2 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #11 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { noreturn } attributes #18 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!6, !6, i64 0} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"} !14 = distinct !{!14, !13} !15 = !{i64 0, i64 4, !16, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 11, i64 4, !17, i64 0, i64 11, !11, i64 11, i64 0, !11, i64 11, i64 1, !11, i64 11, i64 1, !11, i64 0, i64 12, !11} !16 = !{!5, !5, i64 0} !17 = !{!18, !18, i64 0} !18 = !{!"long", !6, i64 0} !19 = !{!20, !22, !24, !26, !28} !20 = distinct !{!20, !21, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !21 = distinct !{!21, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !22 = distinct !{!22, !23, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !23 = distinct !{!23, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !24 = distinct !{!24, !25, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !26 = distinct !{!26, !27, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !27 = distinct !{!27, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !28 = distinct !{!28, !29, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !29 = distinct !{!29, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !30 = !{!31, !31, i64 0} !31 = !{!"vtable pointer", !7, i64 0}
(module $code_151.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func)) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ (type 2))) (import "env" "memmove" (func $memmove (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 4)) (func $Strongest_Extension_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_ (type 3) (param i32 i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 9 global.set $__stack_pointer i32.const -1000 local.set 6 local.get 9 i32.const 20 i32.add global.get $__memory_base i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 7 loop ;; label = @1 local.get 2 i32.load offset=4 local.get 2 i32.load local.tee 4 i32.sub i32.const 12 i32.div_s local.get 8 i32.gt_u if ;; label = @2 i32.const 0 local.set 3 local.get 4 local.get 8 i32.const 12 i32.mul i32.add local.tee 4 i32.load offset=4 local.get 4 i32.load8_u offset=11 local.tee 5 local.get 5 i32.extend8_s local.tee 10 i32.const 0 i32.lt_s select local.set 11 i32.const 0 local.set 5 loop ;; label = @3 local.get 5 local.get 11 i32.eq if ;; label = @4 local.get 3 local.get 6 i32.gt_s if ;; label = @5 local.get 7 local.get 4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 3 local.set 6 end local.get 8 i32.const 1 i32.add local.set 8 br 3 (;@1;) else local.get 3 local.get 4 i32.load local.get 4 local.get 10 i32.const 0 i32.lt_s select local.get 5 i32.add i32.load8_u local.tee 12 i32.const 65 i32.sub i32.const 255 i32.and i32.const 26 i32.lt_u i32.add local.get 12 i32.const 97 i32.sub i32.const 255 i32.and i32.const 26 i32.lt_u i32.sub local.set 3 local.get 5 i32.const 1 i32.add local.set 5 br 1 (;@3;) end unreachable end unreachable end end global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer block (result i32) ;; label = @1 local.get 9 i32.const 8 i32.add local.set 2 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 6 i32.const 1 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 2 i32.const 0 i32.store offset=8 local.get 2 i64.const 0 i64.store align=4 local.get 2 local.get 3 i32.store8 offset=11 local.get 2 br 2 (;@1;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 5 call $operator_new_unsigned_long_ local.set 8 local.get 2 local.get 3 i32.store offset=4 local.get 2 local.get 8 i32.store local.get 2 local.get 5 i32.const -2147483648 i32.or i32.store offset=8 local.get 2 br 1 (;@1;) end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.tee 3 i32.load local.get 3 local.get 3 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 1 i32.load local.get 1 local.get 1 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 6 call $memmove local.get 6 i32.add local.tee 1 i32.const 46 i32.store8 local.get 1 i32.const 0 i32.store8 offset=1 local.get 4 i32.const 16 i32.add global.set $__stack_pointer local.get 0 local.get 2 local.get 7 i32.load local.get 7 local.get 7 i32.load8_u offset=11 local.tee 1 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 7 i32.load offset=4 local.get 1 local.get 3 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ local.tee 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 1 i64.const 0 i64.store align=4 local.get 1 i32.const 0 i32.store offset=8 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 9 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 0 local.get 1 i32.ne if (result i32) ;; label = @1 local.get 1 i32.load8_u offset=11 local.tee 3 i32.extend8_s local.set 2 local.get 0 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @2 local.get 2 i32.const 0 i32.ge_s if ;; label = @3 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ return end local.get 0 local.get 1 i32.load local.get 1 local.get 2 i32.const 0 i32.lt_s local.tee 0 select local.get 1 i32.load offset=4 local.get 3 local.get 0 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ else local.get 0 end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z19Strongest_ExtensionNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_6vectorIS5_NS3_IS5_EEEE" (func $Strongest_Extension_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "basic_string\00"))
CPP/154
/* You are given 2 words. You need to return true if the second word or any of its rotations is a substring in the first word cycpattern_check("abcd","abd") => false cycpattern_check("hello","ell") => true cycpattern_check("whassup","psus") => false cycpattern_check("abab","baa") => true cycpattern_check("efef","eeff") => false cycpattern_check("himenss",'simen") => true */ #include<stdio.h> #include<string> using namespace std; bool cycpattern_check(string a,string b){
#include<stdio.h> #include<string> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> bool cycpattern_check(string a,string b){
for (int i=0;i<b.size();i++) { string rotate=b.substr(i)+b.substr(0,i); if (a.find(rotate)!=string::npos) return true; } return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (cycpattern_check("xyzw","xyw") == false ); assert (cycpattern_check("yello","ell") == true ); assert (cycpattern_check("whattup","ptut") == false ); assert (cycpattern_check("efef","fee") == true ); assert (cycpattern_check("abab","aabb") == false ); assert (cycpattern_check("winemtt","tinem") == true ); }
#undef NDEBUG #include<assert.h> int main(){ assert (cycpattern_check("abcd","abd") == false ); assert (cycpattern_check("hello","ell") == true ); assert (cycpattern_check("whassup","psus") == false ); assert (cycpattern_check("abab","baa") == true ); assert (cycpattern_check("efef","eeff") == false ); assert (cycpattern_check("himenss","simen") == true ); }
; ModuleID = 'c_code/code_152.cpp' source_filename = "c_code/code_152.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_SA_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findB7v160006ERKS5_m = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_ = comdat any $_ZNSt3__210__str_findB7v160006IcmNS_11char_traitsIcEELm4294967295EEET0_PKT_S3_S6_S3_S3_ = comdat any $_ZNSt3__218__search_substringB7v160006IcNS_11char_traitsIcEEEEPKT_S5_S5_S5_S5_ = comdat any $_ZNSt3__211char_traitsIcE4findEPKcmRS2_ = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any ; Function Attrs: minsize mustprogress optsize define noundef zeroext i1 @_Z16cycpattern_checkNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = alloca %"class.std::__2::basic_string", align 4 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 br label %8 8: ; preds = %16, %2 %9 = phi i32 [ 0, %2 ], [ %22, %16 ] %10 = load i8, ptr %6, align 1 %11 = icmp slt i8 %10, 0 %12 = load i32, ptr %7, align 4 %13 = zext i8 %10 to i32 %14 = select i1 %11, i32 %12, i32 %13 %15 = icmp ult i32 %9, %14 br i1 %15, label %16, label %23 16: ; preds = %8 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #10 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #10 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %9, i32 noundef -1) #11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #10 call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0, i32 noundef %9) #11 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_SA_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5) #11 %17 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #10 %18 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #10 %19 = call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findB7v160006ERKS5_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0) #12 %20 = icmp eq i32 %19, -1 %21 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #12 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #10 %22 = add nuw nsw i32 %9, 1 br i1 %20, label %8, label %23, !llvm.loop !3 23: ; preds = %8, %16 ret i1 %15 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_SA_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #2 comdat { %4 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #11 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 12, i1 false) tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %4, i8 0, i32 12, i1 false) ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrB7v160006Emm(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 comdat { %5 = alloca %"class.std::__2::allocator", align 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10 %6 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5) #11 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findB7v160006ERKS5_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2) local_unnamed_addr #5 comdat { %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %5 = load i8, ptr %4, align 1 %6 = icmp slt i8 %5, 0 %7 = load ptr, ptr %0, align 4 %8 = select i1 %6, ptr %7, ptr %0 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %10 = load i32, ptr %9, align 4 %11 = zext i8 %5 to i32 %12 = select i1 %6, i32 %10, i32 %11 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %14 = load i8, ptr %13, align 1 %15 = icmp slt i8 %14, 0 %16 = load ptr, ptr %1, align 4 %17 = select i1 %15, ptr %16, ptr %1 %18 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %19 = load i32, ptr %18, align 4 %20 = zext i8 %14 to i32 %21 = select i1 %15, i32 %19, i32 %20 %22 = tail call noundef i32 @_ZNSt3__210__str_findB7v160006IcmNS_11char_traitsIcEELm4294967295EEET0_PKT_S3_S6_S3_S3_(ptr noundef %8, i32 noundef %12, ptr noundef %17, i32 noundef %2, i32 noundef %21) #12 ret i32 %22 } ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 %6 = load ptr, ptr %1, align 4 %7 = select i1 %5, ptr %6, ptr %1 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %4 to i32 %11 = select i1 %5, i32 %9, i32 %10 %12 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %7, i32 noundef %11) #11 ret ptr %12 } ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #6 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #7 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef i32 @_ZNSt3__210__str_findB7v160006IcmNS_11char_traitsIcEELm4294967295EEET0_PKT_S3_S6_S3_S3_(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #5 comdat { %6 = icmp ugt i32 %3, %1 br i1 %6, label %19, label %7 7: ; preds = %5 %8 = icmp eq i32 %4, 0 br i1 %8, label %19, label %9 9: ; preds = %7 %10 = getelementptr inbounds i8, ptr %0, i32 %3 %11 = getelementptr inbounds i8, ptr %0, i32 %1 %12 = getelementptr inbounds i8, ptr %2, i32 %4 %13 = tail call noundef ptr @_ZNSt3__218__search_substringB7v160006IcNS_11char_traitsIcEEEEPKT_S5_S5_S5_S5_(ptr noundef %10, ptr noundef %11, ptr noundef %2, ptr noundef nonnull %12) #12 %14 = icmp eq ptr %13, %11 %15 = ptrtoint ptr %13 to i32 %16 = ptrtoint ptr %0 to i32 %17 = sub i32 %15, %16 %18 = select i1 %14, i32 -1, i32 %17 br label %19 19: ; preds = %7, %5, %9 %20 = phi i32 [ %18, %9 ], [ -1, %5 ], [ %3, %7 ] ret i32 %20 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__218__search_substringB7v160006IcNS_11char_traitsIcEEEEPKT_S5_S5_S5_S5_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #5 comdat { %5 = alloca i8, align 1 %6 = ptrtoint ptr %3 to i32 %7 = ptrtoint ptr %2 to i32 %8 = sub i32 %6, %7 %9 = icmp eq ptr %3, %2 br i1 %9, label %34, label %10 10: ; preds = %4 %11 = ptrtoint ptr %1 to i32 %12 = ptrtoint ptr %0 to i32 %13 = sub i32 %11, %12 %14 = icmp slt i32 %13, %8 br i1 %14, label %34, label %15 15: ; preds = %10 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10 %16 = load i8, ptr %2, align 1, !tbaa !5 store i8 %16, ptr %5, align 1, !tbaa !5 br label %17 17: ; preds = %30, %15 %18 = phi ptr [ %0, %15 ], [ %31, %30 ] %19 = ptrtoint ptr %18 to i32 %20 = sub i32 %11, %19 %21 = icmp slt i32 %20, %8 br i1 %21, label %32, label %22 22: ; preds = %17 %23 = sub i32 %20, %8 %24 = add i32 %23, 1 %25 = call noundef ptr @_ZNSt3__211char_traitsIcE4findEPKcmRS2_(ptr noundef %18, i32 noundef %24, ptr noundef nonnull align 1 dereferenceable(1) %5) #12 %26 = icmp eq ptr %25, null br i1 %26, label %32, label %27 27: ; preds = %22 %28 = call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef nonnull %25, ptr noundef nonnull %2, i32 noundef %8) #12 %29 = icmp eq i32 %28, 0 br i1 %29, label %32, label %30 30: ; preds = %27 %31 = getelementptr inbounds i8, ptr %25, i32 1 br label %17, !llvm.loop !8 32: ; preds = %27, %22, %17 %33 = phi ptr [ %1, %17 ], [ %1, %22 ], [ %25, %27 ] call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10 br label %34 34: ; preds = %32, %10, %4 %35 = phi ptr [ %0, %4 ], [ %33, %32 ], [ %1, %10 ] ret ptr %35 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef ptr @_ZNSt3__211char_traitsIcE4findEPKcmRS2_(ptr noundef %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #8 comdat { %4 = icmp eq i32 %1, 0 br i1 %4, label %9, label %5 5: ; preds = %3 %6 = load i8, ptr %2, align 1, !tbaa !5 %7 = sext i8 %6 to i32 %8 = tail call ptr @memchr(ptr noundef %0, i32 noundef %7, i32 noundef %1) #12 br label %9 9: ; preds = %3, %5 %10 = phi ptr [ %8, %5 ], [ null, %3 ] ret ptr %10 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #8 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #12 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare ptr @memchr(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #9 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #8 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { nounwind } attributes #11 = { minsize optsize } attributes #12 = { minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = distinct !{!3, !4} !4 = !{!"llvm.loop.mustprogress"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = distinct !{!8, !4}
(module $code_152.wasm (type (;0;) (func (param i32 i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32 i32 i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ (type 0))) (import "env" "_ZNSt3__211char_traitsIcE4findEPKcmRS2_" (func $std::__2::char_traits<char>::find_char_const*__unsigned_long__char_const&_ (type 0))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 0))) (import "env" "memchr" (func $memchr (type 0))) (import "env" "memcmp" (func $memcmp (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "memory" (memory (;0;) 0)) (func $__wasm_call_ctors (type 3)) (func $cycpattern_check_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 4) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 9 global.set $__stack_pointer loop ;; label = @1 local.get 11 local.tee 10 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s select local.tee 12 i32.lt_u if ;; label = @2 local.get 9 i32.const 24 i32.add local.tee 7 local.get 1 local.get 10 i32.const -1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 9 i32.const 12 i32.add local.tee 2 local.get 1 i32.const 0 local.get 10 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const local.get 10 i32.const 1 i32.add local.set 11 local.get 9 i32.const 36 i32.add local.tee 6 local.get 7 local.get 2 i32.load local.get 2 local.get 2 i32.load8_u offset=11 local.tee 3 i32.extend8_s i32.const 0 i32.lt_s local.tee 4 select local.get 2 i32.load offset=4 local.get 3 local.get 4 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::append_char_const*__unsigned_long_ local.tee 3 i64.load align=4 i64.store align=4 local.get 6 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 7 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop block (result i32) ;; label = @3 local.get 0 i32.load local.get 0 local.get 0 i32.load8_u offset=11 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.set 7 local.get 0 i32.load offset=4 local.get 2 local.get 3 select local.get 6 i32.load local.get 6 local.get 6 i32.load8_u offset=11 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 8 select local.set 4 i32.const 0 local.get 6 i32.load offset=4 local.get 2 local.get 8 select local.tee 5 i32.eqz br_if 0 (;@3;) drop local.get 7 local.tee 2 i32.add local.tee 13 local.set 3 global.get $__stack_pointer i32.const 16 i32.sub local.tee 8 global.set $__stack_pointer block ;; label = @4 local.get 4 local.get 5 i32.add local.tee 5 local.get 4 i32.eq if ;; label = @5 local.get 2 local.set 3 br 1 (;@4;) end local.get 5 local.get 4 i32.sub local.tee 5 local.get 3 local.get 2 i32.sub i32.gt_s br_if 0 (;@4;) local.get 8 local.get 4 i32.load8_u i32.store8 offset=15 loop (result i32) ;; label = @5 local.get 3 local.get 2 i32.sub local.tee 14 local.get 5 i32.lt_s br_if 1 (;@4;) local.get 2 local.get 14 local.get 5 i32.sub i32.const 1 i32.add local.get 8 i32.const 15 i32.add call $std::__2::char_traits<char>::find_char_const*__unsigned_long__char_const&_ local.tee 2 i32.eqz br_if 1 (;@4;) local.get 2 local.get 4 local.get 5 call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ if (result i32) ;; label = @6 local.get 2 i32.const 1 i32.add local.set 2 br 1 (;@5;) else local.get 2 end end local.set 3 end local.get 8 i32.const 16 i32.add global.set $__stack_pointer i32.const -1 local.get 3 local.get 7 i32.sub local.get 3 local.get 13 i32.eq select end local.get 6 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop i32.const -1 i32.eq br_if 1 (;@1;) end end local.get 9 i32.const 48 i32.add global.set $__stack_pointer local.get 10 local.get 12 i32.lt_u) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::substr_abi:v160006__unsigned_long__unsigned_long__const (type 5) (param i32 i32 i32 i32) (local i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 local.get 1 local.get 2 local.get 3 local.get 4 i32.const 15 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__unsigned_long__unsigned_long__std::__2::allocator<char>_const&_ drop local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $std::__2::char_traits<char>::find_char_const*__unsigned_long__char_const&_.1 (type 0) (param i32 i32 i32) (result i32) local.get 1 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 2 i32.load8_s local.get 1 call $memchr) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 0) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z16cycpattern_checkNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_" (func $cycpattern_check_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__211char_traitsIcE4findEPKcmRS2_" (func $std::__2::char_traits<char>::find_char_const*__unsigned_long__char_const&_.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)))
CPP/155
/* Given an integer. return a vector that has the number of even and odd digits respectively. Example: even_odd_count(-12) ==> {1, 1} even_odd_count(123) ==> {1, 2} */ #include<stdio.h> #include<math.h> #include<string> #include<vector> using namespace std; vector<int> even_odd_count(int num){
#include<stdio.h> #include<math.h> #include<string> #include<vector> using namespace std; #include<algorithm> #include<stdlib.h> vector<int> even_odd_count(int num){
string w=to_string(abs(num)); int n1=0,n2=0; for (int i=0;i<w.length();i++) if (w[i]%2==1) n1+=1; else n2+=1; return {n2,n1}; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(even_odd_count(7) , {0, 1})); assert (issame(even_odd_count(-78) , {1, 1})); assert (issame(even_odd_count(3452) , {2, 2})); assert (issame(even_odd_count(346211) , {3, 3})); assert (issame(even_odd_count(-345821) , {3, 3})); assert (issame(even_odd_count(-2) , {1, 0})); assert (issame(even_odd_count(-45347) , {2, 3})); assert (issame(even_odd_count(0) , {1, 0})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(even_odd_count(-12) , {1, 1})); assert (issame(even_odd_count(123) , {1, 2})); }
; ModuleID = 'c_code/code_153.cpp' source_filename = "c_code/code_153.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize mustprogress optsize define void @_Z14even_odd_counti(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [2 x i32], align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #12 %6 = tail call i32 @llvm.abs.i32(i32 %1, i1 true) call void @_ZNSt3__29to_stringEi(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %3, i32 noundef %6) #13 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %8 = load i8, ptr %7, align 1 %9 = icmp slt i8 %8, 0 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 %11 = load i32, ptr %10, align 4 %12 = zext i8 %8 to i32 %13 = select i1 %9, i32 %11, i32 %12 %14 = load ptr, ptr %3, align 4 %15 = select i1 %9, ptr %14, ptr %3 br label %16 16: ; preds = %26, %2 %17 = phi i32 [ 0, %2 ], [ %33, %26 ] %18 = phi i32 [ 0, %2 ], [ %36, %26 ] %19 = phi i32 [ 0, %2 ], [ %37, %26 ] %20 = icmp eq i32 %19, %13 br i1 %20, label %21, label %26 21: ; preds = %16 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #12 store i32 %18, ptr %5, align 4, !tbaa !3 %22 = getelementptr inbounds i32, ptr %5, i32 1 store i32 %17, ptr %22, align 4, !tbaa !3 store ptr %5, ptr %4, align 4, !tbaa !7 %23 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 2, ptr %23, align 4, !tbaa !11 %24 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4) #13 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #12 %25 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #14 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #12 ret void 26: ; preds = %16 %27 = getelementptr inbounds i8, ptr %15, i32 %19 %28 = load i8, ptr %27, align 1, !tbaa !12 %29 = sext i8 %28 to i32 %30 = and i32 %29, -2147483647 %31 = icmp eq i32 %30, 1 %32 = zext i1 %31 to i32 %33 = add nuw nsw i32 %17, %32 %34 = xor i1 %31, true %35 = zext i1 %34 to i32 %36 = add nuw nsw i32 %18, %35 %37 = add nuw i32 %19, 1 br label %16, !llvm.loop !13 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize declare void @_ZNSt3__29to_stringEi(ptr sret(%"class.std::__2::basic_string") align 4, i32 noundef) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #3 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !15 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !19 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !20 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #12 store ptr %0, ptr %3, align 4, !tbaa.struct !21, !alias.scope !23 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !11 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #13 %10 = load ptr, ptr %1, align 4, !tbaa !7 %11 = load ptr, ptr %4, align 4, !tbaa !19 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !26 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !19 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !37 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #14 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #12 ret ptr %0 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #15 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #13, !noalias !41 store ptr %7, ptr %0, align 4, !tbaa !15 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !19 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !22 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !37, !range !44, !noundef !45 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #14 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #7 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #15 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #8 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #12 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #13 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #16 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #2 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #13 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !46 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #6 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #2 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #15 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #17 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #8 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #12 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #14 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #16 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !48 %3 = load ptr, ptr %2, align 4, !tbaa !15 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !19 tail call void @_ZdlPv(ptr noundef nonnull %3) #18 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #11 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #12 = { nounwind } attributes #13 = { minsize optsize } attributes #14 = { minsize nounwind optsize } attributes #15 = { minsize noreturn optsize } attributes #16 = { noreturn } attributes #17 = { builtin minsize optsize allocsize(0) } attributes #18 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSSt16initializer_listIiE", !9, i64 0, !10, i64 4} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"long", !5, i64 0} !11 = !{!8, !10, i64 4} !12 = !{!5, !5, i64 0} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.mustprogress"} !15 = !{!16, !9, i64 0} !16 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !17, i64 8} !17 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !18, i64 0} !18 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !19 = !{!16, !9, i64 4} !20 = !{!18, !9, i64 0} !21 = !{i64 0, i64 4, !22} !22 = !{!9, !9, i64 0} !23 = !{!24} !24 = distinct !{!24, !25, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !26 = !{!27, !29, !31, !33, !35} !27 = distinct !{!27, !28, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !28 = distinct !{!28, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !29 = distinct !{!29, !30, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !30 = distinct !{!30, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !31 = distinct !{!31, !32, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !32 = distinct !{!32, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !33 = distinct !{!33, !34, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !34 = distinct !{!34, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !35 = distinct !{!35, !36, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !36 = distinct !{!36, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !37 = !{!38, !40, i64 4} !38 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !39, i64 0, !40, i64 4} !39 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !9, i64 0} !40 = !{!"bool", !5, i64 0} !41 = !{!42} !42 = distinct !{!42, !43, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !43 = distinct !{!43, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !44 = !{i8 0, i8 2} !45 = !{} !46 = !{!47, !47, i64 0} !47 = !{!"vtable pointer", !6, i64 0} !48 = !{!39, !9, i64 0}
(module $code_153.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func)) (import "env" "_ZNSt3__29to_stringEi" (func $std::__2::to_string_int_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 0))) (import "env" "memmove" (func $memmove (type 2))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 6)) (func $even_odd_count_int_ (type 1) (param i32 i32) (local i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 2 global.set $__stack_pointer local.get 2 i32.const 36 i32.add local.tee 4 local.get 1 local.get 1 i32.const 31 i32.shr_s local.tee 3 i32.xor local.get 3 i32.sub call $std::__2::to_string_int_ i32.const 0 local.set 3 local.get 2 i32.load offset=40 local.get 2 i32.load8_u offset=47 local.tee 1 local.get 1 i32.extend8_s i32.const 0 i32.lt_s local.tee 1 select local.set 5 local.get 2 i32.load offset=36 local.get 4 local.get 1 select local.set 6 i32.const 0 local.set 4 i32.const 0 local.set 1 loop ;; label = @1 local.get 1 local.get 5 i32.eq if ;; label = @2 local.get 2 i32.const 2 i32.store offset=32 local.get 2 local.get 3 i32.store offset=24 local.get 2 local.get 4 i32.store offset=20 local.get 2 local.get 2 i32.const 20 i32.add i32.store offset=28 local.get 2 local.get 2 i64.load offset=28 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 1 local.get 0 i32.store offset=8 local.get 2 i32.load offset=12 local.tee 3 if ;; label = @3 local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @4 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @4 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 local.get 3 i32.const 2 i32.shl local.tee 3 call $operator_new_unsigned_long_ local.tee 4 i32.store offset=4 local.get 0 local.get 4 i32.store local.get 0 local.get 3 local.get 4 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 2 i32.load offset=8 local.get 3 call $memmove local.get 3 i32.add i32.store offset=4 end local.get 1 i32.const 1 i32.store8 offset=12 local.get 1 i32.load8_u offset=12 i32.eqz if ;; label = @3 local.get 1 i32.load offset=8 local.tee 3 i32.load local.tee 0 if ;; label = @4 local.get 3 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end end local.get 1 i32.const 16 i32.add global.set $__stack_pointer local.get 2 i32.const 36 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 2 i32.const 48 i32.add global.set $__stack_pointer else local.get 4 local.get 1 local.get 6 i32.add i32.load8_s i32.const -2147483647 i32.and local.tee 7 i32.const 1 i32.ne i32.add local.set 4 local.get 3 local.get 7 i32.const 1 i32.eq i32.add local.set 3 local.get 1 i32.const 1 i32.add local.set 1 br 1 (;@1;) end end) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z14even_odd_counti" (func $even_odd_count_int_)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/156
/* Given a positive integer, obtain its roman numeral equivalent as a string, and return it in lowercase. Restrictions: 1 <= num <= 1000 Examples: >>> int_to_mini_roman(19) == "xix" >>> int_to_mini_roman(152) == "clii" >>> int_to_mini_roman(426) == "cdxxvi" */ #include<stdio.h> #include<vector> #include<string> using namespace std; string int_to_mini_romank(int number){
#include<stdio.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> string int_to_mini_romank(int number){
string current=""; vector<string> rep={"m","cm","d","cd","c","xc","l","xl","x","ix","v","iv","i"}; vector<int> num={1000,900,500,400,100,90,50,40,10,9,5,4,1}; int pos=0; while(number>0) { while (number>=num[pos]) { current=current+rep[pos]; number-=num[pos]; } if (number>0) pos+=1; } return current; }
#undef NDEBUG #include<assert.h> int main(){ assert (int_to_mini_romank(19) == "xix"); assert (int_to_mini_romank(152) == "clii"); assert (int_to_mini_romank(251) == "ccli"); assert (int_to_mini_romank(426) == "cdxxvi"); assert (int_to_mini_romank(500) == "d"); assert (int_to_mini_romank(1) == "i"); assert (int_to_mini_romank(4) == "iv"); assert (int_to_mini_romank(43) == "xliii"); assert (int_to_mini_romank(90) == "xc"); assert (int_to_mini_romank(94) == "xciv"); assert (int_to_mini_romank(532) == "dxxxii"); assert (int_to_mini_romank(900) == "cm"); assert (int_to_mini_romank(994) == "cmxciv"); assert (int_to_mini_romank(1000) == "m"); }
#undef NDEBUG #include<assert.h> int main(){ assert (int_to_mini_romank(19) == "xix"); assert (int_to_mini_romank(152) == "clii"); assert (int_to_mini_romank(426) == "cdxxvi"); }
; ModuleID = 'c_code/code_154.cpp' source_filename = "c_code/code_154.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"class.std::__2::vector.7" = type { ptr, ptr, %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { ptr } %"class.std::initializer_list.14" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<std::__2::string>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<std::__2::string>::__destroy_vector" = type { ptr } %"struct.std::__2::__exception_guard_exceptions.19" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"class.std::__2::allocator" = type { i8 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"struct.std::__2::__exception_guard_exceptions.17" = type <{ %"class.std::__2::_AllocatorDestroyRangeReverse", i8, [3 x i8] }> %"class.std::__2::_AllocatorDestroyRangeReverse" = type { ptr, ptr, ptr } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em = comdat any $_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_ = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_ = comdat any $_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev = comdat any $_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_ = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev = comdat any $_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [2 x i8] c"m\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"cm\00", align 1 @.str.3 = private unnamed_addr constant [2 x i8] c"d\00", align 1 @.str.4 = private unnamed_addr constant [3 x i8] c"cd\00", align 1 @.str.5 = private unnamed_addr constant [2 x i8] c"c\00", align 1 @.str.6 = private unnamed_addr constant [3 x i8] c"xc\00", align 1 @.str.7 = private unnamed_addr constant [2 x i8] c"l\00", align 1 @.str.8 = private unnamed_addr constant [3 x i8] c"xl\00", align 1 @.str.9 = private unnamed_addr constant [2 x i8] c"x\00", align 1 @.str.10 = private unnamed_addr constant [3 x i8] c"ix\00", align 1 @.str.11 = private unnamed_addr constant [2 x i8] c"v\00", align 1 @.str.12 = private unnamed_addr constant [3 x i8] c"iv\00", align 1 @.str.13 = private unnamed_addr constant [2 x i8] c"i\00", align 1 @constinit = private unnamed_addr constant [13 x i32] [i32 1000, i32 900, i32 500, i32 400, i32 100, i32 90, i32 50, i32 40, i32 10, i32 9, i32 5, i32 4, i32 1], align 4 @.str.14 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr @.str.15 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 ; Function Attrs: minsize mustprogress optsize define void @_Z18int_to_mini_romanki(ptr noalias nonnull sret(%"class.std::__2::basic_string") align 4 %0, i32 noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::vector", align 4 %4 = alloca %"class.std::initializer_list", align 4 %5 = alloca [13 x %"class.std::__2::basic_string"], align 4 %6 = alloca %"class.std::__2::vector.7", align 4 %7 = alloca %"class.std::initializer_list.14", align 4 %8 = alloca [13 x i32], align 4 %9 = alloca %"class.std::__2::basic_string", align 4 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #16 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #17 call void @llvm.lifetime.start.p0(i64 156, ptr nonnull %5) #17 %11 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull @.str.1) #16 %12 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 1 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull @.str.2) #16 %14 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 2 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull @.str.3) #16 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 3 %17 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull @.str.4) #16 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 4 %19 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull @.str.5) #16 %20 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 5 %21 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull @.str.6) #16 %22 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 6 %23 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull @.str.7) #16 %24 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 7 %25 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull @.str.8) #16 %26 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 8 %27 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull @.str.9) #16 %28 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 9 %29 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull @.str.10) #16 %30 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 10 %31 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull @.str.11) #16 %32 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 11 %33 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull @.str.12) #16 %34 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 12 %35 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull @.str.13) #16 store ptr %5, ptr %4, align 4, !tbaa !3 %36 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1 store i32 13, ptr %36, align 4, !tbaa !9 %37 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %4) #16 %38 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 13 br label %39 39: ; preds = %39, %2 %40 = phi ptr [ %38, %2 ], [ %41, %39 ] %41 = getelementptr inbounds %"class.std::__2::basic_string", ptr %40, i32 -1 %42 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %41) #18 %43 = icmp eq ptr %41, %5 br i1 %43, label %44, label %39 44: ; preds = %39 call void @llvm.lifetime.end.p0(i64 156, ptr nonnull %5) #17 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #17 call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %8) #17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(52) %8, ptr noundef nonnull align 4 dereferenceable(52) @constinit, i32 52, i1 false), !tbaa.struct !10 store ptr %8, ptr %7, align 4, !tbaa !12 %45 = getelementptr inbounds %"class.std::initializer_list.14", ptr %7, i32 0, i32 1 store i32 13, ptr %45, align 4, !tbaa !14 %46 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull byval(%"class.std::initializer_list.14") align 4 %7) #16 call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %8) #17 br label %47 47: ; preds = %67, %44 %48 = phi i32 [ %1, %44 ], [ %57, %67 ] %49 = phi i32 [ 0, %44 ], [ %70, %67 ] %50 = icmp sgt i32 %48, 0 br i1 %50, label %51, label %71 51: ; preds = %47 %52 = load ptr, ptr %6, align 4, !tbaa !15 %53 = getelementptr inbounds i32, ptr %52, i32 %49 %54 = load i32, ptr %53, align 4, !tbaa !19 br label %55 55: ; preds = %51, %59 %56 = phi i32 [ %65, %59 ], [ %54, %51 ] %57 = phi i32 [ %66, %59 ], [ %48, %51 ] %58 = icmp slt i32 %57, %56 br i1 %58, label %67, label %59 59: ; preds = %55 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #17 %60 = load ptr, ptr %3, align 4, !tbaa !21 %61 = getelementptr inbounds %"class.std::__2::basic_string", ptr %60, i32 %49 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %61) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %9) #18 %62 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #17 %63 = load ptr, ptr %6, align 4, !tbaa !15 %64 = getelementptr inbounds i32, ptr %63, i32 %49 %65 = load i32, ptr %64, align 4, !tbaa !19 %66 = sub nsw i32 %57, %65 br label %55, !llvm.loop !25 67: ; preds = %55 %68 = icmp sgt i32 %57, 0 %69 = zext i1 %68 to i32 %70 = add nuw nsw i32 %49, %69 br label %47, !llvm.loop !27 71: ; preds = %47 %72 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #17 %73 = call noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #17 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #18 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #16 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEC2B7v160006ESt16initializer_listIS6_E(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #3 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !21 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !28 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !29 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #17 store ptr %0, ptr %3, align 4, !tbaa.struct !30, !alias.scope !32 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !9 %8 = icmp eq i32 %7, 0 br i1 %8, label %12, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 %10 = load ptr, ptr %1, align 4, !tbaa !3 %11 = getelementptr inbounds %"class.std::__2::basic_string", ptr %10, i32 %7 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %10, ptr noundef nonnull %11, i32 noundef %7) #16 br label %12 12: ; preds = %9, %2 %13 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %13, align 4, !tbaa !35 %14 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #18 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #17 ret ptr %0 } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #5 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list.14") align 4 %1) unnamed_addr #3 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions.19", align 4 store ptr null, ptr %0, align 4, !tbaa !15 %4 = getelementptr inbounds %"class.std::__2::vector.7", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !39 %5 = getelementptr inbounds %"class.std::__2::vector.7", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !40 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #17 store ptr %0, ptr %3, align 4, !tbaa.struct !30, !alias.scope !41 %6 = getelementptr inbounds %"class.std::initializer_list.14", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !14 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #16 %10 = load ptr, ptr %1, align 4, !tbaa !12 %11 = load ptr, ptr %4, align 4, !tbaa !39 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !44 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !39 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.19", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !55 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #18 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #17 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #1 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %2, i32 0, i32 2 %13 = load i8, ptr %12, align 1 %14 = icmp slt i8 %13, 0 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %2, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = zext i8 %13 to i32 %18 = select i1 %14, i32 %16, i32 %17 %19 = add i32 %18, %11 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #17 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #17 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %22 = load i8, ptr %21, align 1 %23 = icmp slt i8 %22, 0 %24 = load ptr, ptr %0, align 4 %25 = select i1 %23, ptr %24, ptr %0 %26 = load i8, ptr %5, align 1 %27 = icmp slt i8 %26, 0 %28 = load ptr, ptr %1, align 4 %29 = select i1 %27, ptr %28, ptr %1 %30 = icmp ult ptr %29, %25 %31 = getelementptr inbounds i8, ptr %25, i32 %11 %32 = icmp ule ptr %31, %29 %33 = or i1 %30, %32 call void @llvm.assume(i1 %33) call void @llvm.memmove.p0.p0.i32(ptr align 1 %25, ptr align 1 %29, i32 %11, i1 false), !noalias !58 %34 = load i8, ptr %12, align 1 %35 = icmp slt i8 %34, 0 %36 = load ptr, ptr %2, align 4 %37 = select i1 %35, ptr %36, ptr %2 %38 = icmp ult ptr %37, %31 %39 = getelementptr inbounds i8, ptr %31, i32 %18 %40 = icmp ule ptr %39, %37 %41 = or i1 %38, %40 call void @llvm.assume(i1 %41) call void @llvm.memmove.p0.p0.i32(ptr align 1 %31, ptr align 1 %37, i32 %18, i1 false), !noalias !69 store i8 0, ptr %39, align 1, !tbaa !11 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #17 store ptr %0, ptr %2, align 4, !tbaa !31 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #17 ret ptr %0 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #6 comdat { %2 = alloca %"class.std::__2::vector<std::__2::string>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #17 store ptr %0, ptr %2, align 4, !tbaa !31 call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #17 ret ptr %0 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #8 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #3 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #9 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.14) #19 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #10 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #17 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #16 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #20 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #1 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #16 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !80 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #6 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #1 ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #10 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #17 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #18 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #20 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #6 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #5 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #12 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #16, !noalias !82 store ptr %7, ptr %0, align 4, !tbaa !21 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !28 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !31 ret void } ; Function Attrs: minsize optsize define linkonce_odr void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 comdat { %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !28 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %8 = tail call noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %1, ptr noundef %2, ptr noundef %6) #16 store ptr %8, ptr %5, align 4, !tbaa !28 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !35, !range !85, !noundef !86 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #18 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #9 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.15) #19 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorINS_12basic_stringIcNS_11char_traitsIcEENS0_IcEEEEE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 357913941 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #19 unreachable 5: ; preds = %2 %6 = mul nuw i32 %1, 12 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #21 ret ptr %7 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__230__uninitialized_allocator_copyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPKS6_S9_PS6_EET2_RT_T0_T1_SB_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 comdat { %5 = alloca ptr, align 4 %6 = alloca ptr, align 4 %7 = alloca %"struct.std::__2::__exception_guard_exceptions.17", align 4 store ptr %3, ptr %5, align 4, !tbaa !31 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #17 store ptr %3, ptr %6, align 4, !tbaa !31 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #17 store ptr %0, ptr %7, align 4 %8 = getelementptr inbounds i8, ptr %7, i32 4 store ptr %6, ptr %8, align 4 %9 = getelementptr inbounds i8, ptr %7, i32 8 store ptr %5, ptr %9, align 4 br label %10 10: ; preds = %14, %4 %11 = phi ptr [ %3, %4 ], [ %18, %14 ] %12 = phi ptr [ %1, %4 ], [ %16, %14 ] %13 = icmp eq ptr %12, %2 br i1 %13, label %19, label %14 14: ; preds = %10 %15 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12) #16 %16 = getelementptr inbounds %"class.std::__2::basic_string", ptr %12, i32 1 %17 = load ptr, ptr %5, align 4, !tbaa !31 %18 = getelementptr inbounds %"class.std::__2::basic_string", ptr %17, i32 1 store ptr %18, ptr %5, align 4, !tbaa !31 br label %10, !llvm.loop !87 19: ; preds = %10 %20 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.17", ptr %7, i32 0, i32 1 store i8 1, ptr %20, align 4, !tbaa !88 %21 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(13) %7) #18 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #17 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #17 ret ptr %11 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(13) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.17", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !88, !range !85, !noundef !86 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #1 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %7, label %6 6: ; preds = %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !91 br label %11 7: ; preds = %2 %8 = load ptr, ptr %1, align 4, !tbaa !11 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !tbaa !11 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %8, i32 noundef %10) #16 br label %11 11: ; preds = %7, %6 ret ptr %0 } ; Function Attrs: minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNKSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #1 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !93 %3 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !94 %5 = load ptr, ptr %4, align 4, !tbaa !31 %6 = getelementptr inbounds %"class.std::__2::_AllocatorDestroyRangeReverse", ptr %0, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !95 %8 = load ptr, ptr %7, align 4, !tbaa !31 tail call void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr %5, ptr %8) #16 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__219__allocator_destroyB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEENS_16reverse_iteratorIPS6_EESA_EEvRT_T0_T1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr %1, ptr %2) local_unnamed_addr #0 comdat { br label %4 4: ; preds = %7, %3 %5 = phi ptr [ %1, %3 ], [ %8, %7 ] %6 = icmp eq ptr %5, %2 br i1 %6, label %10, label %7 7: ; preds = %4 %8 = getelementptr inbounds %"class.std::__2::basic_string", ptr %5, i32 -1 %9 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #18 br label %4, !llvm.loop !96 10: ; preds = %4 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !97 %3 = load ptr, ptr %2, align 4, !tbaa !21 %4 = icmp eq ptr %3, null br i1 %4, label %8, label %5 5: ; preds = %1 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #18 %6 = load ptr, ptr %0, align 4, !tbaa !97 %7 = load ptr, ptr %6, align 4, !tbaa !21 tail call void @_ZdlPv(ptr noundef %7) #22 br label %8 8: ; preds = %5, %1 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE7__clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #13 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !21 tail call void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %2) #18 ret void } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE22__base_destruct_at_endB7v160006EPS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #13 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !28 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %4, %2 ], [ %9, %8 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %11, label %8 8: ; preds = %5 %9 = getelementptr inbounds %"class.std::__2::basic_string", ptr %6, i32 -1 %10 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #18 br label %5, !llvm.loop !98 11: ; preds = %5 store ptr %1, ptr %3, align 4, !tbaa !28 ret void } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector.7", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #16, !noalias !99 store ptr %7, ptr %0, align 4, !tbaa !15 %8 = getelementptr inbounds %"class.std::__2::vector.7", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !39 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !31 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #6 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions.19", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !55, !range !85, !noundef !86 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #18 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #9 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.15) #19 unreachable } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #19 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #21 ret ptr %7 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !102 %3 = load ptr, ptr %2, align 4, !tbaa !15 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector.7", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !39 tail call void @_ZdlPv(ptr noundef nonnull %3) #22 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #1 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #19 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #21 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !11 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !11 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #14 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #15 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !11 tail call void @_ZdlPv(ptr noundef %7) #22 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !91 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !11 ret void } attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #6 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #9 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #15 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { minsize optsize } attributes #17 = { nounwind } attributes #18 = { minsize nounwind optsize } attributes #19 = { minsize noreturn optsize } attributes #20 = { noreturn } attributes #21 = { builtin minsize optsize allocsize(0) } attributes #22 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSSt16initializer_listINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEE", !5, i64 0, !8, i64 4} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"long", !6, i64 0} !9 = !{!4, !8, i64 4} !10 = !{i64 0, i64 52, !11} !11 = !{!6, !6, i64 0} !12 = !{!13, !5, i64 0} !13 = !{!"_ZTSSt16initializer_listIiE", !5, i64 0, !8, i64 4} !14 = !{!13, !8, i64 4} !15 = !{!16, !5, i64 0} !16 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !17, i64 8} !17 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !18, i64 0} !18 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !19 = !{!20, !20, i64 0} !20 = !{!"int", !6, i64 0} !21 = !{!22, !5, i64 0} !22 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !23, i64 8} !23 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !24, i64 0} !24 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !25 = distinct !{!25, !26} !26 = !{!"llvm.loop.mustprogress"} !27 = distinct !{!27, !26} !28 = !{!22, !5, i64 4} !29 = !{!24, !5, i64 0} !30 = !{i64 0, i64 4, !31} !31 = !{!5, !5, i64 0} !32 = !{!33} !33 = distinct !{!33, !34, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_: argument 0"} !34 = distinct !{!34, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EESC_"} !35 = !{!36, !38, i64 4} !36 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS5_IS7_EEE16__destroy_vectorEEE", !37, i64 0, !38, i64 4} !37 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE16__destroy_vectorE", !5, i64 0} !38 = !{!"bool", !6, i64 0} !39 = !{!16, !5, i64 4} !40 = !{!18, !5, i64 0} !41 = !{!42} !42 = distinct !{!42, !43, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !43 = distinct !{!43, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !44 = !{!45, !47, !49, !51, !53} !45 = distinct !{!45, !46, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !46 = distinct !{!46, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !47 = distinct !{!47, !48, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !48 = distinct !{!48, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !49 = distinct !{!49, !50, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !50 = distinct !{!50, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !51 = distinct !{!51, !52, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !52 = distinct !{!52, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !53 = distinct !{!53, !54, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !54 = distinct !{!54, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !55 = !{!56, !38, i64 4} !56 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !57, i64 0, !38, i64 4} !57 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !58 = !{!59, !61, !63, !65, !67} !59 = distinct !{!59, !60, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !60 = distinct !{!60, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !61 = distinct !{!61, !62, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !62 = distinct !{!62, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !63 = distinct !{!63, !64, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !64 = distinct !{!64, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !65 = distinct !{!65, !66, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !66 = distinct !{!66, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !67 = distinct !{!67, !68, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !68 = distinct !{!68, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !69 = !{!70, !72, !74, !76, !78} !70 = distinct !{!70, !71, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !71 = distinct !{!71, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !72 = distinct !{!72, !73, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !73 = distinct !{!73, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !74 = distinct !{!74, !75, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !75 = distinct !{!75, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !76 = distinct !{!76, !77, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !77 = distinct !{!77, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !78 = distinct !{!78, !79, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !79 = distinct !{!79, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !80 = !{!81, !81, i64 0} !81 = !{!"vtable pointer", !7, i64 0} !82 = !{!83} !83 = distinct !{!83, !84, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m: argument 0"} !84 = distinct !{!84, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERSA_m"} !85 = !{i8 0, i8 2} !86 = !{} !87 = distinct !{!87, !26} !88 = !{!89, !38, i64 12} !89 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_29_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS2_IcEEEEEEPS7_EEEE", !90, i64 0, !38, i64 12} !90 = !{!"_ZTSNSt3__229_AllocatorDestroyRangeReverseINS_9allocatorINS_12basic_stringIcNS_11char_traitsIcEENS1_IcEEEEEEPS6_EE", !5, i64 0, !5, i64 4, !5, i64 8} !91 = !{i64 0, i64 4, !31, i64 4, i64 4, !92, i64 8, i64 4, !92, i64 11, i64 4, !92, i64 0, i64 11, !11, i64 11, i64 0, !11, i64 11, i64 1, !11, i64 11, i64 1, !11, i64 0, i64 12, !11} !92 = !{!8, !8, i64 0} !93 = !{!90, !5, i64 0} !94 = !{!90, !5, i64 8} !95 = !{!90, !5, i64 4} !96 = distinct !{!96, !26} !97 = !{!37, !5, i64 0} !98 = distinct !{!98, !26} !99 = !{!100} !100 = distinct !{!100, !101, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !101 = distinct !{!101, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !102 = !{!57, !5, i64 0}
(module $code_154.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func)) (type (;5;) (func (param i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32 i32))) (type (;7;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "memcpy" (func $memcpy (type 5))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ (type 6))) (import "env" "memmove" (func $memmove (type 5))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ (type 3))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 2))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 4)) (func $int_to_mini_romank_int_ (type 7) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 224 i32.sub local.tee 3 global.set $__stack_pointer local.get 0 global.get $__memory_base local.tee 0 i32.const 39 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 9 local.get 3 i32.const 48 i32.add local.get 0 i32.const 14 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.tee 4 i32.const 12 i32.add local.get 0 i32.const 13 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 24 i32.add local.get 0 i32.const 35 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 36 i32.add local.get 0 i32.const 34 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 48 i32.add local.get 0 i32.const 38 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 60 i32.add local.get 0 i32.const 37 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 72 i32.add local.get 0 i32.const 17 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 84 i32.add local.get 0 i32.const 16 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 96 i32.add local.get 0 i32.const 1 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 108 i32.add local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 120 i32.add local.get 0 i32.const 4 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 132 i32.add local.get 0 i32.const 3 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 4 i32.const 144 i32.add local.get 0 i32.const 19 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ drop local.get 3 i32.const 13 i32.store offset=208 local.get 3 local.get 4 i32.store offset=204 local.get 3 local.get 3 i64.load offset=204 align=4 i64.store offset=16 local.get 4 i32.const 156 i32.add local.set 8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 10 global.set $__stack_pointer local.get 3 i32.const 212 i32.add local.tee 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 10 local.get 0 i32.store offset=8 local.get 3 i32.load offset=20 local.tee 2 if ;; label = @1 local.get 2 i32.const 357913942 i32.ge_u if ;; label = @2 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end local.get 2 i32.const 357913942 i32.ge_u if ;; label = @2 call $std::__throw_bad_array_new_length_abi:v160006___ unreachable end local.get 0 local.get 2 i32.const 12 i32.mul local.tee 5 local.tee 6 call $operator_new_unsigned_long_ local.tee 7 i32.store offset=4 local.get 0 local.get 7 i32.store local.get 0 local.get 6 local.get 7 i32.add i32.store offset=8 local.get 0 local.get 3 i32.load offset=16 local.tee 6 local.get 5 local.get 6 i32.add local.get 2 call $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_ end local.get 10 i32.const 1 i32.store8 offset=12 local.get 10 i32.const 8 i32.add local.tee 2 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 2 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ end local.get 10 i32.const 16 i32.add global.set $__stack_pointer loop ;; label = @1 local.get 8 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.tee 8 local.get 4 i32.ne br_if 0 (;@1;) end local.get 3 i32.const 48 i32.add local.tee 2 global.get $__memory_base i32.const 40 i32.add i32.const 52 call $memcpy drop local.get 3 i32.const 13 i32.store offset=32 local.get 3 local.get 2 i32.store offset=28 local.get 3 local.get 3 i64.load offset=28 align=4 i64.store offset=8 global.get $__stack_pointer i32.const 16 i32.sub local.tee 8 global.set $__stack_pointer local.get 3 i32.const 36 i32.add local.tee 2 i32.const 0 i32.store offset=8 local.get 2 i64.const 0 i64.store align=4 local.get 8 local.get 2 i32.store offset=8 local.get 3 i32.load offset=12 local.tee 6 if ;; label = @1 local.get 6 i32.const 1073741824 i32.ge_u if ;; label = @2 call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const unreachable end local.get 6 i32.const 1073741824 i32.ge_u if ;; label = @2 call $std::__throw_bad_array_new_length_abi:v160006___ unreachable end local.get 2 local.get 6 i32.const 2 i32.shl local.tee 6 local.tee 7 call $operator_new_unsigned_long_ local.tee 10 i32.store offset=4 local.get 2 local.get 10 i32.store local.get 2 local.get 7 local.get 10 i32.add i32.store offset=8 local.get 2 local.get 2 i32.load offset=4 local.get 3 i32.load offset=8 local.get 6 call $memmove local.get 6 i32.add i32.store offset=4 end local.get 0 local.set 6 local.get 8 i32.const 1 i32.store8 offset=12 local.get 8 i32.const 8 i32.add local.tee 0 i32.load8_u offset=4 i32.eqz if ;; label = @1 local.get 0 call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ end local.get 8 i32.const 16 i32.add global.set $__stack_pointer i32.const 0 local.set 0 loop ;; label = @1 local.get 1 i32.const 0 i32.gt_s if ;; label = @2 local.get 0 i32.const 2 i32.shl local.tee 4 local.get 2 i32.load i32.add i32.load local.set 8 loop ;; label = @3 local.get 1 local.get 8 i32.ge_s if ;; label = @4 local.get 6 i32.load local.get 0 i32.const 12 i32.mul i32.add local.set 11 global.get $__stack_pointer i32.const 16 i32.sub local.tee 8 global.set $__stack_pointer block (result i32) ;; label = @5 local.get 3 i32.const 48 i32.add local.set 5 local.get 11 i32.load offset=4 local.get 11 i32.load8_u offset=11 local.tee 7 local.get 7 i32.extend8_s i32.const 0 i32.lt_s select local.tee 13 local.get 9 i32.load offset=4 local.get 9 i32.load8_u offset=11 local.tee 7 local.get 7 i32.extend8_s i32.const 0 i32.lt_s select local.tee 14 i32.add local.tee 12 i32.const 2147483632 i32.lt_u if ;; label = @6 local.get 12 i32.const 10 i32.le_u if ;; label = @7 local.get 5 i32.const 0 i32.store offset=8 local.get 5 i64.const 0 i64.store align=4 local.get 5 local.get 12 i32.store8 offset=11 local.get 5 br 2 (;@5;) end local.get 12 i32.const 15 i32.or i32.const 1 i32.add local.tee 10 call $operator_new_unsigned_long_ local.set 7 local.get 5 local.get 12 i32.store offset=4 local.get 5 local.get 7 i32.store local.get 5 local.get 10 i32.const -2147483648 i32.or i32.store offset=8 local.get 5 br 1 (;@5;) end global.get $__memory_base i32.const 21 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable end local.tee 7 i32.load local.get 7 local.get 7 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 9 i32.load local.get 9 local.get 9 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 14 call $memmove local.get 14 i32.add local.get 11 i32.load local.get 11 local.get 11 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 13 call $memmove local.get 13 i32.add i32.const 0 i32.store8 local.get 8 i32.const 16 i32.add global.set $__stack_pointer local.get 9 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @5 local.get 9 i32.load call $operator_delete_void*_ end local.get 9 local.get 5 i64.load align=4 i64.store align=4 local.get 9 local.get 5 i32.load offset=8 i32.store offset=8 local.get 5 i32.const 0 i32.store8 offset=11 local.get 5 i32.const 0 i32.store8 local.get 5 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 1 local.get 2 i32.load local.get 4 i32.add i32.load local.tee 8 i32.sub local.set 1 br 1 (;@3;) end end local.get 0 local.get 1 i32.const 0 i32.gt_s i32.add local.set 0 br 1 (;@1;) end end global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 2 i32.store offset=12 local.get 0 i32.const 12 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ local.get 0 i32.const 16 i32.add global.set $__stack_pointer global.get $__stack_pointer i32.const 16 i32.sub local.tee 0 global.set $__stack_pointer local.get 0 local.get 6 i32.store offset=12 local.get 0 i32.const 12 i32.add call $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ local.get 0 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.const 224 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1 (type 6) (param i32 i32 i32 i32) (local i32) local.get 0 i32.load offset=4 local.set 4 global.get $__stack_pointer i32.const 32 i32.sub local.tee 3 global.set $__stack_pointer local.get 3 local.get 4 i32.store offset=28 local.get 3 local.get 4 i32.store offset=24 local.get 3 local.get 0 i32.const 8 i32.add i32.store offset=8 local.get 3 local.get 3 i32.const 28 i32.add i32.store offset=16 local.get 3 local.get 3 i32.const 24 i32.add i32.store offset=12 loop ;; label = @1 local.get 1 local.get 2 i32.ne if ;; label = @2 local.get 4 local.get 1 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 3 local.get 3 i32.load offset=28 i32.const 12 i32.add local.tee 4 i32.store offset=28 local.get 1 i32.const 12 i32.add local.set 1 br 1 (;@1;) end end local.get 3 i32.const 1 i32.store8 offset=20 local.get 3 i32.load8_u offset=20 i32.eqz if ;; label = @1 local.get 3 i32.load offset=8 drop local.get 3 i32.load offset=16 i32.load local.set 1 local.get 3 i32.load offset=12 i32.load local.set 2 loop ;; label = @2 local.get 1 local.get 2 i32.ne if ;; label = @3 local.get 1 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 1 br 1 (;@2;) end end end local.get 3 i32.const 32 i32.add global.set $__stack_pointer local.get 0 local.get 4 i32.store offset=4) (func $std::__2::vector<int__std::__2::allocator<int>>::__destroy_vector::operator___abi:v160006___ (type 2) (param i32) (local i32) local.get 0 i32.load local.tee 1 i32.load local.tee 0 if ;; label = @1 local.get 1 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__destroy_vector::operator___abi:v160006___ (type 2) (param i32) (local i32 i32 i32) local.get 0 i32.load local.tee 1 i32.load if ;; label = @1 local.get 1 i32.load local.set 3 local.get 1 i32.load offset=4 local.set 2 loop ;; label = @2 local.get 2 local.get 3 i32.ne if ;; label = @3 local.get 2 i32.const 12 i32.sub call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ local.set 2 br 1 (;@2;) end end local.get 1 local.get 3 i32.store offset=4 local.get 0 i32.load i32.load call $operator_delete_void*_ end) (func $std::__2::__throw_length_error_abi:v160006__char_const*_ (type 2) (param i32) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 4 local.get 0 call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 4 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (func $std::__throw_bad_array_new_length_abi:v160006___ (type 4) (local i32 i32) global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable) (func $std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__throw_length_error_abi:v160006____const (type 4) global.get $__memory_base i32.const 6 i32.add call $std::__2::__throw_length_error_abi:v160006__char_const*_ unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) local.get 1 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @1 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_copy_ctor_external_char_const*__unsigned_long_ local.get 0) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z18int_to_mini_romanki" (func $int_to_mini_romank_int_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE18__construct_at_endIPKS6_Li0EEEvT_SC_m" (func $void_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>::__construct_at_end<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__0>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const*__unsigned_long_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (data $.rodata (global.get $__memory_base) "ix\00iv\00vector\00cm\00xl\00i\00basic_string\00cd\00xc\00\e8\03\00\00\84\03\00\00\f4\01\00\00\90\01\00\00d\00\00\00Z\00\00\002\00\00\00(\00\00\00\0a\00\00\00\09\00\00\00\05\00\00\00\04\00\00\00\01\00\00\00"))
CPP/157
/* Given the lengths of the three sides of a triangle. Return true if the three sides form a right-angled triangle, false otherwise. A right-angled triangle is a triangle in which one angle is right angle or 90 degree. Example: right_angle_triangle(3, 4, 5) == true right_angle_triangle(1, 2, 3) == false */ #include<stdio.h> #include<math.h> using namespace std; bool right_angle_triangle(float a,float b,float c){
#include<stdio.h> #include<math.h> using namespace std; #include<algorithm> #include<stdlib.h> bool right_angle_triangle(float a,float b,float c){
if (abs(a*a+b*b-c*c)<1e-4 or abs(a*a+c*c-b*b)<1e-4 or abs(b*b+c*c-a*a)<1e-4) return true; return false; }
#undef NDEBUG #include<assert.h> int main(){ assert (right_angle_triangle(3, 4, 5) == true); assert (right_angle_triangle(1, 2, 3) == false); assert (right_angle_triangle(10, 6, 8) == true); assert (right_angle_triangle(2, 2, 2) == false); assert (right_angle_triangle(7, 24, 25) == true); assert (right_angle_triangle(10, 5, 7) == false); assert (right_angle_triangle(5, 12, 13) == true); assert (right_angle_triangle(15, 8, 17) == true); assert (right_angle_triangle(48, 55, 73) == true); assert (right_angle_triangle(1, 1, 1) == false); assert (right_angle_triangle(2, 2, 10) == false); }
#undef NDEBUG #include<assert.h> int main(){ assert (right_angle_triangle(3, 4, 5) == true); assert (right_angle_triangle(1, 2, 3) == false); }
; ModuleID = 'c_code/code_155.cpp' source_filename = "c_code/code_155.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" ; Function Attrs: minsize mustprogress nofree nosync nounwind optsize willreturn memory(none) define noundef zeroext i1 @_Z20right_angle_trianglefff(float noundef %0, float noundef %1, float noundef %2) local_unnamed_addr #0 { %4 = fmul float %1, %1 %5 = tail call float @llvm.fmuladd.f32(float %0, float %0, float %4) %6 = fneg float %2 %7 = tail call float @llvm.fmuladd.f32(float %6, float %2, float %5) %8 = tail call float @llvm.fabs.f32(float %7) %9 = fpext float %8 to double %10 = fcmp olt double %9, 1.000000e-04 br i1 %10, label %27, label %11 11: ; preds = %3 %12 = fmul float %2, %2 %13 = tail call float @llvm.fmuladd.f32(float %0, float %0, float %12) %14 = fneg float %1 %15 = tail call float @llvm.fmuladd.f32(float %14, float %1, float %13) %16 = tail call float @llvm.fabs.f32(float %15) %17 = fpext float %16 to double %18 = fcmp olt double %17, 1.000000e-04 br i1 %18, label %27, label %19 19: ; preds = %11 %20 = tail call float @llvm.fmuladd.f32(float %1, float %1, float %12) %21 = fneg float %0 %22 = tail call float @llvm.fmuladd.f32(float %21, float %0, float %20) %23 = tail call float @llvm.fabs.f32(float %22) %24 = fpext float %23 to double %25 = fcmp olt double %24, 1.000000e-04 br i1 %25, label %27, label %26 26: ; preds = %19 br label %27 27: ; preds = %3, %11, %19, %26 %28 = phi i1 [ false, %26 ], [ true, %19 ], [ true, %11 ], [ true, %3 ] ret i1 %28 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare float @llvm.fmuladd.f32(float, float, float) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare float @llvm.fabs.f32(float) #1 attributes #0 = { minsize mustprogress nofree nosync nounwind optsize willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"}
(module $code_155.wasm (type (;0;) (func)) (type (;1;) (func (param f32 f32 f32) (result i32))) (func $__wasm_call_ctors (type 0)) (func $right_angle_triangle_float__float__float_ (type 1) (param f32 f32 f32) (result i32) (local i32) i32.const 1 local.set 3 local.get 0 local.get 0 f32.mul local.tee 0 local.get 1 local.get 1 f32.mul local.tee 1 f32.add local.get 2 local.get 2 f32.mul local.tee 2 f32.sub f32.abs f64.promote_f32 f64.const 0x1.a36e2eb1c432dp-14 (;=0.0001;) f64.lt local.get 0 local.get 2 f32.add local.get 1 f32.sub f32.abs f64.promote_f32 f64.const 0x1.a36e2eb1c432dp-14 (;=0.0001;) f64.lt i32.or local.get 1 local.get 2 f32.add local.get 0 f32.sub f32.abs f64.promote_f32 f64.const 0x1.a36e2eb1c432dp-14 (;=0.0001;) f64.lt i32.or) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z20right_angle_trianglefff" (func $right_angle_triangle_float__float__float_)))
CPP/158
/* Write a function that accepts a vector of strings. The vector contains different words. Return the word with maximum number of unique characters. If multiple strings have maximum number of unique characters, return the one which comes first in lexicographical order. find_max({"name", "of", 'string"}) == 'string" find_max({"name", "enam", "game"}) == "enam" find_max({"aaaaaaa", "bb" ,"cc"}) == "aaaaaaa" */ #include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; string find_max(vector<string> words){
#include<stdio.h> #include<vector> #include<string> #include<algorithm> using namespace std; #include<math.h> #include<stdlib.h> string find_max(vector<string> words){
string max=""; int maxu=0; for (int i=0;i<words.size();i++) { string unique=""; for (int j=0;j<words[i].length();j++) if (find(unique.begin(),unique.end(),words[i][j])==unique.end()) unique=unique+words[i][j]; if (unique.length()>maxu or (unique.length()==maxu and words[i]<max)) { max=words[i]; maxu=unique.length(); } } return max; }
#undef NDEBUG #include<assert.h> int main(){ assert ((find_max({"name", "of", "string"}) == "string")); assert ((find_max({"name", "enam", "game"}) == "enam")); assert ((find_max({"aaaaaaa", "bb", "cc"}) == "aaaaaaa")); assert ((find_max({"abc", "cba"}) == "abc")); assert ((find_max({"play", "this", "game", "of","footbott"}) == "footbott")); assert ((find_max({"we", "are", "gonna", "rock"}) == "gonna")); assert ((find_max({"we", "are", "a", "mad", "nation"}) == "nation")); assert ((find_max({"this", "is", "a", "prrk"}) == "this")); assert ((find_max({"b"}) == "b")); assert ((find_max({"play", "play", "play"}) == "play")); }
#undef NDEBUG #include<assert.h> int main(){ assert ((find_max({"name", "of", "string"}) == "string")); assert ((find_max({"name", "enam", "game"}) == "enam")); assert ((find_max({"aaaaaaa", "bb", "cc"}) == "aaaaaaa")); }
; ModuleID = 'c_code/code_156.cpp' source_filename = "c_code/code_156.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } %"class.std::__2::basic_string_view" = type { ptr, i32 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_ = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_ = comdat any $_ZNSt3__211char_traitsIcE7compareEPKcS3_m = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize optsize define void @_Z8find_maxNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE(ptr noalias nonnull sret(%"class.std::__2::basic_string") align 4 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 %5 = tail call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull @.str) #18 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %1, i32 0, i32 1 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %3, i32 0, i32 2 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %3, i32 0, i32 1 br label %9 9: ; preds = %87, %2 %10 = phi i32 [ 0, %2 ], [ %90, %87 ] %11 = phi i32 [ 0, %2 ], [ %88, %87 ] %12 = load ptr, ptr %6, align 4, !tbaa !3 %13 = load ptr, ptr %1, align 4, !tbaa !10 %14 = ptrtoint ptr %12 to i32 %15 = ptrtoint ptr %13 to i32 %16 = sub i32 %14, %15 %17 = sdiv exact i32 %16, 12 %18 = icmp ult i32 %10, %17 br i1 %18, label %19, label %91 19: ; preds = %9 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #19 %20 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #18 br label %21 21: ; preds = %70, %19 %22 = phi i32 [ 0, %19 ], [ %71, %70 ] %23 = load ptr, ptr %1, align 4, !tbaa !10 %24 = getelementptr inbounds %"class.std::__2::basic_string", ptr %23, i32 %10 %25 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %24, i32 0, i32 2 %26 = load i8, ptr %25, align 1 %27 = icmp slt i8 %26, 0 %28 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %24, i32 0, i32 1 %29 = load i32, ptr %28, align 4 %30 = zext i8 %26 to i32 %31 = select i1 %27, i32 %29, i32 %30 %32 = icmp ult i32 %22, %31 %33 = load i32, ptr %8, align 4 %34 = load i8, ptr %7, align 1 %35 = icmp slt i8 %34, 0 br i1 %32, label %40, label %36 36: ; preds = %21 %37 = zext i8 %34 to i32 %38 = select i1 %35, i32 %33, i32 %37 %39 = icmp ugt i32 %38, %11 br i1 %39, label %78, label %72 40: ; preds = %21 %41 = load ptr, ptr %3, align 4 %42 = select i1 %35, ptr %41, ptr %3 %43 = zext i8 %34 to i32 %44 = select i1 %35, i32 %33, i32 %43 %45 = getelementptr inbounds i8, ptr %42, i32 %44 %46 = load ptr, ptr %24, align 4 %47 = select i1 %27, ptr %46, ptr %24 %48 = getelementptr inbounds i8, ptr %47, i32 %22 %49 = call ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %42, ptr %45, ptr noundef nonnull align 1 dereferenceable(1) %48) #18 %50 = load i8, ptr %7, align 1 %51 = icmp slt i8 %50, 0 %52 = load ptr, ptr %3, align 4 %53 = select i1 %51, ptr %52, ptr %3 %54 = load i32, ptr %8, align 4 %55 = zext i8 %50 to i32 %56 = select i1 %51, i32 %54, i32 %55 %57 = getelementptr inbounds i8, ptr %53, i32 %56 %58 = icmp eq ptr %49, %57 br i1 %58, label %59, label %70 59: ; preds = %40 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #19 %60 = load ptr, ptr %1, align 4, !tbaa !10 %61 = getelementptr inbounds %"class.std::__2::basic_string", ptr %60, i32 %10 %62 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %61, i32 0, i32 2 %63 = load i8, ptr %62, align 1 %64 = icmp slt i8 %63, 0 %65 = load ptr, ptr %61, align 4 %66 = select i1 %64, ptr %65, ptr %61 %67 = getelementptr inbounds i8, ptr %66, i32 %22 %68 = load i8, ptr %67, align 1, !tbaa !11 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %68) #18 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #20 %69 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #19 br label %70 70: ; preds = %40, %59 %71 = add nuw nsw i32 %22, 1 br label %21, !llvm.loop !12 72: ; preds = %36 %73 = icmp eq i32 %38, %11 br i1 %73, label %74, label %87 74: ; preds = %72 %75 = call noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %0) #20 br i1 %75, label %76, label %87 76: ; preds = %74 %77 = load ptr, ptr %1, align 4, !tbaa !10 br label %78 78: ; preds = %76, %36 %79 = phi ptr [ %77, %76 ], [ %23, %36 ] %80 = getelementptr inbounds %"class.std::__2::basic_string", ptr %79, i32 %10 %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %80) #18 %82 = load i8, ptr %7, align 1 %83 = icmp slt i8 %82, 0 %84 = load i32, ptr %8, align 4 %85 = zext i8 %82 to i32 %86 = select i1 %83, i32 %84, i32 %85 br label %87 87: ; preds = %78, %74, %72 %88 = phi i32 [ %86, %78 ], [ %11, %74 ], [ %11, %72 ] %89 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #20 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #19 %90 = add nuw nsw i32 %10, 1 br label %9, !llvm.loop !14 91: ; preds = %9 ret void } ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #20 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #18 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden ptr @_ZNSt3__24findB7v160006INS_11__wrap_iterIPcEEcEET_S4_S4_RKT0_(ptr %0, ptr %1, ptr noundef nonnull align 1 dereferenceable(1) %2) local_unnamed_addr #2 comdat { %4 = ptrtoint ptr %0 to i32 %5 = ptrtoint ptr %1 to i32 %6 = load i8, ptr %2, align 1 %7 = sub i32 %5, %4 %8 = getelementptr i8, ptr %0, i32 %7 br label %9 9: ; preds = %15, %3 %10 = phi ptr [ %0, %3 ], [ %16, %15 ] %11 = icmp eq ptr %10, %1 br i1 %11, label %17, label %12 12: ; preds = %9 %13 = load i8, ptr %10, align 1, !tbaa !11 %14 = icmp eq i8 %13, %6 br i1 %14, label %17, label %15 15: ; preds = %12 %16 = getelementptr inbounds i8, ptr %10, i32 1 br label %9, !llvm.loop !15 17: ; preds = %12, %9 %18 = phi ptr [ %10, %12 ], [ %8, %9 ] ret ptr %18 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #19 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #18 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #19 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !16 store i8 %2, ptr %24, align 1, !tbaa !11 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !11 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2ltB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EESB_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = tail call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #20 %4 = icmp slt i32 %3, 0 ret i1 %4 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #4 comdat { %3 = icmp eq ptr %0, %1 br i1 %3, label %26, label %4 4: ; preds = %2 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %9 = load i8, ptr %8, align 1 %10 = icmp slt i8 %9, 0 br i1 %7, label %18, label %11 11: ; preds = %4 br i1 %10, label %13, label %12 12: ; preds = %11 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !27 br label %26 13: ; preds = %11 %14 = load ptr, ptr %1, align 4 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %16 = load i32, ptr %15, align 4 %17 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %14, i32 noundef %16) #18 br label %26 18: ; preds = %4 %19 = load ptr, ptr %1, align 4 %20 = select i1 %10, ptr %19, ptr %1 %21 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %22 = load i32, ptr %21, align 4 %23 = zext i8 %9 to i32 %24 = select i1 %10, i32 %22, i32 %23 %25 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %20, i32 noundef %24) #18 br label %26 26: ; preds = %2, %12, %18, %13 %27 = phi ptr [ %25, %18 ], [ %17, %13 ], [ %0, %12 ], [ %0, %2 ] ret ptr %27 } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #5 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #6 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #21 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #19 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #18 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #22 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #18 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !31 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #10 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #12 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #21 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #23 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !11 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !11 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #14 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !11 tail call void @_ZdlPv(ptr noundef %7) #24 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !27 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !11 ret void } ; Function Attrs: inlinehint minsize nounwind optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareB7v160006ERKS5_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #3 comdat { %3 = alloca %"class.std::__2::basic_string_view", align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #19 tail call void @llvm.experimental.noalias.scope.decl(metadata !33) %4 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %5 = load i8, ptr %4, align 1, !noalias !33 %6 = icmp slt i8 %5, 0 %7 = load ptr, ptr %1, align 4, !noalias !33 %8 = select i1 %6, ptr %7, ptr %1 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %10 = load i32, ptr %9, align 4, !noalias !33 %11 = zext i8 %5 to i32 %12 = select i1 %6, i32 %10, i32 %11 store ptr %8, ptr %3, align 4, !tbaa !36, !alias.scope !33 %13 = getelementptr inbounds %"class.std::__2::basic_string_view", ptr %3, i32 0, i32 1 store i32 %12, ptr %13, align 4, !tbaa !38, !alias.scope !33 %14 = icmp eq i32 %12, 0 %15 = icmp ne ptr %8, null %16 = or i1 %15, %14 tail call void @llvm.assume(i1 %16) %17 = call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(8) %3) #20 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #19 ret i32 %17 } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) local_unnamed_addr #2 comdat { %3 = load i32, ptr %1, align 4 %4 = getelementptr inbounds i8, ptr %1, i32 4 %5 = load i32, ptr %4, align 4 %6 = inttoptr i32 %3 to ptr %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %8 = load i8, ptr %7, align 1 %9 = icmp slt i8 %8, 0 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %11 = load i32, ptr %10, align 4 %12 = zext i8 %8 to i32 %13 = select i1 %9, i32 %11, i32 %12 %14 = load ptr, ptr %0, align 4 %15 = select i1 %9, ptr %14, ptr %0 %16 = icmp ult i32 %5, %13 %17 = tail call i32 @llvm.umin.i32(i32 %5, i32 %13) %18 = tail call noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %15, ptr noundef %6, i32 noundef %17) #20 %19 = icmp eq i32 %18, 0 %20 = icmp ult i32 %13, %5 %21 = zext i1 %16 to i32 %22 = select i1 %20, i32 -1, i32 %21 %23 = select i1 %19, i32 %22, i32 %18 ret i32 %23 } ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr noundef i32 @_ZNSt3__211char_traitsIcE7compareEPKcS3_m(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #15 comdat { %4 = icmp eq i32 %2, 0 br i1 %4, label %7, label %5 5: ; preds = %3 %6 = tail call i32 @memcmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #20 br label %7 7: ; preds = %3, %5 %8 = phi i32 [ %6, %5 ], [ 0, %3 ] ret i32 %8 } ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @memcmp(ptr nocapture noundef, ptr nocapture noundef, i32 noundef) local_unnamed_addr #13 ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: minsize optsize declare noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #0 ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) declare void @llvm.experimental.noalias.scope.decl(metadata) #16 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umin.i32(i32, i32) #17 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #7 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #15 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #16 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) } attributes #17 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #18 = { minsize optsize } attributes #19 = { nounwind } attributes #20 = { minsize nounwind optsize } attributes #21 = { minsize noreturn optsize } attributes #22 = { noreturn } attributes #23 = { builtin minsize optsize allocsize(0) } attributes #24 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 4} !4 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 0} !11 = !{!6, !6, i64 0} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.mustprogress"} !14 = distinct !{!14, !13} !15 = distinct !{!15, !13} !16 = !{!17, !19, !21, !23, !25} !17 = distinct !{!17, !18, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !18 = distinct !{!18, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !19 = distinct !{!19, !20, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !20 = distinct !{!20, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !21 = distinct !{!21, !22, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !22 = distinct !{!22, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !23 = distinct !{!23, !24, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !24 = distinct !{!24, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !25 = distinct !{!25, !26, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !26 = distinct !{!26, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !27 = !{i64 0, i64 4, !28, i64 4, i64 4, !29, i64 8, i64 4, !29, i64 11, i64 4, !29, i64 0, i64 11, !11, i64 11, i64 0, !11, i64 11, i64 1, !11, i64 11, i64 1, !11, i64 0, i64 12, !11} !28 = !{!5, !5, i64 0} !29 = !{!30, !30, i64 0} !30 = !{!"long", !6, i64 0} !31 = !{!32, !32, i64 0} !32 = !{!"vtable pointer", !7, i64 0} !33 = !{!34} !34 = distinct !{!34, !35, !"_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEcvNS_17basic_string_viewIcS2_EEB7v160006Ev: argument 0"} !35 = distinct !{!35, !"_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEcvNS_17basic_string_viewIcS2_EEB7v160006Ev"} !36 = !{!37, !5, i64 0} !37 = !{!"_ZTSNSt3__217basic_string_viewIcNS_11char_traitsIcEEEE", !5, i64 0, !30, i64 4} !38 = !{!37, !30, i64 4}
(module $code_156.wasm (type (;0;) (func (param i32 i32) (result i32))) (type (;1;) (func (param i32 i32 i32) (result i32))) (type (;2;) (func (param i32) (result i32))) (type (;3;) (func (param i32 i32 i32))) (type (;4;) (func (param i32))) (type (;5;) (func)) (type (;6;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 2))) (import "env" "strlen" (func $strlen (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 3))) (import "env" "memmove" (func $memmove (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ (type 1))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 2))) (import "env" "__cxa_throw" (func $__cxa_throw (type 3))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 0))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 2))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_" (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const (type 0))) (import "env" "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ (type 1))) (import "env" "memcmp" (func $memcmp (type 1))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $find_max_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_ (type 6) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 5 global.set $__stack_pointer local.get 0 global.get $__memory_base i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 7 loop ;; label = @1 local.get 1 i32.load offset=4 local.get 1 i32.load i32.sub i32.const 12 i32.div_s local.get 12 i32.gt_u if ;; label = @2 i32.const 0 local.set 6 local.get 5 i32.const 20 i32.add global.get $__memory_base i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 0 loop ;; label = @3 local.get 5 i32.load8_u offset=31 local.tee 4 i32.extend8_s local.set 2 local.get 5 i32.load offset=24 local.set 10 local.get 1 i32.load local.tee 8 local.get 12 i32.const 12 i32.mul local.tee 11 i32.add local.tee 3 i32.load offset=4 local.get 3 i32.load8_u offset=11 local.tee 9 local.get 9 i32.extend8_s i32.const 0 i32.lt_s local.tee 9 select local.get 6 i32.le_u if ;; label = @4 block ;; label = @5 local.get 7 local.get 13 local.get 10 local.get 4 local.get 2 i32.const 0 i32.lt_s select local.tee 2 i32.ge_u if (result i32) ;; label = @6 local.get 2 local.get 13 i32.ne br_if 1 (;@5;) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 7 i32.load local.set 6 local.get 2 local.get 7 i32.load offset=4 local.get 7 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s local.tee 4 select i32.store offset=12 local.get 2 local.get 6 local.get 7 local.get 4 select i32.store offset=8 local.get 3 local.get 2 i32.const 8 i32.add call $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const local.get 2 i32.const 16 i32.add global.set $__stack_pointer i32.const 31 i32.shr_u i32.eqz br_if 1 (;@5;) local.get 1 i32.load else local.get 8 end local.get 11 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_ drop local.get 5 i32.load offset=24 local.get 5 i32.load8_u offset=31 local.tee 2 local.get 2 i32.extend8_s i32.const 0 i32.lt_s select local.set 13 end local.get 0 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 12 i32.const 1 i32.add local.set 12 br 3 (;@1;) end block (result i32) ;; label = @4 local.get 0 i32.load local.get 0 local.get 2 i32.const 0 i32.lt_s local.tee 8 select local.set 2 local.get 2 local.get 10 local.get 4 local.get 8 select i32.add local.set 4 local.get 3 i32.load local.get 3 local.get 9 select local.get 6 i32.add i32.load8_u local.set 3 loop ;; label = @5 block ;; label = @6 local.get 2 local.get 4 i32.ne if (result i32) ;; label = @7 local.get 2 i32.load8_u local.get 3 i32.ne br_if 1 (;@6;) local.get 2 else local.get 4 end br 2 (;@4;) end local.get 2 i32.const 1 i32.add local.set 2 br 0 (;@5;) end unreachable end local.get 0 i32.load local.get 0 local.get 5 i32.load8_u offset=31 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 5 i32.load offset=24 local.get 2 local.get 3 select i32.add i32.eq if ;; label = @4 local.get 1 i32.load local.get 11 i32.add local.tee 2 i32.load local.get 2 local.get 2 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 6 i32.add i32.load8_s local.set 10 global.get $__stack_pointer i32.const 16 i32.sub local.tee 11 global.set $__stack_pointer block (result i32) ;; label = @5 local.get 5 i32.const 8 i32.add local.set 2 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 3 local.get 3 i32.extend8_s i32.const 0 i32.lt_s select local.tee 4 i32.const 1 i32.add local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @6 local.get 3 i32.const 10 i32.le_u if ;; label = @7 local.get 2 i32.const 0 i32.store offset=8 local.get 2 i64.const 0 i64.store align=4 local.get 2 local.get 3 i32.store8 offset=11 local.get 2 br 2 (;@5;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 8 call $operator_new_unsigned_long_ local.set 9 local.get 2 local.get 3 i32.store offset=4 local.get 2 local.get 9 i32.store local.get 2 local.get 8 i32.const -2147483648 i32.or i32.store offset=8 local.get 2 br 1 (;@5;) end global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 5 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 5 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.tee 3 i32.load local.get 3 local.get 3 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 0 i32.load local.get 0 local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 4 call $memmove local.get 4 i32.add local.tee 3 local.get 10 i32.store8 local.get 3 i32.const 0 i32.store8 offset=1 local.get 11 i32.const 16 i32.add global.set $__stack_pointer local.get 0 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @5 local.get 0 i32.load call $operator_delete_void*_ end local.get 0 local.get 2 i64.load align=4 i64.store align=4 local.get 0 local.get 2 i32.load offset=8 i32.store offset=8 local.get 2 i32.const 0 i32.store8 offset=11 local.get 2 i32.const 0 i32.store8 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop end local.get 6 i32.const 1 i32.add local.set 6 br 0 (;@3;) end unreachable end end local.get 5 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 0) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1 (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 0 local.get 1 i32.ne if (result i32) ;; label = @1 local.get 1 i32.load8_u offset=11 local.tee 3 i32.extend8_s local.set 2 local.get 0 i32.load8_s offset=11 i32.const 0 i32.ge_s if ;; label = @2 local.get 2 i32.const 0 i32.ge_s if ;; label = @3 local.get 0 local.get 1 i64.load align=4 i64.store align=4 local.get 0 local.get 1 i32.load offset=8 i32.store offset=8 local.get 0 return end local.get 0 local.get 1 i32.load local.get 1 i32.load offset=4 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<true>_char_const*__unsigned_long_ return end local.get 0 local.get 1 i32.load local.get 1 local.get 2 i32.const 0 i32.lt_s local.tee 0 select local.get 1 i32.load offset=4 local.get 3 local.get 0 select call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>&_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__assign_no_alias<false>_char_const*__unsigned_long_ else local.get 0 end) (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const.1 (type 0) (param i32 i32) (result i32) (local i32 i32) local.get 0 i32.load local.get 0 local.get 0 i32.load8_u offset=11 local.tee 2 i32.extend8_s i32.const 0 i32.lt_s local.tee 3 select local.get 1 i32.load local.get 1 i32.load offset=4 local.tee 1 local.get 0 i32.load offset=4 local.get 2 local.get 3 select local.tee 0 local.get 0 local.get 1 i32.gt_u local.tee 2 select call $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_ local.tee 3 i32.const -1 local.get 2 local.get 0 local.get 1 i32.lt_u select local.get 3 select) (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1 (type 1) (param i32 i32 i32) (result i32) local.get 2 i32.eqz if ;; label = @1 i32.const 0 return end local.get 0 local.get 1 local.get 2 call $memcmp) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z8find_maxNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE" (func $find_max_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::operator=_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&_.1)) (export "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareINS_17basic_string_viewIcS2_EEEENS_9enable_ifIXsr33__can_be_converted_to_string_viewIcS2_T_EE5valueEiE4typeERKSA_" (func $std::__2::enable_if<__can_be_converted_to_string_view<char__std::__2::char_traits<char>__std::__2::basic_string_view<char__std::__2::char_traits<char>>>::value__int>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare<std::__2::basic_string_view<char__std::__2::char_traits<char>>>_std::__2::basic_string_view<char__std::__2::char_traits<char>>_const&__const.1)) (export "_ZNSt3__211char_traitsIcE7compareEPKcS3_m" (func $std::__2::char_traits<char>::compare_char_const*__char_const*__unsigned_long_.1)) (data $.rodata (global.get $__memory_base) "basic_string\00"))
CPP/159
/* You"re a hungry rabbit, and you already have eaten a certain number of carrots, but now you need to eat more carrots to complete the day's meals. you should return a vector of { total number of eaten carrots after your meals, the number of carrots left after your meals } if there are not enough remaining carrots, you will eat all remaining carrots, but will still be hungry. Example: * eat(5, 6, 10) -> {11, 4} * eat(4, 8, 9) -> {12, 1} * eat(1, 10, 10) -> {11, 0} * eat(2, 11, 5) -> {7, 0} Variables: @number : integer the number of carrots that you have eaten. @need : integer the number of carrots that you need to eat. @remaining : integer the number of remaining carrots thet exist in stock Constrain: * 0 <= number <= 1000 * 0 <= need <= 1000 * 0 <= remaining <= 1000 Have fun :) */ #include<stdio.h> #include<vector> using namespace std; vector<int> eat(int number,int need,int remaining){
#include<stdio.h> #include<vector> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> vector<int> eat(int number,int need,int remaining){
if (need>remaining) return {number+remaining, 0}; return {number+need,remaining-need}; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(eat(5, 6, 10) , {11, 4})); assert (issame(eat(4, 8, 9) , {12, 1})); assert (issame(eat(1, 10, 10) , {11, 0})); assert (issame(eat(2, 11, 5) , {7, 0})); assert (issame(eat(4, 5, 7) , {9, 2})); assert (issame(eat(4, 5, 1) , {5, 0})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(eat(5, 6, 10) , {11, 4})); assert (issame(eat(4, 8, 9) , {12, 1})); assert (issame(eat(1, 10, 10) , {11, 0})); assert (issame(eat(2, 11, 5) , {7, 0})); }
; ModuleID = 'c_code/code_157.cpp' source_filename = "c_code/code_157.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::initializer_list" = type { ptr, i32 } %"struct.std::__2::__exception_guard_exceptions" = type <{ %"class.std::__2::vector<int>::__destroy_vector", i8, [3 x i8] }> %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em = comdat any $_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize mustprogress optsize define void @_Z3eatiii(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 { %5 = alloca %"class.std::initializer_list", align 4 %6 = alloca [2 x i32], align 4 %7 = alloca %"class.std::initializer_list", align 4 %8 = alloca [2 x i32], align 4 %9 = icmp sgt i32 %2, %3 br i1 %9, label %10, label %15 10: ; preds = %4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10 %11 = add nsw i32 %3, %1 store i32 %11, ptr %6, align 4, !tbaa !3 %12 = getelementptr inbounds i32, ptr %6, i32 1 store i32 0, ptr %12, align 4, !tbaa !3 store ptr %6, ptr %5, align 4, !tbaa !7 %13 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1 store i32 2, ptr %13, align 4, !tbaa !11 %14 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %5) #11 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10 br label %21 15: ; preds = %4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10 %16 = add nsw i32 %2, %1 store i32 %16, ptr %8, align 4, !tbaa !3 %17 = getelementptr inbounds i32, ptr %8, i32 1 %18 = sub nsw i32 %3, %2 store i32 %18, ptr %17, align 4, !tbaa !3 store ptr %8, ptr %7, align 4, !tbaa !7 %19 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1 store i32 2, ptr %19, align 4, !tbaa !11 %20 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull byval(%"class.std::initializer_list") align 4 %7) #11 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10 br label %21 21: ; preds = %15, %10 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEEC2B7v160006ESt16initializer_listIiE(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef byval(%"class.std::initializer_list") align 4 %1) unnamed_addr #2 comdat { %3 = alloca %"struct.std::__2::__exception_guard_exceptions", align 4 store ptr null, ptr %0, align 4, !tbaa !12 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %4, align 4, !tbaa !16 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %5, align 4, !tbaa !17 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10 store ptr %0, ptr %3, align 4, !tbaa.struct !18, !alias.scope !20 %6 = getelementptr inbounds %"class.std::initializer_list", ptr %1, i32 0, i32 1 %7 = load i32, ptr %6, align 4, !tbaa !11 %8 = icmp eq i32 %7, 0 br i1 %8, label %14, label %9 9: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %7) #11 %10 = load ptr, ptr %1, align 4, !tbaa !7 %11 = load ptr, ptr %4, align 4, !tbaa !16 %12 = shl nsw i32 %7, 2 tail call void @llvm.memmove.p0.p0.i32(ptr align 4 %11, ptr align 4 %10, i32 %12, i1 false), !noalias !23 %13 = getelementptr inbounds i32, ptr %11, i32 %7 store ptr %13, ptr %4, align 4, !tbaa !16 br label %14 14: ; preds = %9, %2 %15 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %3, i32 0, i32 1 store i8 1, ptr %15, align 4, !tbaa !34 %16 = call noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(5) %3) #12 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE11__vallocateB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #13 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef %1) #11, !noalias !38 store ptr %7, ptr %0, align 4, !tbaa !12 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr %7, ptr %8, align 4, !tbaa !16 %9 = getelementptr inbounds i32, ptr %7, i32 %1 store ptr %9, ptr %6, align 4, !tbaa !19 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(5) %0) unnamed_addr #3 comdat { %2 = getelementptr inbounds %"struct.std::__2::__exception_guard_exceptions", ptr %0, i32 0, i32 1 %3 = load i8, ptr %2, align 4, !tbaa !34, !range !41, !noundef !42 %4 = icmp eq i8 %3, 0 br i1 %4, label %5, label %6 5: ; preds = %1 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) #12 br label %6 6: ; preds = %5, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #4 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #13 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #5 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #10 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #11 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #14 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #6 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #11 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !43 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #3 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #6 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #0 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #13 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #15 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #5 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #10 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #12 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #14 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #3 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #8 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #0 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !45 %3 = load ptr, ptr %2, align 4, !tbaa !12 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 tail call void @_ZdlPv(ptr noundef nonnull %3) #16 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #9 attributes #0 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #9 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { nounwind } attributes #11 = { minsize optsize } attributes #12 = { minsize nounwind optsize } attributes #13 = { minsize noreturn optsize } attributes #14 = { noreturn } attributes #15 = { builtin minsize optsize allocsize(0) } attributes #16 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"int", !5, i64 0} !5 = !{!"omnipotent char", !6, i64 0} !6 = !{!"Simple C++ TBAA"} !7 = !{!8, !9, i64 0} !8 = !{!"_ZTSSt16initializer_listIiE", !9, i64 0, !10, i64 4} !9 = !{!"any pointer", !5, i64 0} !10 = !{!"long", !5, i64 0} !11 = !{!8, !10, i64 4} !12 = !{!13, !9, i64 0} !13 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !9, i64 0, !9, i64 4, !14, i64 8} !14 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !15, i64 0} !15 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !9, i64 0} !16 = !{!13, !9, i64 4} !17 = !{!15, !9, i64 0} !18 = !{i64 0, i64 4, !19} !19 = !{!9, !9, i64 0} !20 = !{!21} !21 = distinct !{!21, !22, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_: argument 0"} !22 = distinct !{!22, !"_ZNSt3__222__make_exception_guardB7v160006INS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEENS_28__exception_guard_exceptionsIT_EES7_"} !23 = !{!24, !26, !28, !30, !32} !24 = distinct !{!24, !25, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !25 = distinct !{!25, !"_ZNSt3__219__copy_trivial_implB7v160006IKiiEENS_4pairIPT_PT0_EES4_S4_S6_"} !26 = distinct !{!26, !27, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !27 = distinct !{!27, !"_ZNKSt3__214__copy_trivialclB7v160006IKiiLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !28 = distinct !{!28, !29, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !29 = distinct !{!29, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKiS8_PiLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !30 = distinct !{!30, !31, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !31 = distinct !{!31, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKiS6_PiEENS_4pairIT2_T4_EES9_T3_SA_"} !32 = distinct !{!32, !33, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !33 = distinct !{!33, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKiS3_PiEENS_4pairIT0_T2_EES6_T1_S7_"} !34 = !{!35, !37, i64 4} !35 = !{!"_ZTSNSt3__228__exception_guard_exceptionsINS_6vectorIiNS_9allocatorIiEEE16__destroy_vectorEEE", !36, i64 0, !37, i64 4} !36 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !9, i64 0} !37 = !{!"bool", !5, i64 0} !38 = !{!39} !39 = distinct !{!39, !40, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !40 = distinct !{!40, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !41 = !{i8 0, i8 2} !42 = !{} !43 = !{!44, !44, i64 0} !44 = !{!"vtable pointer", !6, i64 0} !45 = !{!36, !9, i64 0}
(module $code_157.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32 i32) (result i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32) (result i32))) (type (;4;) (func (param i32))) (type (;5;) (func)) (type (;6;) (func (param i32 i32 i32 i32))) (type (;7;) (func (param i32 i32))) (import "env" "memmove" (func $memmove (type 1))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 3))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 4))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $eat_int__int__int_ (type 6) (param i32 i32 i32 i32) (local i32) global.get $__stack_pointer i32.const 48 i32.sub local.tee 4 global.set $__stack_pointer block ;; label = @1 local.get 2 local.get 3 i32.gt_s if ;; label = @2 local.get 4 i32.const 2 i32.store offset=44 local.get 4 i32.const 0 i32.store offset=36 local.get 4 local.get 1 local.get 3 i32.add i32.store offset=32 local.get 4 local.get 4 i32.const 32 i32.add i32.store offset=40 local.get 4 local.get 4 i64.load offset=40 align=4 i64.store offset=8 local.get 0 local.get 4 i32.const 8 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ br 1 (;@1;) end local.get 4 i32.const 2 i32.store offset=28 local.get 4 local.get 3 local.get 2 i32.sub i32.store offset=36 local.get 4 local.get 1 local.get 2 i32.add i32.store offset=32 local.get 4 local.get 4 i32.const 32 i32.add i32.store offset=24 local.get 4 local.get 4 i64.load offset=24 align=4 i64.store offset=16 local.get 0 local.get 4 i32.const 16 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ end local.get 4 i32.const 48 i32.add global.set $__stack_pointer) (func $std::__2::vector<int__std::__2::allocator<int>>::vector_abi:v160006__std::initializer_list<int>_ (type 7) (param i32 i32) (local i32 i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 local.get 0 i32.store offset=8 local.get 1 i32.load offset=4 local.tee 3 if ;; label = @1 local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 0 local.get 3 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 3 i32.const 2 i32.shl local.tee 3 call $operator_new_unsigned_long_ local.tee 4 i32.store offset=4 local.get 0 local.get 4 i32.store local.get 0 local.get 3 local.get 4 i32.add i32.store offset=8 local.get 0 local.get 0 i32.load offset=4 local.get 1 i32.load local.get 3 call $memmove local.get 3 i32.add i32.store offset=4 end local.get 2 i32.const 1 i32.store8 offset=12 local.get 2 i32.load8_u offset=12 i32.eqz if ;; label = @1 local.get 2 i32.load offset=8 local.tee 1 i32.load local.tee 0 if ;; label = @2 local.get 1 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end end local.get 2 i32.const 16 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z3eatiii" (func $eat_int__int__int_)) (data $.rodata (global.get $__memory_base) "vector\00"))
CPP/160
/* Given two vectors operator, and operand. The first vector has basic algebra operations, and the second vector is a vector of integers. Use the two given vectors to build the algebric expression and return the evaluation of this expression. The basic algebra operations: Addition ( + ) Subtraction ( - ) Multiplication ( * ) Floor division ( // ) Exponentiation ( ** ) Example: operator{"+", "*", "-"} vector = {2, 3, 4, 5} result = 2 + 3 * 4 - 5 => result = 9 Note: The length of operator vector is equal to the length of operand vector minus one. Operand is a vector of of non-negative integers. Operator vector has at least one operator, and operand vector has at least two operands. */ #include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> int do_algebra(vector<string> operato, vector<int> operand){
#include<stdio.h> #include<math.h> #include<vector> #include<string> using namespace std; #include<algorithm> #include<stdlib.h> int do_algebra(vector<string> operato, vector<int> operand){
vector<int> num={}; vector<int> posto={}; for (int i=0;i<operand.size();i++) posto.push_back(i); for (int i=0;i<operato.size();i++) if (operato[i]=="**") { while (posto[posto[i]]!=posto[i]) posto[i]=posto[posto[i]]; while (posto[posto[i+1]]!=posto[i+1]) posto[i+1]=posto[posto[i+1]]; operand[posto[i]]=pow(operand[posto[i]],operand[posto[i+1]]); posto[i+1]=posto[i]; } for (int i=0;i<operato.size();i++) if (operato[i]=="*" or operato[i]=="//") { while (posto[posto[i]]!=posto[i]) posto[i]=posto[posto[i]]; while (posto[posto[i+1]]!=posto[i+1]) posto[i+1]=posto[posto[i+1]]; if (operato[i]=="*") operand[posto[i]]=operand[posto[i]]*operand[posto[i+1]]; else operand[posto[i]]=operand[posto[i]]/operand[posto[i+1]]; posto[i+1]=posto[i]; } for (int i=0;i<operato.size();i++) if (operato[i]=="+" or operato[i]=="-") { while (posto[posto[i]]!=posto[i]) posto[i]=posto[posto[i]]; while (posto[posto[i+1]]!=posto[i+1]) posto[i+1]=posto[posto[i+1]]; if (operato[i]=="+") operand[posto[i]]=operand[posto[i]]+operand[posto[i+1]]; else operand[posto[i]]=operand[posto[i]]-operand[posto[i+1]]; posto[i+1]=posto[i]; } return operand[0]; }
#undef NDEBUG #include<assert.h> int main(){ assert (do_algebra({"**", "*", "+"}, {2, 3, 4, 5}) == 37); assert (do_algebra({"+", "*", "-"}, {2, 3, 4, 5}) == 9); assert (do_algebra({"//", "*"}, {7, 3, 4}) == 8); }
; ModuleID = 'c_code/code_158.cpp' source_filename = "c_code/code_158.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector.1" = type { ptr, ptr, %"class.std::__2::__compressed_pair.2" } %"class.std::__2::__compressed_pair.2" = type { %"struct.std::__2::__compressed_pair_elem.3" } %"struct.std::__2::__compressed_pair_elem.3" = type { ptr } %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair.8" } %"class.std::__2::__compressed_pair.8" = type { %"struct.std::__2::__compressed_pair_elem.9" } %"struct.std::__2::__compressed_pair_elem.9" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::vector<int>::__destroy_vector" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.14" } %"class.std::__2::__compressed_pair.14" = type { %"struct.std::__2::__compressed_pair_elem.3", %"struct.std::__2::__compressed_pair_elem.15" } %"struct.std::__2::__compressed_pair_elem.15" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [3 x i8] c"**\00", align 1 @.str.1 = private unnamed_addr constant [2 x i8] c"*\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"//\00", align 1 @.str.3 = private unnamed_addr constant [2 x i8] c"+\00", align 1 @.str.4 = private unnamed_addr constant [2 x i8] c"-\00", align 1 @.str.5 = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define noundef i32 @_Z10do_algebraNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEENS0_IiNS4_IiEEEE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::vector.1", align 4 %4 = alloca %"class.std::__2::vector.1", align 4 %5 = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #16 store ptr null, ptr %3, align 4, !tbaa !3 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %3, i32 0, i32 1 store ptr null, ptr %6, align 4, !tbaa !10 %7 = getelementptr inbounds %"class.std::__2::vector.1", ptr %3, i32 0, i32 2 store ptr null, ptr %7, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #16 store ptr null, ptr %4, align 4, !tbaa !3 %8 = getelementptr inbounds %"class.std::__2::vector.1", ptr %4, i32 0, i32 1 store ptr null, ptr %8, align 4, !tbaa !10 %9 = getelementptr inbounds %"class.std::__2::vector.1", ptr %4, i32 0, i32 2 store ptr null, ptr %9, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #16 %10 = getelementptr inbounds %"class.std::__2::vector.1", ptr %1, i32 0, i32 1 br label %11 11: ; preds = %22, %2 %12 = phi i32 [ 0, %2 ], [ %24, %22 ] store i32 %12, ptr %5, align 4, !tbaa !12 %13 = load ptr, ptr %10, align 4, !tbaa !10 %14 = load ptr, ptr %1, align 4, !tbaa !3 %15 = ptrtoint ptr %13 to i32 %16 = ptrtoint ptr %14 to i32 %17 = sub i32 %15, %16 %18 = ashr exact i32 %17, 2 %19 = icmp ult i32 %12, %18 br i1 %19, label %22, label %20 20: ; preds = %11 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #16 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 br label %25 22: ; preds = %11 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(4) %5) #17 %23 = load i32, ptr %5, align 4, !tbaa !12 %24 = add nsw i32 %23, 1 br label %11, !llvm.loop !14 25: ; preds = %39, %20 %26 = phi i32 [ 0, %20 ], [ %40, %39 ] %27 = load ptr, ptr %21, align 4, !tbaa !16 %28 = load ptr, ptr %0, align 4, !tbaa !20 %29 = ptrtoint ptr %27 to i32 %30 = ptrtoint ptr %28 to i32 %31 = sub i32 %29, %30 %32 = sdiv exact i32 %31, 12 %33 = icmp ult i32 %26, %32 br i1 %33, label %34, label %72 34: ; preds = %25 %35 = getelementptr inbounds %"class.std::__2::basic_string", ptr %28, i32 %26 %36 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull @.str) #18 br i1 %36, label %41, label %37 37: ; preds = %34 %38 = add nuw nsw i32 %26, 1 br label %39 39: ; preds = %37, %61 %40 = phi i32 [ %38, %37 ], [ %51, %61 ] br label %25, !llvm.loop !21 41: ; preds = %34 %42 = load ptr, ptr %4, align 4, !tbaa !3 %43 = getelementptr inbounds i32, ptr %42, i32 %26 %44 = load i32, ptr %43, align 4, !tbaa !12 br label %45 45: ; preds = %41, %54 %46 = phi i32 [ %44, %41 ], [ %48, %54 ] %47 = getelementptr inbounds i32, ptr %42, i32 %46 %48 = load i32, ptr %47, align 4, !tbaa !12 %49 = icmp eq i32 %48, %46 br i1 %49, label %50, label %54 50: ; preds = %45 %51 = add nuw nsw i32 %26, 1 %52 = getelementptr inbounds i32, ptr %42, i32 %51 %53 = load i32, ptr %52, align 4, !tbaa !12 br label %55 54: ; preds = %45 store i32 %48, ptr %43, align 4, !tbaa !12 br label %45, !llvm.loop !22 55: ; preds = %50, %60 %56 = phi i32 [ %53, %50 ], [ %58, %60 ] %57 = getelementptr inbounds i32, ptr %42, i32 %56 %58 = load i32, ptr %57, align 4, !tbaa !12 %59 = icmp eq i32 %58, %56 br i1 %59, label %61, label %60 60: ; preds = %55 store i32 %58, ptr %52, align 4, !tbaa !12 br label %55, !llvm.loop !23 61: ; preds = %55 %62 = load ptr, ptr %1, align 4, !tbaa !3 %63 = getelementptr inbounds i32, ptr %62, i32 %46 %64 = load i32, ptr %63, align 4, !tbaa !12 %65 = getelementptr inbounds i32, ptr %62, i32 %56 %66 = load i32, ptr %65, align 4, !tbaa !12 %67 = sitofp i32 %64 to double %68 = sitofp i32 %66 to double %69 = call double @llvm.pow.f64(double %67, double %68) %70 = fptosi double %69 to i32 store i32 %70, ptr %63, align 4, !tbaa !12 %71 = load i32, ptr %43, align 4, !tbaa !12 store i32 %71, ptr %52, align 4, !tbaa !12 br label %39 72: ; preds = %25, %133 %73 = phi ptr [ %136, %133 ], [ %28, %25 ] %74 = phi ptr [ %135, %133 ], [ %27, %25 ] %75 = phi i32 [ %134, %133 ], [ 0, %25 ] %76 = ptrtoint ptr %74 to i32 %77 = ptrtoint ptr %73 to i32 %78 = sub i32 %76, %77 %79 = sdiv exact i32 %78, 12 %80 = icmp ult i32 %75, %79 br i1 %80, label %81, label %137 81: ; preds = %72 %82 = getelementptr inbounds %"class.std::__2::basic_string", ptr %73, i32 %75 %83 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull @.str.1) #18 br i1 %83, label %90, label %84 84: ; preds = %81 %85 = load ptr, ptr %0, align 4, !tbaa !20 %86 = getelementptr inbounds %"class.std::__2::basic_string", ptr %85, i32 %75 %87 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %86, ptr noundef nonnull @.str.2) #18 br i1 %87, label %90, label %88 88: ; preds = %84 %89 = add nuw nsw i32 %75, 1 br label %133 90: ; preds = %84, %81 %91 = load ptr, ptr %4, align 4, !tbaa !3 %92 = getelementptr inbounds i32, ptr %91, i32 %75 %93 = load i32, ptr %92, align 4, !tbaa !12 br label %94 94: ; preds = %103, %90 %95 = phi i32 [ %97, %103 ], [ %93, %90 ] %96 = getelementptr inbounds i32, ptr %91, i32 %95 %97 = load i32, ptr %96, align 4, !tbaa !12 %98 = icmp eq i32 %97, %95 br i1 %98, label %99, label %103 99: ; preds = %94 %100 = add nuw nsw i32 %75, 1 %101 = getelementptr inbounds i32, ptr %91, i32 %100 %102 = load i32, ptr %101, align 4, !tbaa !12 br label %104 103: ; preds = %94 store i32 %97, ptr %92, align 4, !tbaa !12 br label %94, !llvm.loop !24 104: ; preds = %99, %109 %105 = phi i32 [ %102, %99 ], [ %107, %109 ] %106 = getelementptr inbounds i32, ptr %91, i32 %105 %107 = load i32, ptr %106, align 4, !tbaa !12 %108 = icmp eq i32 %107, %105 br i1 %108, label %110, label %109 109: ; preds = %104 store i32 %107, ptr %101, align 4, !tbaa !12 br label %104, !llvm.loop !25 110: ; preds = %104 %111 = load ptr, ptr %0, align 4, !tbaa !20 %112 = getelementptr inbounds %"class.std::__2::basic_string", ptr %111, i32 %75 %113 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %112, ptr noundef nonnull @.str.1) #18 %114 = load ptr, ptr %4, align 4, !tbaa !3 %115 = getelementptr inbounds i32, ptr %114, i32 %75 %116 = load i32, ptr %115, align 4, !tbaa !12 %117 = load ptr, ptr %1, align 4, !tbaa !3 %118 = getelementptr inbounds i32, ptr %117, i32 %116 %119 = load i32, ptr %118, align 4, !tbaa !12 %120 = getelementptr inbounds i32, ptr %114, i32 %100 %121 = load i32, ptr %120, align 4, !tbaa !12 %122 = getelementptr inbounds i32, ptr %117, i32 %121 %123 = load i32, ptr %122, align 4, !tbaa !12 br i1 %113, label %124, label %126 124: ; preds = %110 %125 = mul nsw i32 %123, %119 br label %128 126: ; preds = %110 %127 = sdiv i32 %119, %123 br label %128 128: ; preds = %126, %124 %129 = phi i32 [ %127, %126 ], [ %125, %124 ] store i32 %129, ptr %118, align 4, !tbaa !12 %130 = getelementptr inbounds i32, ptr %114, i32 %75 %131 = load i32, ptr %130, align 4, !tbaa !12 %132 = getelementptr inbounds i32, ptr %114, i32 %100 store i32 %131, ptr %132, align 4, !tbaa !12 br label %133 133: ; preds = %88, %128 %134 = phi i32 [ %89, %88 ], [ %100, %128 ] %135 = load ptr, ptr %21, align 4, !tbaa !16 %136 = load ptr, ptr %0, align 4, !tbaa !20 br label %72, !llvm.loop !26 137: ; preds = %72, %200 %138 = phi ptr [ %203, %200 ], [ %73, %72 ] %139 = phi ptr [ %202, %200 ], [ %74, %72 ] %140 = phi i32 [ %201, %200 ], [ 0, %72 ] %141 = ptrtoint ptr %139 to i32 %142 = ptrtoint ptr %138 to i32 %143 = sub i32 %141, %142 %144 = sdiv exact i32 %143, 12 %145 = icmp ult i32 %140, %144 br i1 %145, label %151, label %146 146: ; preds = %137 %147 = load ptr, ptr %1, align 4, !tbaa !3 %148 = load i32, ptr %147, align 4, !tbaa !12 %149 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #16 %150 = call noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #18 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #16 ret i32 %148 151: ; preds = %137 %152 = getelementptr inbounds %"class.std::__2::basic_string", ptr %138, i32 %140 %153 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %152, ptr noundef nonnull @.str.3) #18 br i1 %153, label %160, label %154 154: ; preds = %151 %155 = load ptr, ptr %0, align 4, !tbaa !20 %156 = getelementptr inbounds %"class.std::__2::basic_string", ptr %155, i32 %140 %157 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %156, ptr noundef nonnull @.str.4) #18 br i1 %157, label %160, label %158 158: ; preds = %154 %159 = add nuw nsw i32 %140, 1 br label %200 160: ; preds = %154, %151 %161 = load ptr, ptr %4, align 4, !tbaa !3 %162 = getelementptr inbounds i32, ptr %161, i32 %140 %163 = load i32, ptr %162, align 4, !tbaa !12 br label %164 164: ; preds = %173, %160 %165 = phi i32 [ %167, %173 ], [ %163, %160 ] %166 = getelementptr inbounds i32, ptr %161, i32 %165 %167 = load i32, ptr %166, align 4, !tbaa !12 %168 = icmp eq i32 %167, %165 br i1 %168, label %169, label %173 169: ; preds = %164 %170 = add nuw nsw i32 %140, 1 %171 = getelementptr inbounds i32, ptr %161, i32 %170 %172 = load i32, ptr %171, align 4, !tbaa !12 br label %174 173: ; preds = %164 store i32 %167, ptr %162, align 4, !tbaa !12 br label %164, !llvm.loop !27 174: ; preds = %169, %179 %175 = phi i32 [ %172, %169 ], [ %177, %179 ] %176 = getelementptr inbounds i32, ptr %161, i32 %175 %177 = load i32, ptr %176, align 4, !tbaa !12 %178 = icmp eq i32 %177, %175 br i1 %178, label %180, label %179 179: ; preds = %174 store i32 %177, ptr %171, align 4, !tbaa !12 br label %174, !llvm.loop !28 180: ; preds = %174 %181 = load ptr, ptr %0, align 4, !tbaa !20 %182 = getelementptr inbounds %"class.std::__2::basic_string", ptr %181, i32 %140 %183 = call noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %182, ptr noundef nonnull @.str.3) #18 %184 = load ptr, ptr %4, align 4, !tbaa !3 %185 = getelementptr inbounds i32, ptr %184, i32 %140 %186 = load i32, ptr %185, align 4, !tbaa !12 %187 = load ptr, ptr %1, align 4, !tbaa !3 %188 = getelementptr inbounds i32, ptr %187, i32 %186 %189 = load i32, ptr %188, align 4, !tbaa !12 %190 = getelementptr inbounds i32, ptr %184, i32 %170 %191 = load i32, ptr %190, align 4, !tbaa !12 %192 = getelementptr inbounds i32, ptr %187, i32 %191 %193 = load i32, ptr %192, align 4, !tbaa !12 %194 = sub i32 0, %193 %195 = select i1 %183, i32 %193, i32 %194 %196 = add i32 %189, %195 store i32 %196, ptr %188, align 4, !tbaa !12 %197 = getelementptr inbounds i32, ptr %184, i32 %140 %198 = load i32, ptr %197, align 4, !tbaa !12 %199 = getelementptr inbounds i32, ptr %184, i32 %170 store i32 %198, ptr %199, align 4, !tbaa !12 br label %200 200: ; preds = %158, %180 %201 = phi i32 [ %159, %158 ], [ %170, %180 ] %202 = load ptr, ptr %21, align 4, !tbaa !16 %203 = load ptr, ptr %0, align 4, !tbaa !20 br label %137, !llvm.loop !29 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !30 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #17 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__2eqB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEEbRKNS_12basic_stringIT_T0_T1_EEPKS6_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #18 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = icmp eq i32 %4, %11 br i1 %12, label %13, label %16 13: ; preds = %2 %14 = tail call noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 0, i32 noundef -1, ptr noundef nonnull %1, i32 noundef %4) #18 %15 = icmp eq i32 %14, 0 br label %16 16: ; preds = %2, %13 %17 = phi i1 [ %15, %13 ], [ false, %2 ] ret i1 %17 } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__26vectorIiNS_9allocatorIiEEED2B7v160006Ev(ptr noundef nonnull returned align 4 dereferenceable(12) %0) unnamed_addr #4 comdat { %2 = alloca %"class.std::__2::vector<int>::__destroy_vector", align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #16 store ptr %0, ptr %2, align 4, !tbaa !30 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %2) #18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #16 ret ptr %0 } ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorclB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) local_unnamed_addr #5 comdat { %2 = load ptr, ptr %0, align 4, !tbaa !31 %3 = load ptr, ptr %2, align 4, !tbaa !3 %4 = icmp eq ptr %3, null br i1 %4, label %7, label %5 5: ; preds = %1 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %2, i32 0, i32 1 store ptr %3, ptr %6, align 4, !tbaa !10 tail call void @_ZdlPv(ptr noundef nonnull %3) #19 br label %7 7: ; preds = %5, %1 ret void } ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #6 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #7 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #16 %5 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #17 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #17 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !33 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !33 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #17 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #18 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #16 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #7 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #20 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !30 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !30 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #17, !noalias !37 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !40 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !33 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !41 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !30 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !41 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !42 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !42 br label %8, !llvm.loop !47 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !41 %17 = load ptr, ptr %0, align 4, !tbaa !30 store ptr %10, ptr %0, align 4, !tbaa !30 store ptr %17, ptr %6, align 4, !tbaa !30 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !30 %20 = load ptr, ptr %18, align 4, !tbaa !30 store ptr %20, ptr %3, align 4, !tbaa !30 store ptr %19, ptr %18, align 4, !tbaa !30 %21 = getelementptr inbounds %"class.std::__2::vector.1", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !30 %24 = load ptr, ptr %22, align 4, !tbaa !30 store ptr %24, ptr %21, align 4, !tbaa !30 store ptr %23, ptr %22, align 4, !tbaa !30 %25 = load ptr, ptr %6, align 4, !tbaa !41 store ptr %25, ptr %1, align 4, !tbaa !40 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #4 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #18 %2 = load ptr, ptr %0, align 4, !tbaa !40 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #19 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #8 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.5) #20 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #9 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #16 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #17 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #21 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #17 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !48 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #4 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #5 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #20 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #22 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #9 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #16 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #18 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #21 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #10 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #11 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #12 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !41 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #18 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #3 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !33 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !33 br label %5, !llvm.loop !50 10: ; preds = %5 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize declare noundef i32 @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #7 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare double @llvm.pow.f64(double, double) #14 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #15 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #11 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #13 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #15 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #16 = { nounwind } attributes #17 = { minsize optsize } attributes #18 = { minsize nounwind optsize } attributes #19 = { builtin minsize nounwind optsize } attributes #20 = { minsize noreturn optsize } attributes #21 = { noreturn } attributes #22 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = !{!17, !5, i64 4} !17 = !{!"_ZTSNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !5, i64 0, !5, i64 4, !18, i64 8} !18 = !{!"_ZTSNSt3__217__compressed_pairIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEE", !19, i64 0} !19 = !{!"_ZTSNSt3__222__compressed_pair_elemIPNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEELi0ELb0EEE", !5, i64 0} !20 = !{!17, !5, i64 0} !21 = distinct !{!21, !15} !22 = distinct !{!22, !15} !23 = distinct !{!23, !15} !24 = distinct !{!24, !15} !25 = distinct !{!25, !15} !26 = distinct !{!26, !15} !27 = distinct !{!27, !15} !28 = distinct !{!28, !15} !29 = distinct !{!29, !15} !30 = !{!5, !5, i64 0} !31 = !{!32, !5, i64 0} !32 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEE16__destroy_vectorE", !5, i64 0} !33 = !{!34, !5, i64 8} !34 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !35, i64 12} !35 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !36, i64 4} !36 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !37 = !{!38} !38 = distinct !{!38, !39, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !39 = distinct !{!39, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !40 = !{!34, !5, i64 0} !41 = !{!34, !5, i64 4} !42 = !{!43, !45} !43 = distinct !{!43, !44, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !44 = distinct !{!44, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !45 = distinct !{!45, !46, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !46 = distinct !{!46, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !47 = distinct !{!47, !15} !48 = !{!49, !49, i64 0} !49 = !{!"vtable pointer", !7, i64 0} !50 = distinct !{!50, !15}
(module $code_158.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32) (result i32))) (type (;2;) (func (param i32 i32))) (type (;3;) (func (param i32))) (type (;4;) (func (param f64 f64) (result f64))) (type (;5;) (func (param i32 i32 i32 i32 i32) (result i32))) (type (;6;) (func (param i32 i32 i32))) (type (;7;) (func)) (import "env" "pow" (func $pow (type 4))) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 2))) (import "env" "strlen" (func $strlen (type 0))) (import "env" "_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare_unsigned_long__unsigned_long__char_const*__unsigned_long__const (type 5))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 6))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 1))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 7)) (func $do_algebra_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>__std::__2::vector<int__std::__2::allocator<int>>_ (type 1) (param i32 i32) (result i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 f64) global.get $__stack_pointer i32.const 32 i32.sub local.tee 6 global.set $__stack_pointer local.get 6 i32.const 0 i32.store offset=28 local.get 6 i64.const 0 i64.store offset=20 align=4 local.get 6 i32.const 0 i32.store offset=16 local.get 6 i64.const 0 i64.store offset=8 align=4 loop ;; label = @1 local.get 6 local.get 2 i32.store offset=4 local.get 1 i32.load offset=4 local.get 1 i32.load i32.sub i32.const 2 i32.shr_s local.get 2 i32.le_u if ;; label = @2 loop ;; label = @3 local.get 0 i32.load offset=4 local.tee 3 local.get 0 i32.load local.tee 2 i32.sub i32.const 12 i32.div_s local.get 4 i32.le_u if ;; label = @4 loop ;; label = @5 local.get 3 local.get 2 i32.sub i32.const 12 i32.div_s local.get 7 i32.le_u if ;; label = @6 i32.const 0 local.set 7 loop ;; label = @7 block ;; label = @8 local.get 3 local.get 2 i32.sub i32.const 12 i32.div_s local.get 7 i32.gt_u if ;; label = @9 block ;; label = @10 local.get 2 local.get 7 i32.const 12 i32.mul local.tee 5 i32.add global.get $__memory_base i32.const 12 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ br_if 0 (;@10;) local.get 0 i32.load local.get 5 i32.add global.get $__memory_base i32.const 10 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ br_if 0 (;@10;) local.get 7 i32.const 1 i32.add local.set 7 br 2 (;@8;) end local.get 6 i32.load offset=8 local.tee 4 local.get 7 i32.const 2 i32.shl local.tee 9 i32.add local.tee 8 i32.load local.set 2 loop ;; label = @10 local.get 2 local.get 4 local.get 2 i32.const 2 i32.shl i32.add i32.load local.tee 3 i32.eq if ;; label = @11 local.get 4 local.get 7 i32.const 1 i32.add local.tee 7 i32.const 2 i32.shl local.tee 3 i32.add local.tee 8 i32.load local.set 2 loop ;; label = @12 local.get 2 local.get 4 local.get 2 i32.const 2 i32.shl i32.add i32.load local.tee 2 i32.ne if ;; label = @13 local.get 8 local.get 2 i32.store br 1 (;@12;) end end local.get 0 i32.load local.get 5 i32.add global.get $__memory_base i32.const 12 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ local.set 2 local.get 1 i32.load local.tee 4 local.get 6 i32.load offset=8 local.tee 5 local.get 9 i32.add local.tee 9 i32.load i32.const 2 i32.shl i32.add local.tee 8 local.get 8 i32.load local.get 4 local.get 3 local.get 5 i32.add local.tee 3 i32.load i32.const 2 i32.shl i32.add i32.load local.tee 4 i32.const 0 local.get 4 i32.sub local.get 2 select i32.add i32.store local.get 3 local.get 9 i32.load i32.store br 3 (;@8;) else local.get 8 local.get 3 i32.store local.get 3 local.set 2 br 1 (;@10;) end unreachable end unreachable end local.get 1 i32.load i32.load local.get 6 i32.const 8 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ local.get 6 i32.const 20 i32.add call $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ local.get 6 i32.const 32 i32.add global.set $__stack_pointer return end local.get 0 i32.load local.set 2 local.get 0 i32.load offset=4 local.set 3 br 0 (;@7;) end unreachable else block ;; label = @7 block ;; label = @8 local.get 2 local.get 7 i32.const 12 i32.mul local.tee 5 i32.add global.get $__memory_base i32.const 15 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ br_if 0 (;@8;) local.get 0 i32.load local.get 5 i32.add global.get $__memory_base i32.const 7 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ br_if 0 (;@8;) local.get 7 i32.const 1 i32.add local.set 7 br 1 (;@7;) end local.get 6 i32.load offset=8 local.tee 4 local.get 7 i32.const 2 i32.shl local.tee 9 i32.add local.tee 8 i32.load local.set 2 loop ;; label = @8 local.get 2 local.get 4 local.get 2 i32.const 2 i32.shl i32.add i32.load local.tee 3 i32.eq if ;; label = @9 local.get 4 local.get 7 i32.const 1 i32.add local.tee 7 i32.const 2 i32.shl local.tee 3 i32.add local.tee 8 i32.load local.set 2 loop ;; label = @10 local.get 2 local.get 4 local.get 2 i32.const 2 i32.shl i32.add i32.load local.tee 2 i32.ne if ;; label = @11 local.get 8 local.get 2 i32.store br 1 (;@10;) end end local.get 0 i32.load local.get 5 i32.add global.get $__memory_base i32.const 15 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ local.set 4 local.get 1 i32.load local.tee 5 local.get 3 local.get 6 i32.load offset=8 local.tee 8 i32.add local.tee 10 i32.load i32.const 2 i32.shl i32.add i32.load local.set 2 local.get 5 local.get 8 local.get 9 i32.add local.tee 9 i32.load i32.const 2 i32.shl i32.add local.tee 5 i32.load local.set 3 local.get 5 local.get 4 if (result i32) ;; label = @10 local.get 2 local.get 3 i32.mul else local.get 3 local.get 2 i32.div_s end i32.store local.get 10 local.get 9 i32.load i32.store else local.get 8 local.get 3 i32.store local.get 3 local.set 2 br 1 (;@8;) end end end local.get 0 i32.load local.set 2 local.get 0 i32.load offset=4 local.set 3 br 1 (;@5;) end unreachable end unreachable end local.get 2 local.get 4 i32.const 12 i32.mul i32.add global.get $__memory_base i32.const 14 i32.add call $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ i32.eqz if ;; label = @4 local.get 4 i32.const 1 i32.add local.set 4 br 1 (;@3;) end local.get 6 i32.load offset=8 local.tee 5 local.get 4 i32.const 2 i32.shl i32.add local.tee 9 i32.load local.set 2 loop ;; label = @4 local.get 2 local.get 5 local.get 2 i32.const 2 i32.shl local.tee 8 i32.add i32.load local.tee 3 i32.eq if ;; label = @5 local.get 5 local.get 4 i32.const 1 i32.add local.tee 4 i32.const 2 i32.shl i32.add local.tee 3 i32.load local.set 2 loop ;; label = @6 local.get 2 local.get 5 local.get 2 i32.const 2 i32.shl local.tee 10 i32.add i32.load local.tee 2 i32.ne if ;; label = @7 local.get 3 local.get 2 i32.store br 1 (;@6;) end end block (result i32) ;; label = @6 local.get 1 i32.load local.tee 2 local.get 8 i32.add local.tee 5 i32.load f64.convert_i32_s local.get 2 local.get 10 i32.add i32.load f64.convert_i32_s call $pow local.tee 11 f64.abs f64.const 0x1p+31 (;=2.14748e+09;) f64.lt if ;; label = @7 local.get 11 i32.trunc_f64_s br 1 (;@6;) end i32.const -2147483648 end local.set 2 local.get 5 local.get 2 i32.store local.get 3 local.get 9 i32.load i32.store br 2 (;@3;) else local.get 9 local.get 3 i32.store local.get 3 local.set 2 br 1 (;@4;) end unreachable end unreachable end unreachable else local.get 6 i32.const 4 i32.add local.set 3 block ;; label = @3 local.get 6 i32.const 8 i32.add local.tee 2 i32.load offset=4 local.tee 5 local.get 2 i32.load offset=8 i32.ne if ;; label = @4 local.get 5 local.get 3 i32.load i32.store local.get 2 local.get 5 i32.const 4 i32.add i32.store offset=4 br 1 (;@3;) end local.get 2 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end local.get 6 i32.load offset=4 i32.const 1 i32.add local.set 2 br 1 (;@1;) end unreachable end unreachable) (func $bool_std::__2::operator==_abi:v160006_<char__std::__2::char_traits<char>__std::__2::allocator<char>>_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_const&__char_const*_ (type 1) (param i32 i32) (result i32) (local i32 i32 i32) local.get 1 call $strlen local.tee 3 local.get 0 i32.load offset=4 local.get 0 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s select i32.eq if (result i32) ;; label = @1 local.get 0 i32.const 0 i32.const -1 local.get 1 local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::compare_unsigned_long__unsigned_long__char_const*__unsigned_long__const else i32.const 1 end i32.eqz) (func $std::__2::vector<int__std::__2::allocator<int>>::~vector_abi:v160006___ (type 3) (param i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 1 global.set $__stack_pointer local.get 1 local.get 0 i32.store offset=12 local.get 1 i32.load offset=12 local.tee 2 i32.load local.tee 0 if ;; label = @1 local.get 2 local.get 0 i32.store offset=4 local.get 0 call $operator_delete_void*_ end local.get 1 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 2) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z10do_algebraNSt3__26vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEENS0_IiNS4_IiEEEE" (func $do_algebra_std::__2::vector<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>__std::__2::allocator<std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>>>__std::__2::vector<int__std::__2::allocator<int>>_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00//\00-\00+\00**\00"))
CPP/161
/* You are given a string s. if s[i] is a letter, reverse its case from lower to upper or vise versa, otherwise keep it as it is. If the string contains no letters, reverse the string. The function should return the resulted string. Examples solve("1234") = "4321" solve("ab") = "AB" solve("#a@C") = "#A@c" */ #include<stdio.h> #include<string> using namespace std; string solve(string s){
#include<stdio.h> #include<string> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> string solve(string s){
int nletter=0; string out=""; for (int i=0;i<s.length();i++) { char w=s[i]; if (w>=65 and w<=90) w=w+32; else if (w>=97 and w<=122) w=w-32; else nletter+=1; out=out+w; } if (nletter==s.length()) { string p(s.rbegin(),s.rend()); return p; } else return out; }
#undef NDEBUG #include<assert.h> int main(){ assert (solve("AsDf") == "aSdF"); assert (solve("1234") == "4321"); assert (solve("ab") == "AB"); assert (solve("#a@C") == "#A@c"); assert (solve("#AsdfW^45") == "#aSDFw^45"); assert (solve("#6@2") == "2@6#"); assert (solve("#$a^D") == "#$A^d"); assert (solve("#ccc") == "#CCC"); }
#undef NDEBUG #include<assert.h> int main(){ assert (solve("1234") == "4321"); assert (solve("ab") == "AB"); assert (solve("#a@C") == "#A@c"); }
; ModuleID = 'c_code/code_159.cpp' source_filename = "c_code/code_159.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::basic_string" = type { %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { %"struct.std::__2::basic_string<char>::__rep" } %"struct.std::__2::basic_string<char>::__rep" = type { %union.anon } %union.anon = type { %"struct.std::__2::basic_string<char>::__long" } %"struct.std::__2::basic_string<char>::__long" = type { ptr, i32, i32 } %"struct.std::__2::basic_string<char>::__short" = type { [11 x i8], [0 x i8], i8 } %"class.std::__2::allocator" = type { i8 } $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc = comdat any $_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_ = comdat any $_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_ = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE = comdat any $_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_ = comdat any @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1 @.str.1 = private unnamed_addr constant [13 x i8] c"basic_string\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 ; Function Attrs: minsize optsize define void @_Z5solveNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef %1) local_unnamed_addr #0 { %3 = alloca %"class.std::__2::basic_string", align 4 %4 = alloca %"class.std::__2::basic_string", align 4 call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #15 %5 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull @.str) #16 %6 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %7 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 br label %8 8: ; preds = %35, %2 %9 = phi i32 [ 0, %2 ], [ %39, %35 ] %10 = phi i32 [ 0, %2 ], [ %37, %35 ] %11 = load i8, ptr %6, align 1 %12 = icmp slt i8 %11, 0 %13 = load i32, ptr %7, align 4 %14 = zext i8 %11 to i32 %15 = select i1 %12, i32 %13, i32 %14 %16 = icmp ult i32 %9, %15 br i1 %16, label %19, label %17 17: ; preds = %8 %18 = icmp eq i32 %10, %15 br i1 %18, label %40, label %44 19: ; preds = %8 %20 = load ptr, ptr %1, align 4 %21 = select i1 %12, ptr %20, ptr %1 %22 = getelementptr inbounds i8, ptr %21, i32 %9 %23 = load i8, ptr %22, align 1, !tbaa !3 %24 = add i8 %23, -65 %25 = icmp ult i8 %24, 26 br i1 %25, label %26, label %28 26: ; preds = %19 %27 = add nuw nsw i8 %23, 32 br label %35 28: ; preds = %19 %29 = add i8 %23, -97 %30 = icmp ult i8 %29, 26 br i1 %30, label %31, label %33 31: ; preds = %28 %32 = add nsw i8 %23, -32 br label %35 33: ; preds = %28 %34 = add nsw i32 %10, 1 br label %35 35: ; preds = %31, %33, %26 %36 = phi i8 [ %27, %26 ], [ %32, %31 ], [ %23, %33 ] %37 = phi i32 [ %10, %26 ], [ %10, %31 ], [ %34, %33 ] call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #15 call void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr nonnull sret(%"class.std::__2::basic_string") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %3, i8 noundef signext %36) #16 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #17 %38 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #15 %39 = add nuw nsw i32 %9, 1 br label %8, !llvm.loop !6 40: ; preds = %17 %41 = load ptr, ptr %1, align 4 %42 = select i1 %12, ptr %41, ptr %1 %43 = getelementptr inbounds i8, ptr %42, i32 %10 call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %43, ptr %42) #16 br label %45 44: ; preds = %17 call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3, i32 12, i1 false) call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %3, i8 0, i32 12, i1 false) br label %45 45: ; preds = %40, %44 %46 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #17 call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #15 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize optsize define linkonce_odr noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc(ptr noundef nonnull returned align 4 dereferenceable(12) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = icmp ne ptr %1, null tail call void @llvm.assume(i1 %3) %4 = tail call i32 @strlen(ptr noundef nonnull dereferenceable(1) %1) #17 tail call void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull %1, i32 noundef %4) #16 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__2plB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_S6_(ptr noalias sret(%"class.std::__2::basic_string") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i8 noundef signext %2) local_unnamed_addr #0 comdat { %4 = alloca %"class.std::__2::allocator", align 1 %5 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 %6 = load i8, ptr %5, align 1 %7 = icmp slt i8 %6, 0 %8 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %1, i32 0, i32 1 %9 = load i32, ptr %8, align 4 %10 = zext i8 %6 to i32 %11 = select i1 %7, i32 %9, i32 %10 %12 = add i32 %11, 1 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #15 %13 = call noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %4) #16 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #15 %14 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %15 = load i8, ptr %14, align 1 %16 = icmp slt i8 %15, 0 %17 = load ptr, ptr %0, align 4 %18 = select i1 %16, ptr %17, ptr %0 %19 = load i8, ptr %5, align 1 %20 = icmp slt i8 %19, 0 %21 = load ptr, ptr %1, align 4 %22 = select i1 %20, ptr %21, ptr %1 %23 = icmp ult ptr %22, %18 %24 = getelementptr inbounds i8, ptr %18, i32 %11 %25 = icmp ule ptr %24, %22 %26 = or i1 %23, %25 call void @llvm.assume(i1 %26) call void @llvm.memmove.p0.p0.i32(ptr align 1 %18, ptr align 1 %22, i32 %11, i1 false), !noalias !8 store i8 %2, ptr %24, align 1, !tbaa !3 %27 = getelementptr inbounds i8, ptr %18, i32 1 %28 = getelementptr inbounds i8, ptr %27, i32 %11 store i8 0, ptr %28, align 1, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize nounwind optsize declare noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(12)) unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) declare void @llvm.assume(i1 noundef) #4 ; Function Attrs: inlinehint minsize optsize declare void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef, i32 noundef) local_unnamed_addr #5 ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str.1) #18 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #15 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #16 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #19 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #16 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !19 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #8 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) declare i32 @strlen(ptr nocapture noundef) local_unnamed_addr #11 ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006ENS_24__uninitialized_size_tagEmRKS4_(ptr noundef nonnull returned align 4 dereferenceable(12) %0, i32 noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %2) unnamed_addr #0 comdat { %4 = icmp ugt i32 %1, 2147483631 br i1 %4, label %5, label %6 5: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 6: ; preds = %3 %7 = icmp ult i32 %1, 11 br i1 %7, label %8, label %11 8: ; preds = %6 tail call void @llvm.memset.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, i8 0, i32 12, i1 false) %9 = trunc i32 %1 to i8 %10 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %9, ptr %10, align 1 br label %18 11: ; preds = %6 %12 = or i32 %1, 15 %13 = add nuw i32 %12, 1 %14 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %13) #20 %15 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %16 = or i32 %13, -2147483648 store i32 %16, ptr %15, align 4 store ptr %14, ptr %0, align 4, !tbaa !3 %17 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %1, ptr %17, align 4, !tbaa !3 br label %18 18: ; preds = %11, %8 ret ptr %0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1 immarg) #12 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i32(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i32, i1 immarg) #10 ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__move_assignB7v160006ERS5_NS_17integral_constantIbLb1EEE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) local_unnamed_addr #13 comdat { %3 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 %4 = load i8, ptr %3, align 1 %5 = icmp slt i8 %4, 0 br i1 %5, label %6, label %8 6: ; preds = %2 %7 = load ptr, ptr %0, align 4, !tbaa !3 tail call void @_ZdlPv(ptr noundef %7) #21 br label %8 8: ; preds = %6, %2 tail call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 12, i1 false), !tbaa.struct !21 %9 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %1, i32 0, i32 2 store i8 0, ptr %9, align 1 store i8 0, ptr %1, align 4, !tbaa !3 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr %1, ptr %2) local_unnamed_addr #14 comdat { %4 = ptrtoint ptr %1 to i32 %5 = ptrtoint ptr %2 to i32 %6 = sub i32 %4, %5 %7 = icmp ugt i32 %6, 2147483631 br i1 %7, label %8, label %9 8: ; preds = %3 tail call void @_ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #18 unreachable 9: ; preds = %3 %10 = icmp ult i32 %6, 11 br i1 %10, label %11, label %14 11: ; preds = %9 %12 = trunc i32 %6 to i8 %13 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__short", ptr %0, i32 0, i32 2 store i8 %12, ptr %13, align 1 br label %21 14: ; preds = %9 %15 = or i32 %6, 15 %16 = add nuw i32 %15, 1 %17 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %16) #20, !noalias !26 store ptr %17, ptr %0, align 4, !tbaa !3 %18 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 2 %19 = or i32 %16, -2147483648 store i32 %19, ptr %18, align 4 %20 = getelementptr inbounds %"struct.std::__2::basic_string<char>::__long", ptr %0, i32 0, i32 1 store i32 %6, ptr %20, align 4, !tbaa !3 br label %21 21: ; preds = %14, %11 %22 = phi ptr [ %0, %11 ], [ %17, %14 ] br label %23 23: ; preds = %21, %27 %24 = phi ptr [ %28, %27 ], [ %1, %21 ] %25 = phi ptr [ %30, %27 ], [ %22, %21 ] %26 = icmp eq ptr %24, %2 br i1 %26, label %31, label %27 27: ; preds = %23 %28 = getelementptr inbounds i8, ptr %24, i32 -1 %29 = load i8, ptr %28, align 1, !tbaa !3 store i8 %29, ptr %25, align 1, !tbaa !3 %30 = getelementptr inbounds i8, ptr %25, i32 1 br label %23, !llvm.loop !29 31: ; preds = %23 store i8 0, ptr %25, align 1, !tbaa !3 ret void } attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) } attributes #5 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #11 = { minsize mustprogress nofree nounwind optsize willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #13 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #14 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #15 = { nounwind } attributes #16 = { minsize optsize } attributes #17 = { minsize nounwind optsize } attributes #18 = { minsize noreturn optsize } attributes #19 = { noreturn } attributes #20 = { builtin minsize optsize allocsize(0) } attributes #21 = { builtin minsize nounwind optsize } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !4, i64 0} !4 = !{!"omnipotent char", !5, i64 0} !5 = !{!"Simple C++ TBAA"} !6 = distinct !{!6, !7} !7 = !{!"llvm.loop.mustprogress"} !8 = !{!9, !11, !13, !15, !17} !9 = distinct !{!9, !10, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_: argument 0"} !10 = distinct !{!10, !"_ZNSt3__219__copy_trivial_implB7v160006IKccEENS_4pairIPT_PT0_EES4_S4_S6_"} !11 = distinct !{!11, !12, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_: argument 0"} !12 = distinct !{!12, !"_ZNKSt3__214__copy_trivialclB7v160006IKccLi0EEENS_4pairIPT_PT0_EES5_S5_S7_"} !13 = distinct !{!13, !14, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !14 = distinct !{!14, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__copy_loopINS_17_ClassicAlgPolicyEEENS_14__copy_trivialEEEPKcS8_PcLi0EEENS_4pairIT0_T2_EESB_T1_SC_"} !15 = distinct !{!15, !16, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_: argument 0"} !16 = distinct !{!16, !"_ZNSt3__223__dispatch_copy_or_moveB7v160006INS_17_ClassicAlgPolicyENS_11__copy_loopIS1_EENS_14__copy_trivialEPKcS6_PcEENS_4pairIT2_T4_EES9_T3_SA_"} !17 = distinct !{!17, !18, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_: argument 0"} !18 = distinct !{!18, !"_ZNSt3__26__copyB7v160006INS_17_ClassicAlgPolicyEPKcS3_PcEENS_4pairIT0_T2_EES6_T1_S7_"} !19 = !{!20, !20, i64 0} !20 = !{!"vtable pointer", !5, i64 0} !21 = !{i64 0, i64 4, !22, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 11, i64 4, !24, i64 0, i64 11, !3, i64 11, i64 0, !3, i64 11, i64 1, !3, i64 11, i64 1, !3, i64 0, i64 12, !3} !22 = !{!23, !23, i64 0} !23 = !{!"any pointer", !4, i64 0} !24 = !{!25, !25, i64 0} !25 = !{!"long", !4, i64 0} !26 = !{!27} !27 = distinct !{!27, !28, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !28 = distinct !{!28, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIcEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !29 = distinct !{!29, !7}
(module $code_159.wasm (type (;0;) (func (param i32 i32 i32))) (type (;1;) (func (param i32) (result i32))) (type (;2;) (func (param i32 i32) (result i32))) (type (;3;) (func)) (type (;4;) (func (param i32 i32 i32) (result i32))) (type (;5;) (func (param i32))) (type (;6;) (func (param i32 i32))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ (type 2))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ (type 0))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ (type 1))) (import "env" "strlen" (func $strlen (type 1))) (import "env" "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ (type 0))) (import "env" "memmove" (func $memmove (type 4))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 1))) (import "env" "__cxa_throw" (func $__cxa_throw (type 0))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 2))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 5))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 3)) (func $solve_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_ (type 6) (param i32 i32) (local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 6 global.set $__stack_pointer local.get 6 i32.const 20 i32.add global.get $__memory_base i32.const 12 i32.add call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_ local.set 3 block ;; label = @1 loop ;; label = @2 local.get 1 i32.load offset=4 local.get 1 i32.load8_u offset=11 local.tee 2 local.get 2 i32.extend8_s local.tee 2 i32.const 0 i32.lt_s local.tee 5 select local.tee 4 local.get 7 i32.le_u if ;; label = @3 local.get 4 local.get 8 i32.eq if ;; label = @4 local.get 0 local.get 1 i32.load local.get 1 local.get 2 i32.const 0 i32.lt_s select local.tee 0 local.get 8 i32.add local.get 0 call $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_ br 3 (;@1;) end else block ;; label = @4 local.get 1 i32.load local.get 1 local.get 5 select local.get 7 i32.add i32.load8_u local.tee 5 i32.const 65 i32.sub i32.const 255 i32.and i32.const 25 i32.le_u if ;; label = @5 local.get 5 i32.const 32 i32.add local.set 5 br 1 (;@4;) end local.get 5 i32.const 97 i32.sub i32.const 255 i32.and i32.const 25 i32.le_u if ;; label = @5 local.get 5 i32.const 32 i32.sub local.set 5 br 1 (;@4;) end local.get 8 i32.const 1 i32.add local.set 8 end global.get $__stack_pointer i32.const 16 i32.sub local.tee 10 global.set $__stack_pointer block (result i32) ;; label = @4 local.get 6 i32.const 8 i32.add local.set 2 local.get 3 i32.load offset=4 local.get 3 i32.load8_u offset=11 local.tee 4 local.get 4 i32.extend8_s i32.const 0 i32.lt_s select local.tee 9 i32.const 1 i32.add local.tee 4 i32.const 2147483632 i32.lt_u if ;; label = @5 local.get 4 i32.const 10 i32.le_u if ;; label = @6 local.get 2 i32.const 0 i32.store offset=8 local.get 2 i64.const 0 i64.store align=4 local.get 2 local.get 4 i32.store8 offset=11 local.get 2 br 2 (;@4;) end local.get 4 i32.const 15 i32.or i32.const 1 i32.add local.tee 11 call $operator_new_unsigned_long_ local.set 12 local.get 2 local.get 4 i32.store offset=4 local.get 2 local.get 12 i32.store local.get 2 local.get 11 i32.const -2147483648 i32.or i32.store offset=8 local.get 2 br 1 (;@4;) end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const unreachable end local.tee 4 i32.load local.get 4 local.get 4 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 3 i32.load local.get 3 local.get 3 i32.load8_s offset=11 i32.const 0 i32.lt_s select local.get 9 call $memmove local.get 9 i32.add local.tee 4 local.get 5 i32.extend8_s i32.store8 local.get 4 i32.const 0 i32.store8 offset=1 local.get 10 i32.const 16 i32.add global.set $__stack_pointer local.get 3 i32.load8_s offset=11 i32.const 0 i32.lt_s if ;; label = @4 local.get 3 i32.load call $operator_delete_void*_ end local.get 3 local.get 2 i64.load align=4 i64.store align=4 local.get 3 local.get 2 i32.load offset=8 i32.store offset=8 local.get 2 i32.const 0 i32.store8 offset=11 local.get 2 i32.const 0 i32.store8 local.get 7 i32.const 1 i32.add local.set 7 local.get 2 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop br 1 (;@2;) end end local.get 0 local.get 3 i64.load align=4 i64.store align=4 local.get 0 local.get 3 i32.load offset=8 i32.store offset=8 local.get 3 i64.const 0 i64.store align=4 local.get 3 i32.const 0 i32.store offset=8 end local.get 3 call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::~basic_string__ drop local.get 6 i32.const 32 i32.add global.set $__stack_pointer) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1 (type 2) (param i32 i32) (result i32) local.get 0 local.get 1 local.get 1 call $strlen call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init_char_const*__unsigned_long_ local.get 0) (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1 (type 0) (param i32 i32 i32) (local i32 i32 i32) local.get 1 local.get 2 i32.sub local.tee 3 i32.const 2147483632 i32.lt_u if ;; label = @1 block ;; label = @2 local.get 3 i32.const 10 i32.le_u if ;; label = @3 local.get 0 local.get 3 i32.store8 offset=11 br 1 (;@2;) end local.get 3 i32.const 15 i32.or i32.const 1 i32.add local.tee 5 call $operator_new_unsigned_long_ local.set 4 local.get 0 local.get 5 i32.const -2147483648 i32.or i32.store offset=8 local.get 0 local.get 4 i32.store local.get 0 local.get 3 i32.store offset=4 local.get 4 local.set 0 end loop ;; label = @2 local.get 1 local.get 2 i32.eq i32.eqz if ;; label = @3 local.get 0 local.get 1 i32.const 1 i32.sub local.tee 1 i32.load8_u i32.store8 local.get 0 i32.const 1 i32.add local.set 0 br 1 (;@2;) end end local.get 0 i32.const 0 i32.store8 return end call $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const unreachable) (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__throw_length_error_abi:v160006____const (type 3) (local i32 i32 i32 i32) global.get $std::length_error::~length_error__ local.set 1 global.get $typeinfo_for_std::length_error local.set 2 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 0 local.get 3 i32.const 8 i32.add i32.store local.get 0 local.get 2 local.get 1 call $__cxa_throw unreachable) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z5solveNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE" (func $solve_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>_)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B7v160006IDnEEPKc" (func $std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::basic_string_abi:v160006_<std::nullptr_t>_char_const*_.1)) (export "_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initINS_16reverse_iteratorINS_11__wrap_iterIPcEEEEEENS_9enable_ifIXsr27__is_cpp17_forward_iteratorIT_EE5valueEvE4typeESD_SD_" (func $std::__2::enable_if<__is_cpp17_forward_iterator<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>::value__void>::type_std::__2::basic_string<char__std::__2::char_traits<char>__std::__2::allocator<char>>::__init<std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>>_std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>__std::__2::reverse_iterator<std::__2::__wrap_iter<char*>>_.1)) (data $.rodata (global.get $__memory_base) "basic_string\00"))
CPP/163
/* Given two positive integers a and b, return the even digits between a and b, in ascending order. For example: generate_integers(2, 8) => {2, 4, 6, 8} generate_integers(8, 2) => {2, 4, 6, 8} generate_integers(10, 14) => {} */ #include<stdio.h> #include<vector> using namespace std; vector<int> generate_integers(int a,int b){
#include<stdio.h> #include<vector> using namespace std; #include<algorithm> #include<math.h> #include<stdlib.h> vector<int> generate_integers(int a,int b){
int m; if (b<a) { m=a;a=b;b=m; } vector<int> out={}; for (int i=a;i<=b;i++) if (i<10 and i%2==0) out.push_back(i); return out; }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(generate_integers(2, 10) , {2, 4, 6, 8})); assert (issame(generate_integers(10, 2) , {2, 4, 6, 8})); assert (issame(generate_integers(132, 2) , {2, 4, 6, 8})); assert (issame(generate_integers(17,89) , {})); }
#undef NDEBUG #include<assert.h> bool issame(vector<int> a,vector<int>b){ if (a.size()!=b.size()) return false; for (int i=0;i<a.size();i++) { if (a[i]!=b[i]) return false; } return true; } int main(){ assert (issame(generate_integers(2, 8) , {2, 4, 6, 8})); assert (issame(generate_integers(8, 2) , {2, 4, 6, 8})); assert (issame(generate_integers(10,14) , {})); }
; ModuleID = 'c_code/code_160.cpp' source_filename = "c_code/code_160.cpp" target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20" target triple = "wasm32-unknown-emscripten" %"class.std::__2::vector" = type { ptr, ptr, %"class.std::__2::__compressed_pair" } %"class.std::__2::__compressed_pair" = type { %"struct.std::__2::__compressed_pair_elem" } %"struct.std::__2::__compressed_pair_elem" = type { ptr } %"struct.std::__2::__split_buffer" = type { ptr, ptr, ptr, %"class.std::__2::__compressed_pair.1" } %"class.std::__2::__compressed_pair.1" = type { %"struct.std::__2::__compressed_pair_elem", %"struct.std::__2::__compressed_pair_elem.2" } %"struct.std::__2::__compressed_pair_elem.2" = type { ptr } $_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_ = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_ = comdat any $_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev = comdat any $_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev = comdat any $_ZNSt3__220__throw_length_errorB7v160006EPKc = comdat any $_ZNSt12length_errorC2B7v160006EPKc = comdat any $_ZNSt3__29allocatorIiE8allocateB7v160006Em = comdat any $_ZSt28__throw_bad_array_new_lengthB7v160006v = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev = comdat any $_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE = comdat any @.str = private unnamed_addr constant [7 x i8] c"vector\00", align 1 @_ZTISt12length_error = external constant ptr @_ZTVSt12length_error = external unnamed_addr constant { [5 x ptr] }, align 4 @_ZTISt20bad_array_new_length = external constant ptr ; Function Attrs: minsize optsize define void @_Z17generate_integersii(ptr noalias sret(%"class.std::__2::vector") align 4 %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 { %4 = alloca i32, align 4 %5 = tail call i32 @llvm.smax.i32(i32 %2, i32 %1) %6 = tail call i32 @llvm.smin.i32(i32 %2, i32 %1) store ptr null, ptr %0, align 4, !tbaa !3 %7 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 store ptr null, ptr %7, align 4, !tbaa !10 %8 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 store ptr null, ptr %8, align 4, !tbaa !11 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #13 br label %9 9: ; preds = %20, %3 %10 = phi i32 [ %6, %3 ], [ %22, %20 ] store i32 %10, ptr %4, align 4, !tbaa !12 %11 = icmp sgt i32 %10, %5 br i1 %11, label %12, label %13 12: ; preds = %9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #13 ret void 13: ; preds = %9 %14 = icmp slt i32 %10, 10 %15 = and i32 %10, 1 %16 = icmp eq i32 %15, 0 %17 = and i1 %14, %16 br i1 %17, label %18, label %20 18: ; preds = %13 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %4) #14 %19 = load i32, ptr %4, align 4, !tbaa !12 br label %20 20: ; preds = %13, %18 %21 = phi i32 [ %10, %13 ], [ %19, %18 ] %22 = add nsw i32 %21, 1 br label %9, !llvm.loop !14 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: inlinehint minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE9push_backB7v160006ERKi(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #2 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %6 = load ptr, ptr %5, align 4, !tbaa !16 %7 = icmp eq ptr %4, %6 br i1 %7, label %11, label %8 8: ; preds = %2 %9 = load i32, ptr %1, align 4, !tbaa !12 store i32 %9, ptr %4, align 4, !tbaa !12 %10 = getelementptr inbounds i32, ptr %4, i32 1 store ptr %10, ptr %3, align 4, !tbaa !10 br label %12 11: ; preds = %2 tail call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) #14 br label %12 12: ; preds = %11, %8 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: minsize nobuiltin nounwind optsize declare void @_ZdlPv(ptr noundef) local_unnamed_addr #3 ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr void @_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(4) %1) local_unnamed_addr #4 comdat { %3 = alloca %"struct.std::__2::__split_buffer", align 4 %4 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #13 %5 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %6 = load ptr, ptr %5, align 4, !tbaa !10 %7 = load ptr, ptr %0, align 4, !tbaa !3 %8 = ptrtoint ptr %6 to i32 %9 = ptrtoint ptr %7 to i32 %10 = sub i32 %8, %9 %11 = ashr exact i32 %10, 2 %12 = add nsw i32 %11, 1 %13 = tail call noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %12) #14 %14 = load ptr, ptr %5, align 4, !tbaa !10 %15 = load ptr, ptr %0, align 4, !tbaa !3 %16 = ptrtoint ptr %14 to i32 %17 = ptrtoint ptr %15 to i32 %18 = sub i32 %16, %17 %19 = ashr exact i32 %18, 2 %20 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull align 4 dereferenceable(20) %3, i32 noundef %13, i32 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %4) #14 %21 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %3, i32 0, i32 2 %22 = load ptr, ptr %21, align 4, !tbaa !17 %23 = load i32, ptr %1, align 4, !tbaa !12 store i32 %23, ptr %22, align 4, !tbaa !12 %24 = getelementptr inbounds i32, ptr %22, i32 1 store ptr %24, ptr %21, align 4, !tbaa !17 call void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %3) #14 %25 = call noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull align 4 dereferenceable(20) %3) #15 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #13 ret void } ; Function Attrs: inlinehint minsize mustprogress optsize define linkonce_odr hidden noundef i32 @_ZNKSt3__26vectorIiNS_9allocatorIiEEE11__recommendB7v160006Em(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #4 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #16 unreachable 5: ; preds = %2 %6 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %7 = load ptr, ptr %6, align 4, !tbaa !16 %8 = load ptr, ptr %0, align 4, !tbaa !3 %9 = ptrtoint ptr %7 to i32 %10 = ptrtoint ptr %8 to i32 %11 = sub i32 %9, %10 %12 = icmp ult i32 %11, 2147483644 %13 = ashr exact i32 %11, 1 %14 = tail call i32 @llvm.umax.i32(i32 %13, i32 %1) %15 = select i1 %12, i32 %14, i32 1073741823 ret i32 %15 } ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEEC2EmmS3_(ptr noundef nonnull returned align 4 dereferenceable(20) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(1) %3) unnamed_addr #0 comdat { %5 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3 store ptr null, ptr %5, align 4, !tbaa !11 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 3, i32 1 store ptr %3, ptr %6, align 4, !tbaa !16 %7 = icmp eq i32 %1, 0 br i1 %7, label %10, label %8 8: ; preds = %4 %9 = tail call noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %3, i32 noundef %1) #14, !noalias !21 br label %10 10: ; preds = %4, %8 %11 = phi ptr [ %9, %8 ], [ null, %4 ] store ptr %11, ptr %0, align 4, !tbaa !24 %12 = getelementptr inbounds i32, ptr %11, i32 %2 %13 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 store ptr %12, ptr %13, align 4, !tbaa !17 %14 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 store ptr %12, ptr %14, align 4, !tbaa !25 %15 = getelementptr inbounds i32, ptr %11, i32 %1 store ptr %15, ptr %5, align 4, !tbaa !16 ret ptr %0 } ; Function Attrs: minsize optsize define linkonce_odr hidden void @_ZNSt3__26vectorIiNS_9allocatorIiEEE26__swap_out_circular_bufferERNS_14__split_bufferIiRS2_EE(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(20) %1) local_unnamed_addr #0 comdat { %3 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 1 %4 = load ptr, ptr %3, align 4, !tbaa !10 %5 = load ptr, ptr %0, align 4, !tbaa !3 %6 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 1 %7 = load ptr, ptr %6, align 4, !tbaa !25 br label %8 8: ; preds = %12, %2 %9 = phi ptr [ %4, %2 ], [ %13, %12 ] %10 = phi ptr [ %7, %2 ], [ %15, %12 ] %11 = icmp eq ptr %9, %5 br i1 %11, label %16, label %12 12: ; preds = %8 %13 = getelementptr inbounds i32, ptr %9, i32 -1 %14 = load i32, ptr %13, align 4, !tbaa !12, !noalias !26 %15 = getelementptr inbounds i32, ptr %10, i32 -1 store i32 %14, ptr %15, align 4, !tbaa !12, !noalias !26 br label %8, !llvm.loop !31 16: ; preds = %8 store ptr %10, ptr %6, align 4, !tbaa !25 %17 = load ptr, ptr %0, align 4, !tbaa !16 store ptr %10, ptr %0, align 4, !tbaa !16 store ptr %17, ptr %6, align 4, !tbaa !16 %18 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 2 %19 = load ptr, ptr %3, align 4, !tbaa !16 %20 = load ptr, ptr %18, align 4, !tbaa !16 store ptr %20, ptr %3, align 4, !tbaa !16 store ptr %19, ptr %18, align 4, !tbaa !16 %21 = getelementptr inbounds %"class.std::__2::vector", ptr %0, i32 0, i32 2 %22 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %1, i32 0, i32 3 %23 = load ptr, ptr %21, align 4, !tbaa !16 %24 = load ptr, ptr %22, align 4, !tbaa !16 store ptr %24, ptr %21, align 4, !tbaa !16 store ptr %23, ptr %22, align 4, !tbaa !16 %25 = load ptr, ptr %6, align 4, !tbaa !25 store ptr %25, ptr %1, align 4, !tbaa !24 ret void } ; Function Attrs: minsize nounwind optsize define linkonce_odr hidden noundef ptr @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEED2Ev(ptr noundef nonnull returned align 4 dereferenceable(20) %0) unnamed_addr #5 comdat { tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) #15 %2 = load ptr, ptr %0, align 4, !tbaa !24 %3 = icmp eq ptr %2, null br i1 %3, label %5, label %4 4: ; preds = %1 tail call void @_ZdlPv(ptr noundef nonnull %2) #17 br label %5 5: ; preds = %4, %1 ret ptr %0 } ; Function Attrs: minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNKSt3__26vectorIiNS_9allocatorIiEEE20__throw_length_errorB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) local_unnamed_addr #6 comdat { tail call void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef nonnull @.str) #16 unreachable } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZNSt3__220__throw_length_errorB7v160006EPKc(ptr noundef %0) local_unnamed_addr #7 comdat { %2 = tail call ptr @__cxa_allocate_exception(i32 8) #13 %3 = tail call noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %0) #14 tail call void @__cxa_throw(ptr nonnull %2, ptr nonnull @_ZTISt12length_error, ptr nonnull @_ZNSt12length_errorD1Ev) #18 unreachable } declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr ; Function Attrs: minsize optsize define linkonce_odr hidden noundef ptr @_ZNSt12length_errorC2B7v160006EPKc(ptr noundef nonnull returned align 4 dereferenceable(8) %0, ptr noundef %1) unnamed_addr #0 comdat { %3 = tail call noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef %1) #14 store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTVSt12length_error, i32 0, inrange i32 0, i32 2), ptr %0, align 4, !tbaa !32 ret ptr %0 } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt12length_errorD1Ev(ptr noundef nonnull returned align 4 dereferenceable(8)) unnamed_addr #5 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr ; Function Attrs: minsize optsize declare noundef ptr @_ZNSt11logic_errorC2EPKc(ptr noundef nonnull returned align 4 dereferenceable(8), ptr noundef) unnamed_addr #0 ; Function Attrs: minsize mustprogress optsize define linkonce_odr hidden noundef ptr @_ZNSt3__29allocatorIiE8allocateB7v160006Em(ptr noundef nonnull align 1 dereferenceable(1) %0, i32 noundef %1) local_unnamed_addr #8 comdat { %3 = icmp ugt i32 %1, 1073741823 br i1 %3, label %4, label %5 4: ; preds = %2 tail call void @_ZSt28__throw_bad_array_new_lengthB7v160006v() #16 unreachable 5: ; preds = %2 %6 = shl nuw i32 %1, 2 %7 = tail call noalias noundef nonnull ptr @_Znwm(i32 noundef %6) #19 ret ptr %7 } ; Function Attrs: inlinehint minsize mustprogress noreturn optsize define linkonce_odr hidden void @_ZSt28__throw_bad_array_new_lengthB7v160006v() local_unnamed_addr #7 comdat { %1 = tail call ptr @__cxa_allocate_exception(i32 4) #13 %2 = tail call noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %1) #15 tail call void @__cxa_throw(ptr nonnull %1, ptr nonnull @_ZTISt20bad_array_new_length, ptr nonnull @_ZNSt20bad_array_new_lengthD1Ev) #18 unreachable } ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthC1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nounwind optsize declare noundef ptr @_ZNSt20bad_array_new_lengthD1Ev(ptr noundef nonnull returned align 4 dereferenceable(4)) unnamed_addr #5 ; Function Attrs: minsize nobuiltin optsize allocsize(0) declare noundef nonnull ptr @_Znwm(i32 noundef) local_unnamed_addr #9 ; Function Attrs: minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE5clearB7v160006Ev(ptr noundef nonnull align 4 dereferenceable(20) %0) local_unnamed_addr #10 comdat { %2 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 1 %3 = load ptr, ptr %2, align 4, !tbaa !25 tail call void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %3) #15 ret void } ; Function Attrs: inlinehint minsize mustprogress nounwind optsize define linkonce_odr hidden void @_ZNSt3__214__split_bufferIiRNS_9allocatorIiEEE17__destruct_at_endB7v160006EPiNS_17integral_constantIbLb0EEE(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef %1) local_unnamed_addr #11 comdat { %3 = getelementptr inbounds %"struct.std::__2::__split_buffer", ptr %0, i32 0, i32 2 %4 = load ptr, ptr %3, align 4, !tbaa !17 br label %5 5: ; preds = %8, %2 %6 = phi ptr [ %9, %8 ], [ %4, %2 ] %7 = icmp eq ptr %6, %1 br i1 %7, label %10, label %8 8: ; preds = %5 %9 = getelementptr inbounds i32, ptr %6, i32 -1 store ptr %9, ptr %3, align 4, !tbaa !17 br label %5, !llvm.loop !34 10: ; preds = %5 ret void } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.umax.i32(i32, i32) #12 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #12 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #12 attributes #0 = { minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { inlinehint minsize optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #3 = { minsize nobuiltin nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #4 = { inlinehint minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #5 = { minsize nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #6 = { minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #7 = { inlinehint minsize mustprogress noreturn optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #8 = { minsize mustprogress optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #9 = { minsize nobuiltin optsize allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #10 = { minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #11 = { inlinehint minsize mustprogress nounwind optsize "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+mutable-globals,+sign-ext" } attributes #12 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #13 = { nounwind } attributes #14 = { minsize optsize } attributes #15 = { minsize nounwind optsize } attributes #16 = { minsize noreturn optsize } attributes #17 = { builtin minsize nounwind optsize } attributes #18 = { noreturn } attributes #19 = { builtin minsize optsize allocsize(0) } !llvm.module.flags = !{!0, !1} !llvm.ident = !{!2} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{!"clang version 18.0.0 (https://github.com/llvm/llvm-project 75501f53624de92aafce2f1da698b249a7293dc7)"} !3 = !{!4, !5, i64 0} !4 = !{!"_ZTSNSt3__26vectorIiNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !8, i64 8} !5 = !{!"any pointer", !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C++ TBAA"} !8 = !{!"_ZTSNSt3__217__compressed_pairIPiNS_9allocatorIiEEEE", !9, i64 0} !9 = !{!"_ZTSNSt3__222__compressed_pair_elemIPiLi0ELb0EEE", !5, i64 0} !10 = !{!4, !5, i64 4} !11 = !{!9, !5, i64 0} !12 = !{!13, !13, i64 0} !13 = !{!"int", !6, i64 0} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.mustprogress"} !16 = !{!5, !5, i64 0} !17 = !{!18, !5, i64 8} !18 = !{!"_ZTSNSt3__214__split_bufferIiRNS_9allocatorIiEEEE", !5, i64 0, !5, i64 4, !5, i64 8, !19, i64 12} !19 = !{!"_ZTSNSt3__217__compressed_pairIPiRNS_9allocatorIiEEEE", !9, i64 0, !20, i64 4} !20 = !{!"_ZTSNSt3__222__compressed_pair_elemIRNS_9allocatorIiEELi1ELb0EEE", !5, i64 0} !21 = !{!22} !22 = distinct !{!22, !23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m: argument 0"} !23 = distinct !{!23, !"_ZNSt3__219__allocate_at_leastB7v160006INS_9allocatorIiEEEENS_19__allocation_resultINS_16allocator_traitsIT_E7pointerEEERS5_m"} !24 = !{!18, !5, i64 0} !25 = !{!18, !5, i64 4} !26 = !{!27, !29} !27 = distinct !{!27, !28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_: argument 0"} !28 = distinct !{!28, !"_ZNKSt3__211__move_loopINS_17_ClassicAlgPolicyEEclB7v160006INS_16reverse_iteratorIPiEES6_S6_EENS_4pairIT_T1_EES8_T0_S9_"} !29 = distinct !{!29, !30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_: argument 0"} !30 = distinct !{!30, !"_ZNSt3__221__unwrap_and_dispatchB7v160006INS_10__overloadINS_11__move_loopINS_17_ClassicAlgPolicyEEENS_14__move_trivialEEENS_16reverse_iteratorIPiEES9_S9_Li0EEENS_4pairIT0_T2_EESB_T1_SC_"} !31 = distinct !{!31, !15} !32 = !{!33, !33, i64 0} !33 = !{!"vtable pointer", !7, i64 0} !34 = distinct !{!34, !15}
(module $code_160.wasm (type (;0;) (func (param i32) (result i32))) (type (;1;) (func (param i32 i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32))) (type (;4;) (func (param i32 i32) (result i32))) (type (;5;) (func)) (import "env" "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ (type 1))) (import "env" "_ZdlPv" (func $operator_delete_void*_ (type 3))) (import "env" "__cxa_allocate_exception" (func $__cxa_allocate_exception (type 0))) (import "env" "__cxa_throw" (func $__cxa_throw (type 2))) (import "env" "_ZNSt11logic_errorC2EPKc" (func $std::logic_error::logic_error_char_const*_ (type 4))) (import "env" "_Znwm" (func $operator_new_unsigned_long_ (type 0))) (import "env" "_ZNSt20bad_array_new_lengthC1Ev" (func $std::bad_array_new_length::bad_array_new_length__ (type 0))) (import "env" "__stack_pointer" (global $__stack_pointer (mut i32))) (import "env" "__memory_base" (global $__memory_base i32)) (import "GOT.func" "_ZNSt12length_errorD1Ev" (global $std::length_error::~length_error__ (mut i32))) (import "GOT.mem" "_ZTISt12length_error" (global $typeinfo_for_std::length_error (mut i32))) (import "GOT.mem" "_ZTVSt12length_error" (global $vtable_for_std::length_error (mut i32))) (import "GOT.func" "_ZNSt20bad_array_new_lengthD1Ev" (global $std::bad_array_new_length::~bad_array_new_length__ (mut i32))) (import "GOT.mem" "_ZTISt20bad_array_new_length" (global $typeinfo_for_std::bad_array_new_length (mut i32))) (import "env" "memory" (memory (;0;) 1)) (func $__wasm_call_ctors (type 5)) (func $generate_integers_int__int_ (type 2) (param i32 i32 i32) (local i32 i32) global.get $__stack_pointer i32.const 16 i32.sub local.tee 4 global.set $__stack_pointer local.get 0 i32.const 0 i32.store offset=8 local.get 0 i64.const 0 i64.store align=4 local.get 2 local.get 1 local.get 1 local.get 2 i32.gt_s select local.set 3 local.get 2 local.get 1 local.get 1 local.get 2 i32.lt_s select local.set 1 loop ;; label = @1 local.get 4 local.get 3 i32.store offset=12 local.get 1 local.get 3 i32.ge_s if ;; label = @2 local.get 3 i32.const 1 i32.and local.get 3 i32.const 9 i32.gt_s i32.or if (result i32) ;; label = @3 local.get 3 else local.get 4 i32.const 12 i32.add local.set 3 block ;; label = @4 local.get 0 i32.load offset=4 local.tee 2 local.get 0 i32.load offset=8 i32.ne if ;; label = @5 local.get 2 local.get 3 i32.load i32.store local.get 0 local.get 2 i32.const 4 i32.add i32.store offset=4 br 1 (;@4;) end local.get 0 local.get 3 call $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_ end local.get 4 i32.load offset=12 end i32.const 1 i32.add local.set 3 br 1 (;@1;) end end local.get 4 i32.const 16 i32.add global.set $__stack_pointer) (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1 (type 1) (param i32 i32) (local i32 i32 i32 i32) global.get $__stack_pointer i32.const 32 i32.sub local.tee 2 global.set $__stack_pointer local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s i32.const 1 i32.add local.tee 3 i32.const 1073741824 i32.ge_u if ;; label = @1 global.get $std::length_error::~length_error__ local.set 0 global.get $typeinfo_for_std::length_error local.set 1 i32.const 8 call $__cxa_allocate_exception global.get $vtable_for_std::length_error local.set 3 global.get $__memory_base call $std::logic_error::logic_error_char_const*_ local.tee 2 local.get 3 i32.const 8 i32.add i32.store local.get 2 local.get 1 local.get 0 call $__cxa_throw unreachable end i32.const 1073741823 local.get 0 i32.load offset=8 local.get 0 i32.load i32.sub local.tee 4 i32.const 1 i32.shr_s local.tee 5 local.get 3 local.get 3 local.get 5 i32.lt_u select local.get 4 i32.const 2147483644 i32.ge_u select local.set 4 local.get 0 i32.load offset=4 local.get 0 i32.load i32.sub i32.const 2 i32.shr_s local.set 5 i32.const 0 local.set 3 local.get 2 i32.const 0 i32.store offset=24 local.get 2 local.get 0 i32.const 8 i32.add i32.store offset=28 local.get 4 if ;; label = @1 local.get 4 i32.const 1073741824 i32.ge_u if ;; label = @2 global.get $std::bad_array_new_length::~bad_array_new_length__ local.set 0 global.get $typeinfo_for_std::bad_array_new_length local.set 1 i32.const 4 call $__cxa_allocate_exception call $std::bad_array_new_length::bad_array_new_length__ local.get 1 local.get 0 call $__cxa_throw unreachable end local.get 4 i32.const 2 i32.shl call $operator_new_unsigned_long_ local.set 3 end local.get 2 local.get 3 i32.store offset=12 local.get 2 local.get 3 local.get 5 i32.const 2 i32.shl i32.add local.tee 5 i32.store offset=20 local.get 2 local.get 3 local.get 4 i32.const 2 i32.shl i32.add i32.store offset=24 local.get 2 local.get 5 i32.store offset=16 local.get 2 i32.load offset=20 local.tee 3 local.get 1 i32.load i32.store local.get 2 local.get 3 i32.const 4 i32.add i32.store offset=20 local.get 2 i32.load offset=16 local.set 1 local.get 0 i32.load local.set 4 local.get 0 i32.load offset=4 local.set 3 loop ;; label = @1 local.get 3 local.get 4 i32.ne if ;; label = @2 local.get 1 i32.const 4 i32.sub local.tee 1 local.get 3 i32.const 4 i32.sub local.tee 3 i32.load i32.store br 1 (;@1;) end end local.get 2 local.get 1 i32.store offset=16 local.get 0 i32.load local.set 3 local.get 0 local.get 1 i32.store local.get 2 local.get 3 i32.store offset=16 local.get 0 i32.load offset=4 local.set 1 local.get 0 local.get 2 i32.load offset=20 i32.store offset=4 local.get 2 local.get 1 i32.store offset=20 local.get 0 i32.load offset=8 local.set 1 local.get 0 local.get 2 i32.load offset=24 i32.store offset=8 local.get 2 local.get 1 i32.store offset=24 local.get 2 local.get 2 i32.load offset=16 i32.store offset=12 local.get 2 i32.load offset=16 local.set 1 local.get 2 i32.load offset=20 local.set 0 loop ;; label = @1 local.get 0 local.get 1 i32.ne if ;; label = @2 local.get 2 local.get 0 i32.const 4 i32.sub local.tee 0 i32.store offset=20 br 1 (;@1;) end end local.get 2 i32.load offset=12 local.tee 0 if ;; label = @1 local.get 0 call $operator_delete_void*_ end local.get 2 i32.const 32 i32.add global.set $__stack_pointer) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__wasm_apply_data_relocs" (func $__wasm_call_ctors)) (export "_Z17generate_integersii" (func $generate_integers_int__int_)) (export "_ZNSt3__26vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_" (func $void_std::__2::vector<int__std::__2::allocator<int>>::__push_back_slow_path<int_const&>_int_const&_.1)) (data $.rodata (global.get $__memory_base) "vector\00"))