Rust library
shl
This is Rust standard-library source from the compiler version used in the run.
486 #[inline]487 #[track_caller]488 #[rustc_inherit_overflow_checks]489 fn shl(self, other: $f) -> $t {490 self << other491 }492 }Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::ops::bit::{core::ops::bit::Shl<u64, u32, u64>}::shl"]
axiom U64.Insts.CoreOpsBitShlU32U64.shl
: Std.U64 โ Std.U32 โ Result Std.U64Authored Lean model
Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.
import Aeneas
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelU64Shl]
def ModelU64Shl (x : Std.U64) (y : Std.U32) : Result Std.U64 :=
-- BODY
x <<< y
end dec2flt_model
Source details
| Declaration | U64.Insts.CoreOpsBitShlU32U64.shl |
|---|---|
| File | /rustc/library/core/src/ops/bit.rs |
| Lines | 489:12โ489:41 |
| Program version | Original program |