Skip to content

test: cover fnptr-field cycle grounding and least fixed point (#3174) - #3649

Merged
ehartford merged 1 commit into
mainfrom
fnptr-cycle-tests-3174
Nov 27, 2026
Merged

ehartford merged 1 commit into
mainfrom
fnptr-cycle-tests-3174

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Closes #3174, #3206, and #3176 by completing the remaining verification items from Eric's 2026-11-25 ruling on #3174:

  1. Measuring build across the 23 buildable libraries on the Epic: with get c.<lib> just works — every popular Conan C library ships a complete, reviewed facade #3115 list (673ca2631):
  2. Cycle semantics verified and tested (test/internals/conan_facade_fnptr_field_proof_test.with):
    • cyc_lend_show: mutually recursive cycle through a closed function-pointer table with no store resolves as lend (least fixed point for retains).
    • cyc_keep_show: mutually recursive cycle where one member stores into a global stays raw: retains param 0.
    • cyc_ungrounded_new: mutually recursive cycle with no base allocation stays raw: returns *mut Thing unproven (grounded fixed point for owns_return).
    • cyc_grounded_new: closed table whose members are grounded in malloc proves owned producer of Thing.

Closes #3174.
Closes #3206.
Closes #3176.

@ehartford

Copy link
Copy Markdown
Contributor Author

Battery verdict on f188b8de8:

  • with run tools/battery.with: GREEN (rc=0, wall=766s; verified via with run tools/verdict.with out/battery/battery.log)

@ehartford
ehartford marked this pull request as ready for review November 27, 2026 08:17
@ehartford
ehartford merged commit a93ec48 into main Nov 27, 2026
1 check passed
@ehartford
ehartford deleted the fnptr-cycle-tests-3174 branch November 27, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment