Skip to content

Commit

Permalink
slowbeast: generate a trivial correctness witness
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalupa committed Dec 16, 2020
1 parent 6ebf9db commit 7134bcf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/symbioticpy/symbiotic/targets/slowbeast.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ def passes_before_verification(self):
passes.append(",".join(prp.getcalls())+f",__VERIFIER_assert")
return passes + ["-O3", "-remove-constant-exprs", "-reg2mem"]

def generate_graphml(path, source, is_correctness_wit, opts, saveto):
""" Generate trivial correctness witness for now """
if saveto is None:
saveto = '{0}.graphml'.format(basename(path))
saveto = abspath(saveto)

if is_correctness_wit:
gen.createTrivialWitness()
assert path is None
gen.write(saveto)

def determine_result(self, returncode, returnsignal, output, isTimeout):
if isTimeout:
return ''
Expand Down

0 comments on commit 7134bcf

Please sign in to comment.