Skip to content

Can't use unsat cores and optimization together through .NET Z3 #7436

@jiyuzh

Description

@jiyuzh

The .NET binding of Z3 seems to miss an implementation for assert_and_track in the Optimize class, preventing the use of unsat core when using the optimizer. Despite Optimize.UnsatCore seems to be implemented, without a way to add named assertions, there is no way to obtain the unsat core list without the capability to add named assertions - only empty list is returned.

Since other language bindings, e.g. Python, already have such support, it would be convenient if these methods were available on Optimize as well as Solver in the .NET binding as well.

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