removed bounded from VM, bytecode and specs

This commit is contained in:
2026-03-24 13:40:44 +00:00
parent a04f462939
commit cfdca93160
18 changed files with 894 additions and 507 deletions
@@ -1,10 +1,12 @@
//! Deterministic tests for multi-return syscalls with the slot-based ABI.
use prometeu_bytecode::isa::core::CoreOpCode as OpCode;
use prometeu_bytecode::Value;
use prometeu_vm::{HostContext, HostReturn, NativeInterface, VirtualMachine};
use prometeu_bytecode::isa::core::CoreOpCode as OpCode;
use prometeu_hal::vm_fault::VmFault;
use prometeu_vm::{HostContext, HostReturn, NativeInterface, VirtualMachine};
fn enc_op(op: OpCode) -> [u8; 2] { (op as u16).to_le_bytes() }
fn enc_op(op: OpCode) -> [u8; 2] {
(op as u16).to_le_bytes()
}
#[test]
fn vm_syscall_multi_return_stack_contents() {
@@ -29,7 +31,7 @@ fn vm_syscall_multi_return_stack_contents() {
ret.push_int(11);
ret.push_int(22);
ret.push_bool(true);
ret.push_bounded(7)?;
ret.push_int(7);
Ok(())
}
}
@@ -45,10 +47,8 @@ fn vm_syscall_multi_return_stack_contents() {
// Verify top-of-stack order: last pushed is on top
let top = vm.operand_stack_top(4);
assert_eq!(top, vec![
Value::Bounded(7),
Value::Boolean(true),
Value::Int64(22),
Value::Int64(11),
]);
assert_eq!(
top,
vec![Value::Int64(7), Value::Boolean(true), Value::Int64(22), Value::Int64(11),]
);
}