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

Function float_f32_constant_and_add

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

Source from the content-addressed store, hash-verified

2194 matches!(outcome, RunOutcome::Halted(0)),
2195 "0 - 5 = -5, got {outcome:?}"
2196 );
2197}
2198
2199/// All-ones value check (HLL has no bitwise-not surface op here).
2200#[test]
2201fn ir_unary_not() {
2202 let (_, outcome, _) = run_hll(
2203 r#"
2204main: () -> i32 {
2205 all_ones: i32 = 0 - 1
2206 neg_one: i32 = 0 - 1
2207 if all_ones == neg_one {
2208 return 0
2209 }
2210 return 1
2211}
2212"#,
2213 );
2214 assert!(
2215 matches!(outcome, RunOutcome::Halted(0)),
2216 "bitwise all-ones check, got {outcome:?}"

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected