summaryrefslogtreecommitdiff
path: root/test/regress/run_regression.py
diff options
context:
space:
mode:
authoryoni206 <yoni206@users.noreply.github.com>2018-04-20 15:07:55 -0700
committerGitHub <noreply@github.com>2018-04-20 15:07:55 -0700
commiteddacee2d28846089e6dd356f72e6d39a371ec0f (patch)
tree18cf46f985b656a75aea80074bd956d8f6826627 /test/regress/run_regression.py
parent549060790c9e91d9fc37b882e137bb36e5b538ea (diff)
Enforcing --no-bv-eq, --no-bv-algebraic and --no-bv-ineq when proofs are enabled (#1801)
Currently, if the user enables proofs but does not disable the algebraic/equality/inequality bv-solvers, then we reach an internal error while printing the proof (unreachable code becomes reachable). This commit auto-disable these bv options when proofs are enabled, unless these options were set by the user. In such a case, an error message is given to the user.
Diffstat (limited to 'test/regress/run_regression.py')
-rwxr-xr-xtest/regress/run_regression.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/regress/run_regression.py b/test/regress/run_regression.py
index db72854eb..ea744d838 100755
--- a/test/regress/run_regression.py
+++ b/test/regress/run_regression.py
@@ -201,13 +201,6 @@ def run_regression(proof, dump, wrapper, cvc4_binary, benchmark_path, timeout):
# If there is no expected output/error and the exit status has not
# been set explicitly, the benchmark is invalid.
sys.exit('Cannot determine status of "{}"'.format(benchmark_path))
-
- if not proof and ('(get-unsat-core)' in benchmark_content
- or '(get-unsat-assumptions)' in benchmark_content):
- print(
- '1..0 # Skipped: unsat cores not supported without proof support')
- return
-
if expected_exit_status is None:
expected_exit_status = 0
@@ -216,6 +209,13 @@ def run_regression(proof, dump, wrapper, cvc4_binary, benchmark_path, timeout):
os.environ['CVC4_REGRESSION_ARGS'])
basic_command_line_args += shlex.split(command_line)
command_line_args_configs = [basic_command_line_args]
+ if not proof and ('(get-unsat-core)' in benchmark_content
+ or '(get-unsat-assumptions)' in benchmark_content
+ or '--check-proofs' in basic_command_line_args
+ or '--dump-proofs' in basic_command_line_args):
+ print(
+ '1..0 # Skipped: unsat cores not supported without proof support')
+ return
extra_command_line_args = []
if benchmark_ext == '.sy' and \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback