PREDECESSOR · 13.1Stable is 13.2. This page stays because it still owns historical or unchanged contracts.CURRENT 13.2 →
RELEASE LINE13.2 HISTORICAL13.1 PREDECESSOR13.0 PREVIOUS12.4 NATIVE MIRARCHIVE

LOCAL RELEASE CANDIDATE

PAGE ROLE · PARITY

ONE SOURCE. SIX EXECUTION POINTS.

Runtime parity is stronger when every backend receives the same source and the expected result is fixed before execution. The 13.1 parity fixture is intentionally simple enough to make backend disagreement obvious.

00 execution matrix

PathMode
Hosted tree runtimecanonical hosted
Canonical VMflat bytecode
Windows x86_64 nativeO0
Windows x86_64 nativeO1
Linux x86_64 nativeO0
Linux x86_64 nativeO1

10 the program

portable_runtime_parity.dby computes a small fixed-width integer transform twice, combines the values and returns 42 only when the exact result is reached. A non-42 status triggers a deliberate divide-by-zero at the top level so “wrong value but process returned” cannot look green.

portable_runtime_parity.dbyDOWNLOADOPEN RAW
fn mix(value: u32) -> u32:
    let x: u32 = value * (3 as u32)
    x = x + (7 as u32)
    if x > (100 as u32):
        x = x - (11 as u32)
    return x

pub fn main() -> i32:
    let left: u32 = mix(40 as u32)
    let right: u32 = mix(10 as u32)
    let total: u32 = left + right
    if total == (153 as u32):
        return 42 as i32
    return 1 as i32

let status: i32 = main()
if status != (42 as i32):
    let crash: i32 = (1 as i32) / (0 as i32)
DBY · 452 BSHA-256 616ddae9d7b63dc00f6aa0e123c0a8cca97d9765d22e06a2559fcf6d6f23f4b2

20 what this proves

It checks that one admitted fixed-width source keeps its observable result across the named execution paths. It does not prove every DBYTE program is portable. The portability analyzer first rejects target-dependent source; parity then executes a known portable fixture.

30 how to read a failure

If hosted and VM agree but one native target differs, start below HIR: Native MIR legalization, selector, ABI or object path. If O0 passes and O1 fails, optimization becomes the first suspect. If every backend rejects the project during check-portable, that is a source-contract failure, not runtime parity.