Skip to content

Debug branch: Assertion violation at src/ast/ast.cpp:1931 #3381

@wintered

Description

@wintered

Hi,
For this formula:

(declare-fun n () Int) 
(declare-fun f () Int) 
(declare-fun m () Int) 
(declare-fun b () (Set Int)) 
(declare-fun c () (Set Int)) 
(declare-fun UNIVERALSET () (Set Int)) 
(assert (subset b UNIVERALSET))
(assert (subset c UNIVERALSET))
(assert (<= n 9))
(assert (= (card UNIVERALSET) n))
(assert (distinct (card b) m))
(assert (distinct 0 (- 148 f m)))
(assert (>= m 256))
(assert (< f m))
(assert
  (>= n (+ 130 (div 210 f) m))
)
(assert
  (<
    (card
      (setminus UNIVERALSET 
      (intersection (setminus UNIVERALSET b) 
                    (setminus UNIVERALSET c)))
    )
    n
  )
)
(check-sat)

Z3 throws out an assertion violation:

ASSERTION VIOLATION
File: ../src/ast/ast.cpp
Line: 1931
m_ast_table.contains(n)
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
ASSERTION VIOLATION
File: ../src/ast/ast.cpp
Line: 639
c
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

OS: Ubuntu 18.04
Commit: aa119d1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions