Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Algol68
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C with Coccinelle
C++ with Coccinelle
C++ (Circle)
CIRCT
Clean
Clojure
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Helion
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Pony
PTX
Python
Racket
Raku
Ruby
Rust
Sail
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Yul (Solidity IR)
Zig
Javascript
GIMPLE
Ygen
sway
llvm source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 20.1.0
clang 21.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
hexagon-clang 16.0.5
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 20.1.0
llc 21.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 20.1.0
opt 21.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
%"struct.std::__1::basic_string<char>::__short" = type { %struct.anon.0, [23 x i8] } %struct.anon.0 = type { i8 } %"class.std::__1::basic_string" = type { %struct.anon } %struct.anon = type { %"union.std::__1::basic_string<char>::__rep" } %"union.std::__1::basic_string<char>::__rep" = type { %"struct.std::__1::basic_string<char>::__long" } %"struct.std::__1::basic_string<char>::__long" = type { %struct.anon.1, i64, ptr } %struct.anon.1 = type { i64 } $_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE23__reset_internal_bufferB8se220000Ev = comdat any $__clang_call_terminate = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__annotate_deleteB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev = comdat any $_ZNSt3__116allocator_traitsINS_9allocatorIcEEE10deallocateB8se220000ERS2_Pcm = comdat any $_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE14__get_long_capB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE31__annotate_contiguous_containerB8se220000EPKvS7_ = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4sizeB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8capacityB8se220000Ev = comdat any $_ZNSt3__112__to_addressB8se220000IKcEEPT_S3_ = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__get_pointerB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE19__get_short_pointerB8se220000Ev = comdat any $_ZNSt3__114pointer_traitsIPKcE10pointer_toB8se220000ERS1_ = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE15__get_long_sizeB8se220000Ev = comdat any $_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE16__get_short_sizeB8se220000Ev = comdat any $_ZNSt3__19allocatorIcE10deallocateB8se220000EPcm = comdat any $_ZNSt3__119__libcpp_deallocateB8se220000IcEEvPNS_15__type_identityIT_E4typeENS_15__element_countEm = comdat any $_ZNSt3__124__is_overaligned_for_newB8se220000Em = comdat any define dso_local void @_Z4testRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(24) %str) #0 { entry: %str.addr = alloca ptr, align 8 store ptr %str, ptr %str.addr, align 8 %0 = load ptr, ptr %str.addr, align 8 call void @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7 ret void } define available_externally void @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(ptr dead_on_return noundef nonnull align 8 dereferenceable(24) %this) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 invoke void @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE23__reset_internal_bufferB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) to label %invoke.cont unwind label %terminate.lpad invoke.cont: ret void terminate.lpad: %0 = landingpad { ptr, i32 } catch ptr null %1 = extractvalue { ptr, i32 } %0, 0 call void @__clang_call_terminate(ptr %1) #8 unreachable } define linkonce_odr hidden void @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE23__reset_internal_bufferB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 %ref.tmp = alloca %"struct.std::__1::basic_string<char>::__short", align 1 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 call void @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__annotate_deleteB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %call = call noundef zeroext i1 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br i1 %call, label %if.then, label %if.end if.then: %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %call2 = call noundef ptr @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %call3 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE14__get_long_capB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 call void @_ZNSt3__116allocator_traitsINS_9allocatorIcEEE10deallocateB8se220000ERS2_Pcm(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %call2, i64 noundef %call3) #7 br label %if.end if.end: call void @llvm.lifetime.start.p0(ptr %ref.tmp) #7 call void @llvm.memset.p0.i64(ptr align 1 %ref.tmp, i8 0, i64 24, i1 false) %1 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %1, i32 0, i32 0 call void @llvm.memcpy.p0.p0.i64(ptr align 8 %__rep_, ptr align 1 %ref.tmp, i64 24, i1 false) call void @llvm.lifetime.end.p0(ptr %ref.tmp) #7 ret void } declare i32 @__gxx_personality_v0(...) define linkonce_odr hidden void @__clang_call_terminate(ptr noundef %0) #2 comdat { %2 = call ptr @__cxa_begin_catch(ptr %0) #7 call void @_ZSt9terminatev() #8 unreachable } declare ptr @__cxa_begin_catch(ptr) declare void @_ZSt9terminatev() define linkonce_odr hidden void @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__annotate_deleteB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 personality ptr @__gxx_personality_v0 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %call = call noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %call2 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %add.ptr = getelementptr inbounds nuw i8, ptr %call, i64 %call2 %add.ptr3 = getelementptr inbounds i8, ptr %add.ptr, i64 1 %call4 = call noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %call5 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8capacityB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %add.ptr6 = getelementptr inbounds nuw i8, ptr %call4, i64 %call5 %add.ptr7 = getelementptr inbounds i8, ptr %add.ptr6, i64 1 invoke void @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE31__annotate_contiguous_containerB8se220000EPKvS7_(ptr noundef nonnull align 8 dereferenceable(24) %this1, ptr noundef %add.ptr3, ptr noundef %add.ptr7) to label %invoke.cont unwind label %terminate.lpad invoke.cont: ret void terminate.lpad: %0 = landingpad { ptr, i32 } catch ptr null %1 = extractvalue { ptr, i32 } %0, 0 call void @__clang_call_terminate(ptr %1) #8 unreachable } define linkonce_odr hidden noundef zeroext i1 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %1 = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__short", ptr %__rep_, i32 0, i32 0 %bf.load = load i8, ptr %1, align 8 %bf.clear = and i8 %bf.load, 1 %tobool = icmp ne i8 %bf.clear, 0 ret i1 %tobool } define linkonce_odr hidden void @_ZNSt3__116allocator_traitsINS_9allocatorIcEEE10deallocateB8se220000ERS2_Pcm(ptr noundef nonnull align 1 dereferenceable(1) %__a, ptr noundef %__p, i64 noundef %__n) #0 comdat align 2 { entry: %__a.addr = alloca ptr, align 8 %__p.addr = alloca ptr, align 8 %__n.addr = alloca i64, align 8 store ptr %__a, ptr %__a.addr, align 8 store ptr %__p, ptr %__p.addr, align 8 store i64 %__n, ptr %__n.addr, align 8 %0 = load ptr, ptr %__a.addr, align 8 %1 = load ptr, ptr %__p.addr, align 8 %2 = load i64, ptr %__n.addr, align 8 call void @_ZNSt3__19allocatorIcE10deallocateB8se220000EPcm(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, i64 noundef %2) #7 ret void } define linkonce_odr hidden noundef ptr @_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %__data_ = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__long", ptr %__rep_, i32 0, i32 2 %1 = load ptr, ptr %__data_, align 8 ret ptr %1 } define linkonce_odr hidden noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE14__get_long_capB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %1 = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__long", ptr %__rep_, i32 0, i32 0 %bf.load = load i64, ptr %1, align 8 %bf.lshr = lshr i64 %bf.load, 1 %mul = mul i64 %bf.lshr, 2 ret i64 %mul } declare void @llvm.lifetime.start.p0(ptr captures(none)) #3 declare void @llvm.memset.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #4 declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #5 declare void @llvm.lifetime.end.p0(ptr captures(none)) #3 define linkonce_odr hidden void @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE31__annotate_contiguous_containerB8se220000EPKvS7_(ptr noundef nonnull align 8 dereferenceable(24) %this, ptr noundef %__old_mid, ptr noundef %__new_mid) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 %__old_mid.addr = alloca ptr, align 8 %__new_mid.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 store ptr %__old_mid, ptr %__old_mid.addr, align 8 store ptr %__new_mid, ptr %__new_mid.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 ret void } define linkonce_odr hidden noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4dataB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %call = call noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__get_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 %call2 = call noundef ptr @_ZNSt3__112__to_addressB8se220000IKcEEPT_S3_(ptr noundef %call) #7 ret ptr %call2 } define linkonce_odr hidden noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %call = call noundef zeroext i1 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br i1 %call, label %cond.true, label %cond.false cond.true: %call2 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE15__get_long_sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br label %cond.end cond.false: %call3 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE16__get_short_sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br label %cond.end cond.end: %cond = phi i64 [ %call2, %cond.true ], [ %call3, %cond.false ] ret i64 %cond } define linkonce_odr hidden noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8capacityB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %call = call noundef zeroext i1 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br i1 %call, label %cond.true, label %cond.false cond.true: %call2 = call noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE14__get_long_capB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br label %cond.end cond.false: br label %cond.end cond.end: %cond = phi i64 [ %call2, %cond.true ], [ 23, %cond.false ] %sub = sub i64 %cond, 1 ret i64 %sub } define linkonce_odr hidden noundef ptr @_ZNSt3__112__to_addressB8se220000IKcEEPT_S3_(ptr noundef %__p) #0 comdat { entry: %__p.addr = alloca ptr, align 8 store ptr %__p, ptr %__p.addr, align 8 %0 = load ptr, ptr %__p.addr, align 8 ret ptr %0 } define linkonce_odr hidden noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE13__get_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %call = call noundef zeroext i1 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__is_longB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br i1 %call, label %cond.true, label %cond.false cond.true: %call2 = call noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br label %cond.end cond.false: %call3 = call noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE19__get_short_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this1) #7 br label %cond.end cond.end: %cond = phi ptr [ %call2, %cond.true ], [ %call3, %cond.false ] ret ptr %cond } define linkonce_odr hidden noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE18__get_long_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %__data_ = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__long", ptr %__rep_, i32 0, i32 2 %1 = load ptr, ptr %__data_, align 8 ret ptr %1 } define linkonce_odr hidden noundef ptr @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE19__get_short_pointerB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %__data_ = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__short", ptr %__rep_, i32 0, i32 1 %arrayidx = getelementptr inbounds [23 x i8], ptr %__data_, i64 0, i64 0 %call = call noundef ptr @_ZNSt3__114pointer_traitsIPKcE10pointer_toB8se220000ERS1_(ptr noundef nonnull align 1 dereferenceable(1) %arrayidx) #7 ret ptr %call } define linkonce_odr hidden noundef ptr @_ZNSt3__114pointer_traitsIPKcE10pointer_toB8se220000ERS1_(ptr noundef nonnull align 1 dereferenceable(1) %__r) #0 comdat align 2 { entry: %__r.addr = alloca ptr, align 8 store ptr %__r, ptr %__r.addr, align 8 %0 = load ptr, ptr %__r.addr, align 8 ret ptr %0 } define linkonce_odr hidden noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE15__get_long_sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %__size_ = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__long", ptr %__rep_, i32 0, i32 1 %1 = load i64, ptr %__size_, align 8 ret i64 %1 } define linkonce_odr hidden noundef i64 @_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE16__get_short_sizeB8se220000Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 store ptr %this, ptr %this.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = getelementptr inbounds nuw %"class.std::__1::basic_string", ptr %this1, i32 0, i32 0 %__rep_ = getelementptr inbounds nuw %struct.anon, ptr %0, i32 0, i32 0 %1 = getelementptr inbounds nuw %"struct.std::__1::basic_string<char>::__short", ptr %__rep_, i32 0, i32 0 %bf.load = load i8, ptr %1, align 8 %bf.lshr = lshr i8 %bf.load, 1 %conv = zext i8 %bf.lshr to i64 ret i64 %conv } define linkonce_odr hidden void @_ZNSt3__19allocatorIcE10deallocateB8se220000EPcm(ptr noundef nonnull align 1 dereferenceable(1) %this, ptr noundef %__p, i64 noundef %__n) #0 comdat align 2 { entry: %this.addr = alloca ptr, align 8 %__p.addr = alloca ptr, align 8 %__n.addr = alloca i64, align 8 store ptr %this, ptr %this.addr, align 8 store ptr %__p, ptr %__p.addr, align 8 store i64 %__n, ptr %__n.addr, align 8 %this1 = load ptr, ptr %this.addr, align 8 %0 = load ptr, ptr %__p.addr, align 8 %1 = load i64, ptr %__n.addr, align 8 call void @_ZNSt3__119__libcpp_deallocateB8se220000IcEEvPNS_15__type_identityIT_E4typeENS_15__element_countEm(ptr noundef %0, i64 noundef %1, i64 noundef 1) #7 ret void } define linkonce_odr hidden void @_ZNSt3__119__libcpp_deallocateB8se220000IcEEvPNS_15__type_identityIT_E4typeENS_15__element_countEm(ptr noundef %__ptr, i64 noundef %__n, i64 noundef %__align) #1 comdat { entry: %__ptr.addr = alloca ptr, align 8 %__n.addr = alloca i64, align 8 %__align.addr = alloca i64, align 8 %__size = alloca i64, align 8 %cleanup.dest.slot = alloca i32, align 4 store ptr %__ptr, ptr %__ptr.addr, align 8 store i64 %__n, ptr %__n.addr, align 8 store i64 %__align, ptr %__align.addr, align 8 call void @llvm.lifetime.start.p0(ptr %__size) #7 %0 = load i64, ptr %__n.addr, align 8 %mul = mul i64 %0, 1 store i64 %mul, ptr %__size, align 8 %1 = load i64, ptr %__align.addr, align 8 %call = call noundef zeroext i1 @_ZNSt3__124__is_overaligned_for_newB8se220000Em(i64 noundef %1) #7 br i1 %call, label %if.then, label %if.end if.then: %2 = load ptr, ptr %__ptr.addr, align 8 %3 = load i64, ptr %__size, align 8 %4 = load i64, ptr %__align.addr, align 8 call void @_ZdlPvmSt11align_val_t(ptr noundef %2, i64 noundef %3, i64 noundef %4) #9 store i32 1, ptr %cleanup.dest.slot, align 4 br label %cleanup if.end: %5 = load ptr, ptr %__ptr.addr, align 8 %6 = load i64, ptr %__size, align 8 call void @_ZdlPvm(ptr noundef %5, i64 noundef %6) #9 store i32 1, ptr %cleanup.dest.slot, align 4 br label %cleanup cleanup: call void @llvm.lifetime.end.p0(ptr %__size) #7 ret void } define linkonce_odr hidden noundef zeroext i1 @_ZNSt3__124__is_overaligned_for_newB8se220000Em(i64 noundef %__align) #1 comdat { entry: %__align.addr = alloca i64, align 8 store i64 %__align, ptr %__align.addr, align 8 %0 = load i64, ptr %__align.addr, align 8 %cmp = icmp ugt i64 %0, 16 ret i1 %cmp } declare void @_ZdlPvmSt11align_val_t(ptr noundef, i64 noundef, i64 noundef) #6 declare void @_ZdlPvm(ptr noundef, i64 noundef) #6 attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) } attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nounwind } attributes #8 = { noreturn nounwind } attributes #9 = { builtin nounwind }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Compiler Explorer Shop
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
Statistics
Changelog
Version tree