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

Function ir_math_signed_div

tests/integration/vm_execution.rs:1896–1912  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1894 r#"
1895external free: (p: i32*) -> void
1896
1897main: () -> i32 {
1898 p: i32* = new(i32)
1899 @p = 10
1900 @p = 42
1901 v: i32 = @p
1902 free(p)
1903 if v == 42 {
1904 return 0
1905 }
1906 return 1
1907}
1908"#,
1909 );
1910 assert!(
1911 matches!(outcome, RunOutcome::Halted(0)),
1912 "second write should overwrite first; expected 42, got {outcome:?}"
1913 );
1914}
1915

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected