Skip to content

[catalogue] Fix catalogue - #1939

Open
maranget wants to merge 5 commits into
masterfrom
fix-catalogue
Open

[catalogue] Fix catalogue#1939
maranget wants to merge 5 commits into
masterfrom
fix-catalogue

Conversation

@maranget

Copy link
Copy Markdown
Member

Fix various problems in the catalogue.

maranget added 5 commits July 30, 2026 18:11
The "anarchy" (define coherence order and no consitency check)
model is restored. Noticeably we erase PTX tests, as herd
no longer  supports this architecture.
Minor fix: update a call to the ctrlcfence function
from the Cat standard library.
Comment thread lib/interpreter.ml
begin match eval_ord env e with
| V.Empty -> V.Empty
| Unv -> Rel (Lazy.force env.EV.ks.id)
| Event e -> Rel (E.EventRel.singleton (e,e))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what problem is this line addressing? What is an example of a ToId operator with an Event operand?

@maranget maranget Jul 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I could have made a separate PR the code is let succs (e,r) = range ([e];r), where e is a single event. This code was working before,because the Cat interpreter was systematically using the same function (eval_events) when an event set is expected. The function eval_events performs the silent promotion of one event into a singleton set. Since for instance PR #1855, the evaluation of sets has become more complex and this case of [e] where e is an event had been overlooked.

@maranget maranget changed the title Fix catalogue [catalogue] Fix catalogue Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants