Rust library
bitor
This is Rust standard-library source from the compiler version used in the run.
279 type Output = $t;280 281 #[inline]282 fn bitor(self, rhs: $t) -> $t { self | rhs }283 }284 285 forward_ref_binop! { impl BitOr, bitor for $t, $t,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::BitOr<u64, u64, u64>}::bitor"]
axiom U64.Insts.CoreOpsBitBitOrU64U64.bitor
: Std.U64 → Std.U64 → 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: ModelU64BitOr]
def ModelU64BitOr (x y : Std.U64) : Result Std.U64 :=
-- BODY
ok (x ||| y)
end dec2flt_model
Source details
| Declaration | U64.Insts.CoreOpsBitBitOrU64U64.bitor |
|---|---|
| File | /rustc/library/core/src/ops/bit.rs |
| Lines | 282:12–282:41 |
| Program version | Preparation 2 |