Skip to content

Models for sine and cosine builtins should be more precise #6999

Open
@adpaco-aws

Description

@adpaco-aws

The current models for sine/cosine are too over-approximated: They return 0/1 if the argument is 0, and a nondeterministic value -1 and 1 otherwise. I think this is confusing for everyone who has used them (see an example in model-checking/kani#1342), and they can be improved so they provide more precise results for special values the same way it's done for 0. Additionally, the returned interval can also be narrowed between these special values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    KaniBugs or features of importance to Kani Rust VerifierawsBugs or features of importance to AWS CBMC users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions