-
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 #23 from goblint/healthypunk-master-fix
Fix ported scripts
- Loading branch information
Showing
11 changed files
with
100 additions
and
87 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
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 |
---|---|---|
@@ -1,35 +1,36 @@ | ||
from pathlib import Path | ||
|
||
import gobexec.main | ||
from gobexec.goblint.bench import txtindex | ||
from gobexec.goblint.extractor import AssertSummaryExtractor | ||
from gobexec.goblint.result import AssertTypeSummary, LineSummary | ||
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()), | ||
args=["--conf", str(Path("../analyzer/conf/traces-rel.json").absolute()), "--enable", "dbg.debug"] + args, | ||
dump= 'apron' | ||
) | ||
|
||
return ExtractTool( | ||
goblint, | ||
TimeResult, | ||
LineSummary, | ||
AssertSummaryExtractor(), | ||
|
||
) | ||
|
||
matrix = txtindex.load(Path("../bench/index/traces-rel-ratcop.txt").absolute(),index_tool_factory) | ||
html_renderer = FileRenderer(Path("out.html")) | ||
console_renderer = ConsoleRenderer() | ||
renderer = MultiRenderer([html_renderer, console_renderer]) | ||
|
||
from pathlib import Path | ||
|
||
import gobexec.main | ||
from gobexec.goblint.bench import txtindex | ||
from gobexec.goblint.extractor import AssertSummaryExtractor | ||
from gobexec.goblint.result import AssertTypeSummary, LineSummary | ||
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()), | ||
args=["--conf", str(Path("../analyzer/conf/traces-rel.json").absolute()), "--enable", "allglobs", "--enable", "dbg.timing.enabled", "--enable", "warn.debug", "-v"] + args, | ||
) | ||
|
||
return ExtractTool( | ||
goblint, | ||
TimeResult, | ||
LineSummary, | ||
AssertSummaryExtractor(), | ||
|
||
) | ||
|
||
# TODO: HTML columns broken | ||
|
||
matrix = txtindex.load(Path("../bench/index/traces-rel-ratcop.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) |
67 changes: 34 additions & 33 deletions
67
udpate_bench_traces_rel_toy.py → update_bench_traces_rel_toy.py
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 |
---|---|---|
@@ -1,34 +1,35 @@ | ||
from pathlib import Path | ||
|
||
import gobexec.main | ||
from gobexec.goblint import tool | ||
from gobexec.goblint.bench import txtindex | ||
from gobexec.goblint.result import AssertTypeSummary | ||
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()), | ||
args=["--conf", str(Path("../analyzer/conf/traces-rel-toy.json").absolute()), "--enable", "dbg.debug"] + args, | ||
dump= 'apron' | ||
) | ||
|
||
return ExtractTool( | ||
goblint, | ||
TimeResult, | ||
AssertTypeSummary, | ||
|
||
) | ||
|
||
matrix = txtindex.load(Path("../bench/index/traces-rel-toy.txt").absolute(),index_tool_factory) | ||
html_renderer = FileRenderer(Path("out.html")) | ||
console_renderer = ConsoleRenderer() | ||
renderer = MultiRenderer([html_renderer, console_renderer]) | ||
|
||
from pathlib import Path | ||
|
||
import gobexec.main | ||
from gobexec.goblint import tool | ||
from gobexec.goblint.bench import txtindex | ||
from gobexec.goblint.extractor import AssertSummaryExtractor | ||
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()), | ||
args=["--conf", str(Path("../analyzer/conf/traces-rel-toy.json").absolute()), "--enable", "allglobs", "--enable", "dbg.timing.enabled", "--enable", "warn.debug", "-v"] + args, | ||
) | ||
|
||
return ExtractTool( | ||
goblint, | ||
TimeResult, | ||
AssertSummaryExtractor(), | ||
|
||
) | ||
|
||
# TODO: HTML columns broken | ||
|
||
matrix = txtindex.load(Path("../bench/index/traces-rel-toy.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) |
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