-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from healthypunk/concrat
Added update_bench_concrat.py script
- Loading branch information
Showing
3 changed files
with
89 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<span class="safe" style="color:green">{{this.safe}}</span> | ||
<span class="vulnerable" style="color:orange">{{this.vulnerable}}</span> | ||
<span class="unsafe" style="color: red">{{this.unsafe}}</span> | ||
<span class="uncalled" style="color: magenta">{{this.uncalled}}</span> |
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,29 @@ | ||
from pathlib import Path | ||
|
||
import gobexec.main | ||
from gobexec.goblint.bench import txtindex | ||
from gobexec.goblint.result import ConcratSummary | ||
from gobexec.goblint.tool import GoblintTool | ||
from gobexec.model.result import TimeResult | ||
from gobexec.model.tools import ExtractTool | ||
from gobexec.output.renderer import FileRenderer, ConsoleRenderer, MultiRenderer | ||
|
||
|
||
def index_tool_factory(name, args): | ||
goblint = GoblintTool( | ||
name=name, | ||
program=str(Path("../analyzer/goblint").absolute()), | ||
) | ||
|
||
return ExtractTool( | ||
goblint, | ||
TimeResult, | ||
ConcratSummary, | ||
) | ||
|
||
matrix = txtindex.load(Path("../bench/index/concrat.txt").absolute(),index_tool_factory) | ||
html_renderer = FileRenderer(Path("out.html")) | ||
console_renderer = ConsoleRenderer() | ||
renderer = MultiRenderer([html_renderer, console_renderer]) | ||
|
||
gobexec.main.run(matrix, renderer) |