MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / assemble_and_run

Function assemble_and_run

tests/integration/vm_execution.rs:725–730  ·  view source on GitHub ↗

Assemble instructions, run in VM, return the VM (for peeking) and the outcome.

(insns: Vec<RvInstruction>)

Source from the content-addressed store, hash-verified

723}
724"#,
725 );
726 // a[0]=5*4=20, a[1]=0+7=7 -> 27.
727 assert!(
728 matches!(outcome, StepOutcome::Halted(27)),
729 "expected Halted(27), got {outcome:?}"
730 );
731}
732
733#[test]

Callers 10

test_exit_zeroFunction · 0.85
test_exit_code_42Function · 0.85
test_add_two_numbersFunction · 0.85
test_subtractFunction · 0.85
test_memory_store_loadFunction · 0.85
test_branch_loopFunction · 0.85
test_multiplyFunction · 0.85
test_divideFunction · 0.85
test_div_by_zeroFunction · 0.85
test_csr_instretFunction · 0.85

Calls 1

runMethod · 0.45

Tested by 10

test_exit_zeroFunction · 0.68
test_exit_code_42Function · 0.68
test_add_two_numbersFunction · 0.68
test_subtractFunction · 0.68
test_memory_store_loadFunction · 0.68
test_branch_loopFunction · 0.68
test_multiplyFunction · 0.68
test_divideFunction · 0.68
test_div_by_zeroFunction · 0.68
test_csr_instretFunction · 0.68