Hojun-Cho
e091dfbdbe
wcc-ww: assert/abort builtins — checker tag + cgen rt_abort lowering ( #58 )
...
wwstage had no EXPR_ASSERT-family intercept: the checker left bare
assert/abort calls untyped (asserttyped gate 4 skipped them by design)
and cgcall fell through to the regular call path, emitting
CALL assert(SB) for a symbol that exists nowhere — link-fail. cstage
was already correct (tag ty_err at check.c:1536-1572, lower inline via
rt_abort at cgen.c:6618-6663).
Mirror the same tag-then-lower pair: exprtype N_CALL stamps the call
void and the callee TY_ERR behind the scopelookupprefer no-shadow gate
(the isassertfam predicate), with the cstage arg diagnostics (cond must
be bool, msg must be str, arity caps); cgcall keys on the TY_ERR tag
and emits the identical CMPQ/JNE/rt_abort sequence. A user-shadowed
assert/abort (same-module or cross-module, the #45 shape, task #14 )
stays untagged on the regular call path — byte-id for all existing lib
code preserved.
The cond check does NOT alias-peel: cstage compares ty_bool by
identity (check.c:1560), so `type myb = bool` is rejected there;
wwstage aligns down per rule 10 (a resolvealias here was accepting it
— cs/ww accept-reject divergence). Widening both stages together
belongs to the alias-peel choke-point arc (task #5 , #47/#68).
The resolvewalk N_IDENT resolution counter learns the builtin shape:
an unshadowed abort/assert ident binds no sym BY DESIGN, so wwdump
-r's zero-unresolved gate (990 probe 4) counts it resolved instead of
failing builtin-using units.
test 957: 13 rows — pass/fail/msg/bare abort (run exit + rt_abort
stderr content; no-msg rows pin EMPTY stderr = the (NULL,0) shape),
assert in an imported module, same-module + cross-module shadow
controls, 5 checker rejects pinned on diagnostic CONTENT (shared
substring; cstage prefixes pos, wwstage cerr is bare) incl. the
alias-of-bool cond row pinning the rule-10 down-alignment; each
positive row pins cstage run exit + cs==ww byte-id. On pre-fix master
11/13 rows trip (survivors = the two shadow controls).
Residual (separate root, deferred diagnostic class): zero-arg assert()
is not intercepted by either stage; cstage rejects via the generic
undefined-ident path, wwstage's undefined-callee diagnostic is the
class deferred behind wiring checkfile into w6c_ww.
2026-06-04 22:42:47 +09:00
..
2026-06-02 18:54:35 +09:00
2026-05-11 13:49:27 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-16 11:17:20 +09:00
2026-05-11 13:49:27 +09:00
2026-05-11 13:49:27 +09:00
2026-05-12 11:35:50 +09:00
2026-05-12 12:45:11 +09:00
2026-05-11 13:49:27 +09:00
2026-05-11 13:49:27 +09:00
2026-05-12 13:44:27 +09:00
2026-05-12 13:37:31 +09:00
2026-05-16 03:00:34 +09:00
2026-05-13 20:06:24 +09:00
2026-05-14 02:44:57 +09:00
2026-05-14 01:58:52 +09:00
2026-05-14 00:36:34 +09:00
2026-05-13 23:45:35 +09:00
2026-05-25 01:59:14 +09:00
2026-06-03 14:58:23 +09:00
2026-06-03 18:03:13 +09:00
2026-06-03 18:53:44 +09:00
2026-06-03 20:32:22 +09:00
2026-06-03 20:55:52 +09:00
2026-06-03 22:58:45 +09:00
2026-06-03 22:38:02 +09:00
2026-06-03 23:51:28 +09:00
2026-05-14 00:21:53 +09:00
2026-05-14 23:45:14 +09:00
2026-05-14 23:26:49 +09:00
2026-05-25 01:59:14 +09:00
2026-05-15 01:39:37 +09:00
2026-05-25 01:59:14 +09:00
2026-05-15 14:16:53 +09:00
2026-05-15 11:24:33 +09:00
2026-05-28 14:07:58 +09:00
2026-05-15 15:06:37 +09:00
2026-06-01 22:26:53 +09:00
2026-05-15 16:43:07 +09:00
2026-05-15 18:13:02 +09:00
2026-05-15 18:14:33 +09:00
2026-05-15 18:45:21 +09:00
2026-05-15 19:07:29 +09:00
2026-05-16 00:07:00 +09:00
2026-05-27 13:04:02 +09:00
2026-05-16 10:47:50 +09:00
2026-05-16 11:17:20 +09:00
2026-05-16 12:20:56 +09:00
2026-05-16 11:37:17 +09:00
2026-05-16 11:17:20 +09:00
2026-05-16 12:52:36 +09:00
2026-05-16 13:45:33 +09:00
2026-05-16 23:32:27 +09:00
2026-05-17 00:00:55 +09:00
2026-05-17 00:27:22 +09:00
2026-05-17 01:40:49 +09:00
2026-05-17 07:25:49 +09:00
2026-05-17 07:33:55 +09:00
2026-05-18 00:15:34 +09:00
2026-05-18 01:51:57 +09:00
2026-05-18 02:20:42 +09:00
2026-05-18 02:49:06 +09:00
2026-05-18 03:15:40 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-06-02 18:54:35 +09:00
2026-05-18 12:01:34 +09:00
2026-05-18 18:25:36 +09:00
2026-05-25 11:27:00 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-06-04 04:34:54 +09:00
2026-05-18 19:22:27 +09:00
2026-05-18 19:22:27 +09:00
2026-05-18 19:40:41 +09:00
2026-05-18 19:55:30 +09:00
2026-05-24 08:11:14 +09:00
2026-05-18 20:55:37 +09:00
2026-05-18 21:13:42 +09:00
2026-05-18 23:01:09 +09:00
2026-05-18 23:37:16 +09:00
2026-05-18 23:56:58 +09:00
2026-05-19 00:58:28 +09:00
2026-05-19 02:13:58 +09:00
2026-05-19 03:09:34 +09:00
2026-05-19 03:39:42 +09:00
2026-05-19 04:04:41 +09:00
2026-05-19 04:56:56 +09:00
2026-05-19 10:44:16 +09:00
2026-05-19 12:30:36 +09:00
2026-05-19 13:43:45 +09:00
2026-05-19 15:09:57 +09:00
2026-05-20 02:27:17 +09:00
2026-05-24 08:11:14 +09:00
2026-05-22 00:14:36 +09:00
2026-05-26 02:39:35 +09:00
2026-05-28 16:16:29 +09:00
2026-05-28 17:12:20 +09:00
2026-05-28 18:03:26 +09:00
2026-05-28 18:50:10 +09:00
2026-05-28 19:25:53 +09:00
2026-05-28 20:01:14 +09:00
2026-05-28 20:55:42 +09:00
2026-05-30 03:24:23 +09:00
2026-05-28 23:17:22 +09:00
2026-05-29 01:00:02 +09:00
2026-05-29 03:04:18 +09:00
2026-05-29 03:52:04 +09:00
2026-05-29 04:51:44 +09:00
2026-05-29 06:18:27 +09:00
2026-05-30 03:24:23 +09:00
2026-05-30 03:24:23 +09:00
2026-06-01 05:04:46 +09:00
2026-05-31 20:31:40 +09:00
2026-05-31 20:31:40 +09:00
2026-06-01 05:04:46 +09:00
2026-06-01 05:04:46 +09:00
2026-05-31 23:34:16 +09:00
2026-05-29 18:05:53 +09:00
2026-05-30 02:00:07 +09:00
2026-05-30 04:54:12 +09:00
2026-05-30 05:29:58 +09:00
2026-05-30 06:47:44 +09:00
2026-05-31 17:00:42 +09:00
2026-05-30 09:04:33 +09:00
2026-05-30 09:36:32 +09:00
2026-06-04 16:10:34 +09:00
2026-05-31 20:31:40 +09:00
2026-05-31 22:20:53 +09:00
2026-06-01 02:07:59 +09:00
2026-06-01 09:01:56 +09:00
2026-06-01 09:57:45 +09:00
2026-06-01 09:59:32 +09:00
2026-06-01 11:53:06 +09:00
2026-06-01 13:36:42 +09:00
2026-06-04 02:38:36 +09:00
2026-05-11 13:49:27 +09:00
2026-06-03 00:28:16 +09:00
2026-06-04 13:37:19 +09:00
2026-06-03 15:57:33 +09:00
2026-06-04 06:51:35 +09:00
2026-06-04 13:00:03 +09:00
2026-06-04 14:37:24 +09:00
2026-06-04 10:20:18 +09:00
2026-06-04 17:24:57 +09:00
2026-05-12 13:50:09 +09:00
2026-06-02 04:55:08 +09:00
2026-05-28 10:40:08 +09:00
2026-05-28 08:07:19 +09:00
2026-05-28 09:06:54 +09:00
2026-05-28 09:06:54 +09:00
2026-05-30 05:58:06 +09:00
2026-06-01 18:23:29 +09:00
2026-06-01 09:24:59 +09:00
2026-06-02 21:58:39 +09:00
2026-06-02 22:18:19 +09:00
2026-05-27 22:13:46 +09:00
2026-05-27 18:43:08 +09:00
2026-05-27 16:17:24 +09:00
2026-05-27 15:39:03 +09:00
2026-05-27 13:55:56 +09:00
2026-05-12 03:14:20 +09:00
2026-05-27 00:12:39 +09:00
2026-05-27 01:29:24 +09:00
2026-05-27 01:51:12 +09:00
2026-05-27 02:32:31 +09:00
2026-05-27 03:07:49 +09:00
2026-05-27 03:30:15 +09:00
2026-05-27 04:19:37 +09:00
2026-05-27 05:04:05 +09:00
2026-05-27 12:21:15 +09:00
2026-06-03 11:35:03 +09:00
2026-05-27 09:18:03 +09:00
2026-05-27 10:27:55 +09:00
2026-05-27 00:44:16 +09:00
2026-06-01 22:26:53 +09:00
2026-05-17 07:25:49 +09:00
2026-05-17 07:33:55 +09:00
2026-05-29 23:19:36 +09:00
2026-05-18 00:15:34 +09:00
2026-05-29 19:43:48 +09:00
2026-05-18 01:51:57 +09:00
2026-06-04 04:01:16 +09:00
2026-06-04 04:34:54 +09:00
2026-05-18 02:20:42 +09:00
2026-06-04 04:54:43 +09:00
2026-06-04 05:28:45 +09:00
2026-05-24 09:19:20 +09:00
2026-05-18 18:25:36 +09:00
2026-06-04 12:35:07 +09:00
2026-06-04 06:13:18 +09:00
2026-05-18 12:01:34 +09:00
2026-06-01 17:34:23 +09:00
2026-05-23 21:22:24 +09:00
2026-05-24 12:27:15 +09:00
2026-05-24 13:31:58 +09:00
2026-05-24 13:57:20 +09:00
2026-05-24 14:22:25 +09:00
2026-05-24 14:57:05 +09:00
2026-06-04 21:07:38 +09:00
2026-06-04 21:09:31 +09:00
2026-05-24 15:35:37 +09:00
2026-05-24 16:18:49 +09:00
2026-05-24 16:54:14 +09:00
2026-05-30 00:46:57 +09:00
2026-06-01 19:01:58 +09:00
2026-06-01 17:52:42 +09:00
2026-05-24 17:29:20 +09:00
2026-06-04 19:06:54 +09:00
2026-05-25 00:20:16 +09:00
2026-06-04 19:37:26 +09:00
2026-05-25 01:59:14 +09:00
2026-05-25 02:36:54 +09:00
2026-05-25 03:13:48 +09:00
2026-06-01 21:27:49 +09:00
2026-06-01 13:36:42 +09:00
2026-05-26 14:46:01 +09:00
2026-05-27 23:31:19 +09:00
2026-05-28 01:50:28 +09:00
2026-05-26 19:14:14 +09:00
2026-05-26 22:27:32 +09:00
2026-06-02 15:00:55 +09:00
2026-06-02 14:01:03 +09:00
2026-05-26 22:56:00 +09:00
2026-06-01 23:10:46 +09:00
2026-06-04 22:34:09 +09:00
2026-06-02 01:19:46 +09:00
2026-06-02 05:41:34 +09:00
2026-05-20 01:09:16 +09:00
2026-06-02 02:16:13 +09:00
2026-05-25 13:04:14 +09:00
2026-05-27 10:55:31 +09:00
2026-06-02 05:31:24 +09:00
2026-06-04 01:44:39 +09:00
2026-05-25 14:04:07 +09:00
2026-05-26 17:27:44 +09:00
2026-05-25 15:38:47 +09:00
2026-05-28 03:55:22 +09:00
2026-06-01 13:36:42 +09:00
2026-06-04 22:42:47 +09:00
2026-05-26 01:55:54 +09:00
2026-05-26 03:07:01 +09:00
2026-05-26 08:31:41 +09:00
2026-05-26 09:02:08 +09:00
2026-05-26 09:52:13 +09:00
2026-05-26 10:29:04 +09:00
2026-05-26 10:54:35 +09:00
2026-05-26 11:19:37 +09:00
2026-05-26 12:06:47 +09:00
2026-05-18 19:22:27 +09:00
2026-05-18 00:48:14 +09:00
2026-05-17 23:46:34 +09:00
2026-05-25 11:16:25 +09:00
2026-05-18 19:22:27 +09:00
2026-05-18 19:22:27 +09:00
2026-05-18 19:22:27 +09:00
2026-05-15 15:48:13 +09:00
2026-05-15 17:13:32 +09:00
2026-05-15 17:14:49 +09:00
2026-05-16 02:42:41 +09:00
2026-05-17 02:51:15 +09:00
2026-05-17 02:40:40 +09:00
2026-05-17 07:07:57 +09:00
2026-05-15 00:26:10 +09:00
2026-05-15 00:27:38 +09:00
2026-05-18 19:22:27 +09:00
2026-05-15 09:00:34 +09:00
2026-05-15 09:00:34 +09:00
2026-05-15 09:00:34 +09:00
2026-05-15 09:00:34 +09:00
2026-05-15 09:00:34 +09:00
2026-05-15 09:00:34 +09:00
2026-06-04 22:34:09 +09:00
2026-06-04 16:11:08 +09:00
2026-06-02 09:44:38 +09:00
2026-05-15 09:00:34 +09:00
2026-06-01 14:05:32 +09:00
2026-05-21 16:32:27 +09:00
2026-05-21 16:32:27 +09:00
2026-06-03 19:20:57 +09:00
2026-05-21 16:32:27 +09:00
2026-05-21 18:07:13 +09:00
2026-05-11 17:52:29 +09:00
2026-05-12 03:58:55 +09:00
2026-05-14 02:51:49 +09:00
2026-05-15 09:00:34 +09:00