Skip to content

Handle division by zero for non-negative types #86

@Philipp15b

Description

@Philipp15b

When a user writes a/b and the result is a non-negative type, then we currently do not restrict the result to be non-negative. This is relevant when b = 0 holds, in which case the SMT solver can assign any value to a/0, including negative numbers. If used as expectations, this can break all kinds of assumptions, including error reporting by slicing. I have observed a counterexample where all assertions were sliced because of this (which should not be possible).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions