lib/strings,wcc,w6l: collapse nested-if to &&/|| at named sites (Wave-2 structural)
strings.bytesub two endpoint guards, wcc cgdot/cgassign 4-deep allptr/N_IDENT/localfindnode pyramids, and w6l isarchive's 8 sequential magic-byte rejects. The isarchive len<8 read-guard stays a separate statement before the || chain so the byte reads remain bounded. Not byte-id-neutral (short-circuit emits tighter branches / renumbered labels) but functionally identical; cs==ww stage-parity holds. Regenerated all embedding combined.ww.
This commit is contained in:
@@ -209,14 +209,11 @@ type armember = struct {
|
||||
|
||||
fn isarchive(p: *u8, len: u64) bool = {
|
||||
if (len < 8u64) { return false; };
|
||||
if (p[0u64] != '!') { return false; };
|
||||
if (p[1u64] != '<') { return false; };
|
||||
if (p[2u64] != 'a') { return false; };
|
||||
if (p[3u64] != 'r') { return false; };
|
||||
if (p[4u64] != 'c') { return false; };
|
||||
if (p[5u64] != 'h') { return false; };
|
||||
if (p[6u64] != '>') { return false; };
|
||||
if (p[7u64] != '\n') { return false; };
|
||||
if (p[0u64] != '!' || p[1u64] != '<' || p[2u64] != 'a' || p[3u64] != 'r' ||
|
||||
p[4u64] != 'c' || p[5u64] != 'h' || p[6u64] != '>' ||
|
||||
p[7u64] != '\n') {
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user