feat(vm): add VM-owned PCG64 random and coverage headroom
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Implement GC-managed random generators, next/nextf intrinsics, bounded ranges and deterministic conformance coverage. Publish the runtime contract and producer guidance. Give coverage domains at least five percentage points of measured headroom while preserving sufficient floors. Record local qualification: make ci-domains passes with 939 tests and all domain gates green.
This commit is contained in:
@@ -141,7 +141,9 @@ fn query_all(platform: &mut TestPlatform) -> Vec<Value> {
|
||||
(0x2100..=0x2135)
|
||||
.map(|id| {
|
||||
let meta = lookup_intrinsic_by_id(id).unwrap();
|
||||
let result = (meta.implementation)(&[], &mut ctx).unwrap();
|
||||
let result =
|
||||
(meta.implementation.host_callback().expect("host intrinsic"))(&[], &mut ctx)
|
||||
.unwrap();
|
||||
meta.validate_result_values(&result).unwrap();
|
||||
result.into_iter().next().unwrap()
|
||||
})
|
||||
@@ -211,11 +213,14 @@ fn every_known_query_faults_when_unavailable_and_rejects_arguments() {
|
||||
let meta = lookup_intrinsic_by_id(id).unwrap();
|
||||
let mut ctx = HostContext::new(None);
|
||||
assert_eq!(
|
||||
(meta.implementation)(&[], &mut ctx),
|
||||
(meta.implementation.host_callback().expect("host intrinsic"))(&[], &mut ctx),
|
||||
Err(IntrinsicExecutionError::HardwareUnavailable)
|
||||
);
|
||||
assert_eq!(
|
||||
(meta.implementation)(&[Value::Int64(0)], &mut ctx),
|
||||
(meta.implementation.host_callback().expect("host intrinsic"))(
|
||||
&[Value::Int64(0)],
|
||||
&mut ctx
|
||||
),
|
||||
Err(IntrinsicExecutionError::ArityMismatch { expected: 0, got: 1 })
|
||||
);
|
||||
let mut vm = query_vm(assemble(&format!("INTRINSIC {id}\nHALT")).unwrap());
|
||||
|
||||
Reference in New Issue
Block a user