diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2020-08-19 18:54:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 11:54:17 -0500 |
commit | 1c67e4cc188b4812cedb614e6e998ea944ddb320 (patch) | |
tree | 0d423f7ff5abbc0ae94549a99d90440567522b99 /test/regress/regress0 | |
parent | 41f1a9a0036f3d18ec21ef6005fb218cf704fe60 (diff) |
Changes assertion (about maximum set cardinality) to an exception. (#4907)
Changes the assertion that checks for the maximum cardinality of set models to an exception, following #4374.
Also cleans up the code around it: previously, the Rational was checked against LONG_MAX, converted to std::uint32_t and then stored into an unsigned. Now we use std::uint32_t all the way.
Fixes #4374.
Diffstat (limited to 'test/regress/regress0')
-rw-r--r-- | test/regress/regress0/strings/large-model.smt2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/regress/regress0/strings/large-model.smt2 b/test/regress/regress0/strings/large-model.smt2 index 74b781c82..f3aa7f8f2 100644 --- a/test/regress/regress0/strings/large-model.smt2 +++ b/test/regress/regress0/strings/large-model.smt2 @@ -1,5 +1,6 @@ ; COMMAND-LINE: --lang=smt2.6 --check-models -; EXPECT: (error "Cannot generate model with string whose length exceeds UINT32_MAX") +; SCRUBBER: sed -E 's/of length [0-9]+/of length LENGTH/' +; EXPECT: (error "The model was computed to have strings of length LENGTH. We only allow strings up to length 4294967295") ; EXIT: 1 (set-logic SLIA) (declare-fun x () String) |