-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization for unsanitized and fix for ARG.
- Loading branch information
fabs
committed
Mar 9, 2014
1 parent
deafe7a
commit 2ca8ff3
Showing
5 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,34 @@ | ||
|
||
/** | ||
Match descriptions as presented in the paper. Please note, that | ||
tradeoffs in efficiency are made for increased robustness and ease | ||
of formulation. | ||
*/ | ||
|
||
/** | ||
*/ | ||
|
||
Gremlin.defineStep('match', [Vertex, Pipe], { p -> | ||
_().astNodes().filter(p) | ||
}) | ||
|
||
/** | ||
*/ | ||
|
||
Gremlin.defineStep('arg', [Vertex, Pipe], { f, i -> | ||
_().astNodes().filter{ it.type == 'CallExpression' && it.code.startsWith(f)} | ||
.out(AST_EDGE).filter{ it.childNum == '1' }.out(AST_EDGE).filter{ it.childNum == i} | ||
}) | ||
|
||
/** | ||
*/ | ||
|
||
Gremlin.defineStep('param', [Vertex, Pipe], { x -> | ||
p = { it.type == 'Parameter' && it.code.matches(x) } | ||
_().match(p) | ||
|
||
}) | ||
|
This file contains 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