Skip to content

hevm loop heuristic triggers even when using code without loops #854

@gustavo-grieco

Description

@gustavo-grieco

After #853 is fixed, another issue related with the loop heuristic was found: it can be confused to detect loops where there is nothing like that.

To reproduce, clone the abdk verification repository and run the exploration using make verify-hevm T=prove_inv_identity. It will explore certain number of states. However, if you modify the Makefile to use --loop-detection-heuristic StackBased in the hevm call, you will see the number of states explored is around half of them (and the results will be available much faster!). Interestingly enough, the code has no loops at all (but some function calls are repeated).

Should we have a "no loop heuristic mode" ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions