Audit-driven migrate-and-retire wave (one read-only auditor per carrier batch, verdicts row-checked through the full corpus gate): every retired carrier's assertions are now owned by declarative fixtures or an existing owner. 238 new fixtures land (corpus 1,239 -> 1,477; cells 2,954), covering enum/str/slice/tagged array elements, inferred-length arrays, global slice/str zero-init and literals, global array/pointer field reads and stores, struct-literal slice fields, struct returns, float arithmetic, size/int limits, sort and log-vstream behavior, place-addressed stores, and append places. Rejection rows STRENGTHEN the old nonzero-exit checks to required diagnostic fragments; all byte-id claims fold into the blanket test-data-byteid sweep (now 1,142 compared, 0 pinned-divergent). Four carriers were fully redundant with existing fixtures/lang tests (749, 722, 765, and 771's byteid rows) and retire without new rows. Native carriers 171 -> 147 (residual 135 -> 111).
18 lines
417 B
Plaintext
18 lines
417 B
Plaintext
//ww:compile
|
|
package main;
|
|
type instant = struct { sec: i64, nsec: i64 };
|
|
export fn add(i: instant, x: i64) instant = {
|
|
let r: instant;
|
|
if (x == 0i64) {
|
|
r.sec = i.sec; r.nsec = i.nsec;
|
|
return r;
|
|
};
|
|
if (x > 0i64) {
|
|
r.sec = i.sec + x; r.nsec = i.nsec;
|
|
return r;
|
|
};
|
|
r.sec = i.sec - 1i64; r.nsec = i.nsec + x;
|
|
return r;
|
|
};
|
|
export fn main() i32 = { return 0; };
|