3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-14 19:15:41 +00:00

Polish foldl foldli regression test

This commit is contained in:
copilot-swe-agent[bot] 2026-07-13 21:43:06 +00:00 committed by GitHub
parent 2b5091dfff
commit aaaae5b4c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,7 @@ static void test_seq_foldl_nth_model_validation() {
Z3_del_context(ctx);
}
static void test_seq_fold_scalar_model_validation() {
static void test_seq_foldl_foldli_scalar_model_validation() {
Z3_context ctx = Z3_mk_context(nullptr);
char const* result =
Z3_eval_smtlib2_string(ctx,
@ -90,6 +90,7 @@ static void test_seq_fold_scalar_model_validation() {
"(check-sat)\n"
"(pop)\n");
ENSURE(std::strstr(result, "unknown") == nullptr);
ENSURE(std::strstr(result, "invalid model") == nullptr);
unsigned sat_count = 0;
std::istringstream in{std::string(result)};
for (std::string line; std::getline(in, line);)
@ -325,7 +326,7 @@ void tst_seq_rewriter() {
}
test_seq_foldl_nth_model_validation();
test_seq_fold_scalar_model_validation();
test_seq_foldl_foldli_scalar_model_validation();
std::cout << "tst_seq_rewriter: all tests passed\n";
}