move-language / move

Apache License 2.0
2.25k stars 679 forks source link

[move-prover] add the unroll pragma #1010

Closed meng-xu-cs closed 1 year ago

meng-xu-cs commented 1 year ago

We now support both function-level and module-level

pragma unroll = <depth-limit>;

The effect of specifying this pragma is:

The effect of this pragma is illustrated in the loop_unroll.move test case.

Motivation

More coarse-grained (and user-friendly) loop unrolling annotation

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

CI