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

Function ir_unary_neg

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

Source from the content-addressed store, hash-verified

1978 return { .lo = a, .hi = b }
1979 }
1980 return { .lo = b, .hi = a }
1981}
1982
1983span: (lo: i32, hi: i32) -> i32 {
1984 return hi - lo
1985}
1986
1987main: () -> i32 {
1988 { lo: i32, hi: i32 } = minmax(10, 3)
1989 s: i32 = span(lo, hi)
1990 if s == 7 {
1991 return 0
1992 }
1993 return 1
1994}
1995"#,
1996 );
1997 assert!(
1998 matches!(outcome, RunOutcome::Halted(0)),
1999 "minmax(10,3) -> lo=3,hi=10 -> span=7, got {outcome:?}"
2000 );

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected