-
Notifications
You must be signed in to change notification settings - Fork 23
Tse26 #217
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
base: master
Are you sure you want to change the base?
Tse26 #217
Changes from all commits
61edcd1
ce30940
4bbd763
551ce99
f336022
f02b390
0c2534b
b87f821
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 |
|---|---|---|
|
|
@@ -37,6 +37,8 @@ class ArgsParser { | |
| this.cli.pd(longOpt: 'pessimistic-dataflow', "Run pessimistic-dataflow") | ||
| this.cli.report(longOpt: 'report', "Run report results for experiment using -icf -ioa -idfp -pdg") | ||
| this.cli.r(longOpt: 'reachability', "Run reachability") | ||
| this.cli.cg(longOpt: 'callgraph', args: 1, argName: 'algorithm', "Call graph algorithm [CHA, RTA, VTA, SPARK]") | ||
| this.cli.prt(longOpt: 'partial-results-on-timeout', "When a soot analysis times out, capture and record the partial results found up to that point instead of discarding them") | ||
| } | ||
|
|
||
| Arguments parse(args) { | ||
|
|
@@ -117,5 +119,15 @@ class ArgsParser { | |
| if (this.options.r) { | ||
| args.setReachability(true) | ||
| } | ||
| if (this.options.cg) { | ||
|
Member
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. @barbosamaatheus se o usuário não usar a opção cg, qual o algoritmo padrão usado? deveria ser o mesmo usado antes, para mantermos compatibilidade com experimentos anteriores; não termos que alterar experimentos anteriores para adicionar essa opção
Collaborator
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. Sim, é o mesmo @pauloborba. A diferença é que agora as analises lidam melhor com o grafo nas novas versões do que antes. |
||
| String algorithm = options.cg?.toString()?.trim()?.toUpperCase() | ||
| if (!algorithm || !["CHA", "RTA", "VTA", "SPARK"].contains(algorithm)) { | ||
| throw new IllegalArgumentException("Invalid callgraph algorithm: ${options.cg}") | ||
|
barbosamaatheus marked this conversation as resolved.
|
||
| } | ||
| args.setCallgraph(algorithm) | ||
| } | ||
| if (this.options.prt) { | ||
| args.setPartialResultsOnTimeout(true) | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.