fn effective_stack_diff(inp: u8, out: u8, data: &InstData) -> i32
Computes the effective stack diff for an instruction, matching the codegen semantics.