Repository navigation
Duolab continued - #2111
Open
maranget wants to merge 2 commits into
Open
Duolab continued#2111maranget wants to merge 2 commits into
maranget wants to merge 2 commits into
Conversation
maranget
marked this pull request as draft
November 13, 2026 17:18
maranget
force-pushed
the
duolab-continued
branch
2 times, most recently
from
November 13, 2026 19:44
c32639a to
af072fc
Compare
maranget
marked this pull request as ready for review
November 13, 2026 20:10
maranget
force-pushed
the
duolab-continued
branch
from
November 18, 2026 11:10
6c76a89 to
2d220de
Compare
psafont
reviewed
Nov 19, 2026
| T.get_init_labels test |> Label.Full.Set.elements in | ||
| if Misc.consp lbls then begin | ||
| T.get_init_labels test in | ||
| if ByProc.is_empty lbls then begin |
Collaborator
There was a problem hiding this comment.
Does this mean the condition is now reversed? (consp -> is_empty). The if is needed to decide whether to output an empty line, consider changing the if to enclose only that empty line, Byproc.iter will do the right thing regardless the size of lbls.
Member
Author
There was a problem hiding this comment.
Hi @psafont. Thanks for your sharp eye. I believed I had fixed this, apparently not. Fixing.
maranget
force-pushed
the
duolab-continued
branch
from
November 20, 2026 15:18
2d220de to
e5bd30a
Compare
For now, the new structure `'item ByProc.t` is used by **litmus7** to group labels by thread. The main benefit is keeping all labels in the same order everywhere for a small code complexity and a decent level of abstraction.
We replace a linear scan by two nested C switch constructs. More a matter of style than of efficiency...
maranget
force-pushed
the
duolab-continued
branch
from
November 20, 2026 15:29
e5bd30a to
696be08
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to PR #2094.
fault_labelfunction for the mapping from code offsets to label indices.None of this was strictly necessary beyond improving code robustness and the aspect of produced C code.
Notice that it was not a problem for
get_labelto return an index different from the one of other tables. However, synchronizing all indices should imporove robustness.