Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ x0_always_zero
Function
x0_always_zero
crates/virtual-machine/tests/vm_registers.rs:4–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
#[test]
4
fn x0_always_zero() {
5
let mut regs = Registers::new();
6
regs.write_x(0, 42);
7
assert_eq!(regs.read_x(0), 0,
"x0 must always read as zero"
);
8
}
9
10
#[test]
11
fn x_roundtrip() {
Callers
nothing calls this directly
Calls
1
write_x
Method · 0.80
Tested by
no test coverage detected