Skip to content

Apron analysis does not support trivial assertions #1610

Open
@sim642

Description

@sim642

The output of

./regtest.sh 78 02 --trace apron

contains

%%% apron: assert_constraint 1 > 0 unsupported: Exp_not_supported
%%% apron: assert_constraint 1 < 0 unsupported: Exp_not_supported
[...]
%%% apron: assert_constraint 1 != 0 unsupported: Exp_not_supported

This is odd because there's nothing complicated or problematic (e.g. overflows) with them.
Asserting the first one is of course useless (it refines nothing), which is also what currently happens with unsupported expressions (but it would be nice to not have spurious messages like this).
Asserting the second one should refine to bottom, instead of remaining unchanged (we're missing the most precise possible result!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    precisionrelationalRelational analyses (Apron, affeq, lin2var)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions