-
Notifications
You must be signed in to change notification settings - Fork 103
[catalogue] Fix catalogue #1939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
maranget
wants to merge
5
commits into
master
Choose a base branch
from
fix-catalogue
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
344f6e4
[catalogue] Partly restore the "demo" book.
maranget 7942e2b
[catalogue] Fix herding-cats/ppc book
maranget 1ea239f
[catalogue] Fix one "tiger" fence test in the tutorial book.
maranget 026f9eb
[catalogue] Upate the tutorial "panther.cat" model.
maranget b369920
[herd,cat] Interpret one event `e` as a singleton in `[e]`
maranget File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../herd/libdir/c11_cos.cat |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| "Generate sc total orders" | ||
|
|
||
| let scbase = po|mo|rf|fr | ||
| with S from generate_orders(IW|sc,scbase) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| "I can't dance" | ||
|
|
||
| enum ftype = 'ww || 'rr | ||
| instructions F[ftype] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| "I can't dance" | ||
|
|
||
| include "tutorial.cat" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| "common" | ||
|
|
||
| include "cross.cat" | ||
| include "filters.cat" | ||
|
|
||
| with co from generate_cos(co0) | ||
| let coe = co & ext | ||
| let fr = rf^-1;co | ||
| let fre = fr & ext | ||
| show co | ||
| show fr |
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
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| "I can't dance" | ||
|
|
||
| include "cos.cat" |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../../herd/libdir/cpp11.cfg |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,14 @@ | ||
| graph columns | ||
| squished true | ||
| showevents memory | ||
| showinitwrites false | ||
| fontsize 8 | ||
| scale 0.75 | ||
| xscale 1.0 | ||
| yscale 0.6667 | ||
| arrowsize 0.5 | ||
| showfr true | ||
| showpoloc false | ||
| showinitrf true | ||
| showfinalrf false | ||
| splines spline | ||
| pad 0.1 | ||
| graph columns | ||
| squished true | ||
| showevents memory | ||
| showinitwrites false | ||
| fontsize 8 | ||
| scale 0.75 | ||
| xscale 1.0 | ||
| yscale 0.6667 | ||
| arrowsize 0.5 | ||
| doshow fr | ||
| showinitrf true | ||
| showfinalrf false | ||
| splines spline | ||
| pad 0.1 |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ARM MP+dsb+addr | ||
| ARM MP-arm+dsb+addr | ||
| { | ||
| %x0=x; %y0=y; | ||
| %y1=y; %x1=x; | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ARM MP | ||
| ARM MP-ARM | ||
| { | ||
| %x0=x; %y0=y; | ||
| %y1=y; %x1=x; | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| Bell MP-Bell | ||
| { | ||
| x = 0; | ||
| y = 0; | ||
| } | ||
| P0 | P1 ; | ||
| w[] x 1 | r[] r1 y ; | ||
| w[] y 1 | r[] r2 x ; | ||
| exists (1:r1 = 1 /\ 1:r2 = 0) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| X86 MP | ||
| X86 MP-X86 | ||
| { x=0; y=0; } | ||
| P0 | P1 ; | ||
| MOV [x],$1 | MOV EAX,[y] ; | ||
|
|
||
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
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
ToIdoperator with anEventoperand?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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), whereeis 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 functioneval_eventsperforms 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]whereeis an event had been overlooked.