urt-rs / docs /research /QVM_BASE_FIRE_GATE.md
nmarshall's picture
qvm: base-dependent firing gate
e2a6045
|
Raw History Blame Contribute Delete
1.54 kB

Base-dependent firing gate scan and distance contract

RE-601. Reproduce with python3 scripts/analyze_qvm_base_fire_gate.py; check with python3 scripts/test_qvm_base_fire_gate.py. The machine report retains source identity and bounded fixtures.

288904..289110 is interpreted only through pre-allocation logic. Mode unequal8 or active global35000400==1 returns. The entity scan collects type18 records using880-byte stride. On a third base, execution stops before2319 error handling. With fewer than2, it stops before source reads uninitialized base pointers; no fake pointer is supplied.

For exactly2 bases actual65655 computes float32 Euclidean distance using a supplied finite sqrt. Both distances>64 reset weapon timer/state0 and return; ground1023 also rejects after range tests. Otherwise both distances are computed for selection; strict first<second selects first and equality selects second. The chosen point is copied to global35000416 before pending allocator277165.

36 fixtures verify each state/point outcome and1/2/3/4 distance-call short circuit. Allocation, later temp_bomb record setup/linking and round effects are not executed. Source cardinality assumptions and native/world legality require original/reference validation before porting a checked failure policy.

No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.