Skip to content

Assertion violation at ../src/smt/smt_context.h Line: 1224 #3743

@muchang

Description

@muchang

Hi,
For this formula:

(declare-fun s () (Set Int))
(declare-fun t () (Set Int))
(assert (= (card (union s t)) 2))
(assert (= (card s) 1))
(check-sat)

Z3 throws out an assertion violation:

[639] % z3 small.smt2
sat
[640] % z3 smt.threads=2 small.smt2
ASSERTION VIOLATION
File: ../src/smt/smt_context.h
Line: 1224
l != true_literal && l != false_literal
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
ASSERTION VIOLATION
File: ../src/smt/smt_context.h
Line: 1224
l != true_literal && l != false_literal
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
s
Segmentation fault
[641] % 
[641] % cat small.smt2
(declare-fun s () (Set Int))
(declare-fun t () (Set Int))
(assert (= (card (union s t)) 2))
(assert (= (card s) 1))
(check-sat)

OS: Ubuntu 18.04
Commit: f447292

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