Repository navigation
C time_date_logic: call-anchored, gmtime/strptime/timegm/ctime/asctime counted, bare time_t not (Part of #8863, #9334) - #9373
Conversation
…e counted, bare time_t declarations not (Part of #8863, #9334) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
|
No description provided. |
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (28c9d3d) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (3907225) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
2 similar comments
|
No description provided. |
|
No description provided. |
…rt of #9335) Main's PHP/JS/C family PRs (#9370, #9375, #9373) conflicted in generated files; took main's side and regenerated each with its tool. Drift vs main: C++ only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Part of #8863, #9334.
Checklist: done [c:e86a22fb]
What
Four of the five red C cells (
bitwise_ops,debug_prints,panics_and_aborts,io) were already fixed by #9367 (baseline cells on language-crucible v1.9.0 are all 0.93+). The fifth,time_date_logic, is measured only on redis (unpinned, hatched; the pinned crucible has under 10 oracle functions for it). Cause class: rule counts another construct (type declarations) and misses named calls.Triage on redis (oracle vs rule, per function, 117 oracle functions): 30 over-counted functions, 28 of them a bare
time_tdeclaration or cast; recall was already 1.0 for the calls the rule knew. The rule did not readgmtime,gmtime_r,strptime,timegm,ctime,asctime, which the oracle does. After the change: 1 oracle-only, 4 rule-only functions of 117 (about 0.96 / 0.99). The cell in the baseline file is the old redis triage number (hand-kept, unpinned); it is not re-recorded here, and the sweep on the pin leaves every C cell unchanged.Class / Sibling gaps
Class: C
time_date_logicrule forms vs the declared contract ("at its invocation"): call-anchored time functions, member and longer-name forms excluded, type names not counted. Handled here: time/clock, clock_gettime, gettimeofday, localtime(_r), gmtime(_r), strftime, strptime, difftime, mktime, timegm, ctime(_r), asctime(_r). Sibling gaps (not touched, no burned-estate program needs them): C++ and Objective-C time rules share the idiom (atime_t/NSDatetype mention); the C decoy keyword in the baseline is stilltime_t(decoys re-run is a separate refresh). Contract isdeclared, notstated: dropping the bare type follows its "at its invocation" wording, no question filed.Tests
tests/test_c_family_validity_8863.py: time_date_logic positive and negative forms.test_c_strict/test_cpass.Gates
pr_gates --fast9/9,--ratchets9/9 (via heavy-run). Golden blessed withcrucible_check.py --update --yesunder golden-lock: 5 differences per leg, all one file (cobol/gnucobol_internals/fileio.ctime_date_logic) plus its derived snapshots. Not run: CPU A/B (the rule has fewer alternatives and one lookbehind) and keyword-rosetta dry run (no checkout on this box); the rule narrows to call forms, so a re-bless there is possible.🤖 Generated with Claude Code