-
Notifications
You must be signed in to change notification settings - Fork 2k
Dataflow: Expose stage 1's fwdFlow
#21631
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,6 +91,10 @@ module MakeImplStage1<LocationSig Location, InputSig<Location> Lang> { | |
|
|
||
| class ApNil extends Ap; | ||
|
|
||
| predicate fwdFlow(Nd node); | ||
|
|
||
| predicate fwdFlow(Nd node, Ap ap); | ||
|
|
||
| predicate revFlow(Nd node); | ||
|
|
||
| predicate revFlow(Nd node, Ap ap); | ||
|
|
@@ -634,7 +638,7 @@ module MakeImplStage1<LocationSig Location, InputSig<Location> Lang> { | |
| ) | ||
| } | ||
|
|
||
| private predicate fwdFlow(NodeEx node) { fwdFlow(node, _) } | ||
| predicate fwdFlow(NodeEx node) { fwdFlow(node, _) } | ||
|
|
||
| pragma[nomagic] | ||
| private predicate fwdFlowReadSet(ContentSet c, NodeEx node, Cc cc) { | ||
|
|
@@ -1291,6 +1295,13 @@ module MakeImplStage1<LocationSig Location, InputSig<Location> Lang> { | |
| import Stage1 | ||
| import Stage1Common | ||
|
|
||
| predicate fwdFlow(Nd node) { Stage1::fwdFlow(node) } | ||
|
|
||
| predicate fwdFlow(Nd node, Ap ap) { | ||
| Stage1::fwdFlow(node) and | ||
| exists(ap) | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in e06294b |
||
|
|
||
| predicate revFlow(NodeEx node, Ap ap) { Stage1::revFlow(node) and exists(ap) } | ||
|
|
||
| predicate toNormalSinkNode = toNormalSinkNodeEx/1; | ||
|
|
@@ -1395,6 +1406,10 @@ module MakeImplStage1<LocationSig Location, InputSig<Location> Lang> { | |
|
|
||
| import Stage1Common | ||
|
|
||
| predicate fwdFlow(Nd node) { Stage1::fwdFlow(node.getNodeEx()) } | ||
|
|
||
| predicate fwdFlow(Nd node, Ap ap) { Stage1::fwdFlow(node.getNodeEx()) and exists(ap) } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in e06294b |
||
|
|
||
| predicate revFlow(Nd node) { Stage1::revFlow(node.getNodeEx()) } | ||
|
|
||
| predicate revFlow(Nd node, Ap ap) { Stage1::revFlow(node.getNodeEx()) and exists(ap) } | ||
|
|
||
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.
No need for the binary
fwdFlow, right? It's only there forrevFlowbecause this section of the signature is implicitly extending/including theStageSigsignature, and we're not addingfwdFlowto that.For the same reason, the unary
fwdFlowsignature should be moved a couple of lines up, so it's above the// begin StageSigcomment.(We don't yet have the proper QL language feature to do this kind of signature sharing, so there's just a comment bracketing the
StageSigpart).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.
Correct! It's not needed. I'll delete that and move the
fwdFlowa few lines up.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.
Fixed in e06294b