Skip to content

Add explicit types for signed/unsigned words #2015

@yav

Description

@yav

Currently Cryptol uses sequences of bits to represent signed and unsigned numbers, and relies on separate operators when semantics differ between signed and unsigned values. It might be useful to add explicit signed/unsigned word types, and ose the types to determine the correct operator instead (i.e., mirror what most other programming languages do).

Implementing this should not require a lot of changes, as these new types can coexist with existing types, and we could relevant coercion functions to/from bit sequences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestAsking for new or improved functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions