diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-07-26 14:27:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 14:27:37 -0500 |
commit | a131d4b4cf086f27c4c62d4b012862c75153033e (patch) | |
tree | 454a3147ef17ac07d17e1cbbdc77307c74636d63 /src/theory/evaluator.cpp | |
parent | d23c9f4112003c006fc1f1d78d8c82c8310908c9 (diff) |
Fix a few issues in the sygus sampler related to evaluation (#2215)
Diffstat (limited to 'src/theory/evaluator.cpp')
-rw-r--r-- | src/theory/evaluator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/evaluator.cpp b/src/theory/evaluator.cpp index ca2140ed5..dd40ace8a 100644 --- a/src/theory/evaluator.cpp +++ b/src/theory/evaluator.cpp @@ -193,6 +193,11 @@ EvalResult Evaluator::evalInternal(TNode n, // Lambdas are evaluated in a recursive fashion because each evaluation // requires different substitutions results[currNode] = evalInternal(op[1], lambdaArgs, lambdaVals); + if (results[currNode].d_tag == EvalResult::INVALID) + { + // evaluation was invalid, we fail + return results[currNode]; + } continue; } |