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
; ModuleID = 'test_opt.7rcbfp3g-cgu.0' source_filename = "test_opt.7rcbfp3g-cgu.0" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" %"std::result::Result<i32, u32>" = type { [0 x i32], i32, [1 x i32] } %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>" = type { [0 x i32], i32, [1 x i32] } %"std::result::Result<i32, u32>::Ok" = type { [1 x i32], i32, [0 x i32] } %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue" = type { [1 x i32], i32, [0 x i32] } %"std::result::Result<i32, u32>::Err" = type { [1 x i32], i32, [0 x i32] } %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break" = type { [1 x i32], i32, [0 x i32] } %"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [6 x i64], [0 x i64] } %"unwind::libunwind::_Unwind_Context" = type { [0 x i8] } @vtable.0 = private unnamed_addr constant { void (i64**)*, i64, i64, i32 (i64**)*, i32 (i64**)*, i32 (i64**)* } { void (i64**)* @"_ZN4core3ptr85drop_in_place$LT$std..rt..lang_start$LT$$LP$$RP$$GT$..$u7b$$u7b$closure$u7d$$u7d$$GT$17hc233f2db5380d639E", i64 8, i64 8, i32 (i64**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h6d0a1de054f85a34E", i32 (i64**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h6d0a1de054f85a34E", i32 (i64**)* @"_ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17ha41e65e80bfe0090E" }, align 8 ; std::sys_common::backtrace::__rust_begin_short_backtrace ; Function Attrs: noinline nonlazybind uwtable define internal void @_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h75a5b1626fce9606E(void ()* nonnull %f) unnamed_addr #0 personality i32 (i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*)* @rust_eh_personality { start: %0 = alloca { i8*, i32 }, align 8 ; call core::ops::function::FnOnce::call_once call void @_ZN4core3ops8function6FnOnce9call_once17h67c228306080732eE(void ()* nonnull %f) br label %bb1 bb1: ; preds = %start ; invoke core::hint::black_box invoke void @_ZN4core4hint9black_box17hf681dbb5cefa79c4E() to label %bb2 unwind label %cleanup bb2: ; preds = %bb1 ret void bb3: ; preds = %cleanup br label %bb4 cleanup: ; preds = %bb1 %1 = landingpad { i8*, i32 } cleanup %2 = bitcast { i8*, i32 }* %0 to i8* call void @llvm.lifetime.start.p0i8(i64 16, i8* %2) %3 = extractvalue { i8*, i32 } %1, 0 %4 = extractvalue { i8*, i32 } %1, 1 %5 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 0 store i8* %3, i8** %5, align 8 %6 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 1 store i32 %4, i32* %6, align 8 br label %bb3 bb4: ; preds = %bb3 %7 = bitcast { i8*, i32 }* %0 to i8** %8 = load i8*, i8** %7, align 8 %9 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 1 %10 = load i32, i32* %9, align 8 %11 = bitcast { i8*, i32 }* %0 to i8* call void @llvm.lifetime.end.p0i8(i64 16, i8* %11) %12 = insertvalue { i8*, i32 } undef, i8* %8, 0 %13 = insertvalue { i8*, i32 } %12, i32 %10, 1 resume { i8*, i32 } %13 } ; std::rt::lang_start ; Function Attrs: nonlazybind uwtable define hidden i64 @_ZN3std2rt10lang_start17h0ae61a97430eb05fE(void ()* nonnull %main, i64 %argc, i8** %argv) unnamed_addr #1 { start: %_7 = alloca i64*, align 8 %0 = bitcast i64** %_7 to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %0) %1 = bitcast i64** %_7 to void ()** store void ()* %main, void ()** %1, align 8 %_4.0 = bitcast i64** %_7 to {}* ; call std::rt::lang_start_internal %2 = call i64 @_ZN3std2rt19lang_start_internal17h34cdfe2af4d569dfE({}* nonnull align 1 %_4.0, [3 x i64]* noalias readonly align 8 dereferenceable(24) bitcast ({ void (i64**)*, i64, i64, i32 (i64**)*, i32 (i64**)*, i32 (i64**)* }* @vtable.0 to [3 x i64]*), i64 %argc, i8** %argv) br label %bb1 bb1: ; preds = %start %3 = bitcast i64** %_7 to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %3) ret i64 %2 } ; std::rt::lang_start::{{closure}} ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h6d0a1de054f85a34E"(i64** noalias readonly align 8 dereferenceable(8) %_1) unnamed_addr #2 { start: %0 = bitcast i64** %_1 to void ()** %_3 = load void ()*, void ()** %0, align 8, !nonnull !3 ; call std::sys_common::backtrace::__rust_begin_short_backtrace call void @_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h75a5b1626fce9606E(void ()* nonnull %_3) br label %bb1 bb1: ; preds = %start ; call <() as std::process::Termination>::report %1 = call i32 @"_ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfc9073048bd98672E"() br label %bb2 bb2: ; preds = %bb1 ret i32 %1 } ; std::sys::unix::process::process_common::ExitCode::as_i32 ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @_ZN3std3sys4unix7process14process_common8ExitCode6as_i3217h168eca43037c28f3E(i8* noalias readonly align 1 dereferenceable(1) %self) unnamed_addr #2 { start: %_2 = load i8, i8* %self, align 1 %0 = zext i8 %_2 to i32 ret i32 %0 } ; core::ops::function::FnOnce::call_once{{vtable.shim}} ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @"_ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17ha41e65e80bfe0090E"(i64** %_1) unnamed_addr #2 { start: %_2 = alloca {}, align 1 %0 = load i64*, i64** %_1, align 8, !nonnull !3 ; call core::ops::function::FnOnce::call_once %1 = call i32 @_ZN4core3ops8function6FnOnce9call_once17h27802acba2f4c36eE(i64* nonnull %0) br label %bb1 bb1: ; preds = %start ret i32 %1 } ; core::ops::function::FnOnce::call_once ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @_ZN4core3ops8function6FnOnce9call_once17h27802acba2f4c36eE(i64* nonnull %0) unnamed_addr #2 personality i32 (i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*)* @rust_eh_personality { start: %1 = alloca { i8*, i32 }, align 8 %_2 = alloca {}, align 1 %_1 = alloca i64*, align 8 store i64* %0, i64** %_1, align 8 ; invoke std::rt::lang_start::{{closure}} %2 = invoke i32 @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h6d0a1de054f85a34E"(i64** noalias readonly align 8 dereferenceable(8) %_1) to label %bb1 unwind label %cleanup bb1: ; preds = %start br label %bb2 bb3: ; preds = %cleanup br label %bb4 cleanup: ; preds = %start %3 = landingpad { i8*, i32 } cleanup %4 = bitcast { i8*, i32 }* %1 to i8* call void @llvm.lifetime.start.p0i8(i64 16, i8* %4) %5 = extractvalue { i8*, i32 } %3, 0 %6 = extractvalue { i8*, i32 } %3, 1 %7 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %1, i32 0, i32 0 store i8* %5, i8** %7, align 8 %8 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %1, i32 0, i32 1 store i32 %6, i32* %8, align 8 br label %bb3 bb4: ; preds = %bb3 %9 = bitcast { i8*, i32 }* %1 to i8** %10 = load i8*, i8** %9, align 8 %11 = getelementptr inbounds { i8*, i32 }, { i8*, i32 }* %1, i32 0, i32 1 %12 = load i32, i32* %11, align 8 %13 = bitcast { i8*, i32 }* %1 to i8* call void @llvm.lifetime.end.p0i8(i64 16, i8* %13) %14 = insertvalue { i8*, i32 } undef, i8* %10, 0 %15 = insertvalue { i8*, i32 } %14, i32 %12, 1 resume { i8*, i32 } %15 bb2: ; preds = %bb1 ret i32 %2 } ; core::ops::function::FnOnce::call_once ; Function Attrs: inlinehint nonlazybind uwtable define internal void @_ZN4core3ops8function6FnOnce9call_once17h67c228306080732eE(void ()* nonnull %_1) unnamed_addr #2 { start: %_2 = alloca {}, align 1 call void %_1() br label %bb1 bb1: ; preds = %start ret void } ; core::ptr::drop_in_place<std::rt::lang_start<()>::{{closure}}> ; Function Attrs: inlinehint nonlazybind uwtable define internal void @"_ZN4core3ptr85drop_in_place$LT$std..rt..lang_start$LT$$LP$$RP$$GT$..$u7b$$u7b$closure$u7d$$u7d$$GT$17hc233f2db5380d639E"(i64** %_1) unnamed_addr #2 { start: ret void } ; core::hint::black_box ; Function Attrs: inlinehint nonlazybind uwtable define internal void @_ZN4core4hint9black_box17hf681dbb5cefa79c4E() unnamed_addr #2 { start: %dummy = alloca {}, align 1 call void asm sideeffect "", "r,~{memory},~{dirflag},~{fpsr},~{flags}"({}* %dummy), !srcloc !4 ret void } ; <() as std::process::Termination>::report ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @"_ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17hfc9073048bd98672E"() unnamed_addr #2 { start: ; call <std::process::ExitCode as std::process::Termination>::report %0 = call i32 @"_ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17he26e23ad95fdfb3dE"(i8 0) br label %bb1 bb1: ; preds = %start ret i32 %0 } ; <std::process::ExitCode as std::process::Termination>::report ; Function Attrs: inlinehint nonlazybind uwtable define internal i32 @"_ZN68_$LT$std..process..ExitCode$u20$as$u20$std..process..Termination$GT$6report17he26e23ad95fdfb3dE"(i8 %0) unnamed_addr #2 { start: %self = alloca i8, align 1 store i8 %0, i8* %self, align 1 ; call std::sys::unix::process::process_common::ExitCode::as_i32 %1 = call i32 @_ZN3std3sys4unix7process14process_common8ExitCode6as_i3217h168eca43037c28f3E(i8* noalias readonly align 1 dereferenceable(1) %self) br label %bb1 bb1: ; preds = %start ret i32 %1 } ; Function Attrs: nonlazybind uwtable define dso_local i64 @demo(i64 %0) unnamed_addr #1 { start: %_12 = alloca i32, align 4 %residual = alloca i32, align 4 %self = alloca %"std::result::Result<i32, u32>", align 4 %_3 = alloca %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>", align 4 %1 = alloca %"std::result::Result<i32, u32>", align 4 %2 = alloca i64, align 8 %x = alloca %"std::result::Result<i32, u32>", align 4 %3 = bitcast i64* %2 to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %3) store i64 %0, i64* %2, align 8 %4 = bitcast %"std::result::Result<i32, u32>"* %x to i8* %5 = bitcast i64* %2 to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %4, i8* align 8 %5, i64 8, i1 false) %6 = bitcast i64* %2 to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %6) %7 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %7) %8 = bitcast %"std::result::Result<i32, u32>"* %self to i8* call void @llvm.lifetime.start.p0i8(i64 8, i8* %8) %9 = bitcast %"std::result::Result<i32, u32>"* %self to i8* %10 = bitcast %"std::result::Result<i32, u32>"* %x to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %9, i8* align 4 %10, i64 8, i1 false) %11 = bitcast %"std::result::Result<i32, u32>"* %self to i32* %12 = load i32, i32* %11, align 4, !range !5 %_8 = zext i32 %12 to i64 switch i64 %_8, label %bb2 [ i64 0, label %bb3 i64 1, label %bb1 ] bb2: ; preds = %start unreachable bb3: ; preds = %start %13 = bitcast %"std::result::Result<i32, u32>"* %self to %"std::result::Result<i32, u32>::Ok"* %14 = getelementptr inbounds %"std::result::Result<i32, u32>::Ok", %"std::result::Result<i32, u32>::Ok"* %13, i32 0, i32 1 %v = load i32, i32* %14, align 4 %15 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue"* %16 = getelementptr inbounds %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue", %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue"* %15, i32 0, i32 1 store i32 %v, i32* %16, align 4 %17 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to i32* store i32 0, i32* %17, align 4 %18 = bitcast %"std::result::Result<i32, u32>"* %self to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %18) %19 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue"* %20 = getelementptr inbounds %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue", %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Continue"* %19, i32 0, i32 1 %val = load i32, i32* %20, align 4 %21 = bitcast %"std::result::Result<i32, u32>"* %1 to %"std::result::Result<i32, u32>::Ok"* %22 = getelementptr inbounds %"std::result::Result<i32, u32>::Ok", %"std::result::Result<i32, u32>::Ok"* %21, i32 0, i32 1 store i32 %val, i32* %22, align 4 %23 = bitcast %"std::result::Result<i32, u32>"* %1 to i32* store i32 0, i32* %23, align 4 %24 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %24) %25 = bitcast %"std::result::Result<i32, u32>"* %1 to i64* %26 = load i64, i64* %25, align 4 ret i64 %26 bb1: ; preds = %start %27 = bitcast %"std::result::Result<i32, u32>"* %self to %"std::result::Result<i32, u32>::Err"* %28 = getelementptr inbounds %"std::result::Result<i32, u32>::Err", %"std::result::Result<i32, u32>::Err"* %27, i32 0, i32 1 %e = load i32, i32* %28, align 4 %29 = bitcast i32* %_12 to i8* call void @llvm.lifetime.start.p0i8(i64 4, i8* %29) store i32 %e, i32* %_12, align 4 %30 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break"* %31 = getelementptr inbounds %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break", %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break"* %30, i32 0, i32 1 %32 = load i32, i32* %_12, align 4 store i32 %32, i32* %31, align 4 %33 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to i32* store i32 1, i32* %33, align 4 %34 = bitcast i32* %_12 to i8* call void @llvm.lifetime.end.p0i8(i64 4, i8* %34) %35 = bitcast %"std::result::Result<i32, u32>"* %self to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %35) %36 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break"* %37 = getelementptr inbounds %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break", %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>::Break"* %36, i32 0, i32 1 %residual1 = load i32, i32* %37, align 4 %38 = bitcast i32* %residual to i8* call void @llvm.lifetime.start.p0i8(i64 4, i8* %38) store i32 %residual1, i32* %residual, align 4 %e2 = load i32, i32* %residual, align 4 %39 = bitcast %"std::result::Result<i32, u32>"* %1 to %"std::result::Result<i32, u32>::Err"* %40 = getelementptr inbounds %"std::result::Result<i32, u32>::Err", %"std::result::Result<i32, u32>::Err"* %39, i32 0, i32 1 store i32 %e2, i32* %40, align 4 %41 = bitcast %"std::result::Result<i32, u32>"* %1 to i32* store i32 1, i32* %41, align 4 %42 = bitcast i32* %residual to i8* call void @llvm.lifetime.end.p0i8(i64 4, i8* %42) %43 = bitcast %"std::ops::ControlFlow<std::result::Result<std::convert::Infallible, u32>, i32>"* %_3 to i8* call void @llvm.lifetime.end.p0i8(i64 8, i8* %43) %44 = bitcast %"std::result::Result<i32, u32>"* %1 to i64* %45 = load i64, i64* %44, align 4 ret i64 %45 } ; test_opt::main ; Function Attrs: nonlazybind uwtable define internal void @_ZN8test_opt4main17h15b5a56138b13194E() unnamed_addr #1 { start: ret void } ; Function Attrs: nounwind nonlazybind uwtable declare i32 @rust_eh_personality(i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*) unnamed_addr #3 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #4 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #4 ; std::rt::lang_start_internal ; Function Attrs: nonlazybind uwtable declare i64 @_ZN3std2rt19lang_start_internal17h34cdfe2af4d569dfE({}* nonnull align 1, [3 x i64]* noalias readonly align 8 dereferenceable(24), i64, i8**) unnamed_addr #1 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i64, i1 immarg) #4 ; Function Attrs: nonlazybind define i32 @main(i32 %0, i8** %1) unnamed_addr #5 { top: %2 = sext i32 %0 to i64 ; call std::rt::lang_start %3 = call i64 @_ZN3std2rt10lang_start17h0ae61a97430eb05fE(void ()* @_ZN8test_opt4main17h15b5a56138b13194E, i64 %2, i8** %1) %4 = trunc i64 %3 to i32 ret i32 %4 } attributes #0 = { noinline nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" } attributes #1 = { nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" } attributes #2 = { inlinehint nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" } attributes #3 = { nounwind nonlazybind uwtable "probe-stack"="__rust_probestack" "target-cpu"="x86-64" } attributes #4 = { argmemonly nofree nosync nounwind willreturn } attributes #5 = { nonlazybind "target-cpu"="x86-64" } !llvm.module.flags = !{!0, !1, !2} !0 = !{i32 7, !"PIC Level", i32 2} !1 = !{i32 7, !"PIE Level", i32 2} !2 = !{i32 2, !"RtLibUseGOT", i32 1} !3 = !{} !4 = !{i32 2880462} !5 = !{i32 0, i32 2}
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