summaryrefslogtreecommitdiff
path: root/test/regress/regress0/strings/large-model.smt2
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2020-08-19 18:54:17 +0200
committerGitHub <noreply@github.com>2020-08-19 11:54:17 -0500
commit1c67e4cc188b4812cedb614e6e998ea944ddb320 (patch)
tree0d423f7ff5abbc0ae94549a99d90440567522b99 /test/regress/regress0/strings/large-model.smt2
parent41f1a9a0036f3d18ec21ef6005fb218cf704fe60 (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/strings/large-model.smt2')
-rw-r--r--test/regress/regress0/strings/large-model.smt23
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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback