Skip to content

Concrete backend and reference evaluator have different Integer division semantics #2060

Description

@RyanGlScott

The following Cryptol session computes the same expression involving integer division twice, once using the concrete backend and once again using the reference evaluator (:eval). I'd expect to get the same answer both times, but they instead return different answers:

Cryptol> (7 : Integer) / (-2 : Integer)
-4
Cryptol> :eval (7 : Integer) / (-2 : Integer)
-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething not working correctly

    Type

    No type

    Fields

    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