mkpost: POST's table and its documents the same run to run (#199)
The cells of v3's column whose value differs each run -- the three addresses, and three values of the run's history -- are written "varies run to run" (a varies mark on their rules). And a second finding, in post_cases.c itself: ENTROPY!.overwrite took 20 or 0 from v3's run, as its heartbeat cooled the word between the lines; pinned to 20, its words' meaning (both ruled). Three runs write the same POST.md, POST79.md and post_cases.c; post_cases.c is as committed, so POST does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
+4
-1
@@ -556,7 +556,10 @@ def write_doc(cases, results, left_out, disagreements, untested, total, applied,
|
||||
if rule is None:
|
||||
continue
|
||||
case, (error, stack, output) = by_label[label]
|
||||
did = "error" if error else "stack `%s`, printed `%s`" % (" ".join(map(str, stack)) or "empty", output.replace("\n", "\\n")[:40])
|
||||
# #199: what v3 printed, unless the rule says it is a different number each run (an address, or the
|
||||
# run's own history) -- then that, so two runs write the same file
|
||||
printed = "varies run to run" if rule.get("varies") else "`%s`" % output.replace("\n", "\\n")[:40]
|
||||
did = "error" if error else "stack `%s`, printed %s" % (" ".join(map(str, stack)) or "empty", printed)
|
||||
ran = code(rule["text"]) if "text" in rule else "unchanged"
|
||||
out.append("| `%s` | %s | %s | %s | %s | %s |" % (label, code(case["text"]), did, ran, expects(rule), rule["why"]))
|
||||
out += ["", "## 2. Address-dependent (%d)" % applied["address"], "",
|
||||
|
||||
Reference in New Issue
Block a user