Skip to content

floor div for symbolic integers in Python #6309

@ganler

Description

@ganler
import z3
x, y = z3.Ints("x y")
x / y # okay
x // y # oops. exception

image

I am curious if we have plans to support __floordiv__ whose semantic can be integer floor division with assumptions that lhs and rhs ArithRefs are integers. Thanks!

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