mirror of
https://github.com/Z3Prover/z3
synced 2025-08-03 18:00:23 +00:00
fix handling of AC operator ++ on regular expressions. Issue #804
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
71ca355257
commit
7a4c20698f
3 changed files with 6 additions and 2 deletions
|
@ -44,7 +44,8 @@ struct well_sorted_proc {
|
|||
void operator()(app * n) {
|
||||
unsigned num_args = n->get_num_args();
|
||||
func_decl * decl = n->get_decl();
|
||||
if (num_args != decl->get_arity() && !decl->is_associative()) {
|
||||
if (num_args != decl->get_arity() && !decl->is_associative() &&
|
||||
!decl->is_right_associative() && !decl->is_left_associative()) {
|
||||
TRACE("ws", tout << "unexpected number of arguments.\n" << mk_ismt2_pp(n, m_manager););
|
||||
warning_msg("unexpected number of arguments.");
|
||||
m_error = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue