8000 Disabling mbqi for pattern-based formula in Python doesn't seem work · Issue #7630 · Z3Prover/z3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Disabling mbqi for pattern-based formula in Python doesn't seem work #7630
Closed
@RabbitWhite1

Description

@RabbitWhite1

Hi, I am new to the pattern feature of z3. I followed the example from here

f = Function('f', IntSort(), IntSort())
g = Function('g', IntSort(), IntSort())
a, b, c = Ints('a b c')
x = Int('x')

s = Solver()
s.set(auto_config=False, mbqi=False)

s.add( ForAll(x, f(g(x)) == x, patterns = [f(g(x))]),
       g(a) == c,
       g(b) == c,
       a != b )

# Display solver state using internal format
print (s.sexpr())
print (s.check())

Since it disabled auto_config and mbqi, it is supposed to output unknown since the pattern f(g(x)) doesn't exist. But the result is unsat in my end.

I wonder if there is any other configuration I need to setup for this?

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

      0