Skip to content

CBMC wavefront does not terminate on simple decreases clause in loop #8301

Open
@rod-chapman

Description

@rod-chapman

CBMC version: 6.0.0-preview (cbmc-6.0.0-alpha-400-gc320360eef)
Operating system: macOS 13.6.6 (Apple Silcon)

See new code in https://github.com/rod-chapman/cbmc-examples/blob/52d6ddeb15a23ed75802b15f69611dc735b6fe78/arrays/ar.c#L179

I added a "decreases" clause to the loop. CBMC 5.95.1 terminates OK after about 10 seconds.
CBMC 6.0.0-preview fails to terminate, with repeated messages, such as:

Running SMT2 QF_AUFBV using Z3
Runtime Solver: 0.920661s
Runtime decision procedure: 0.920808s
Running SMT2 QF_AUFBV using Z3
Runtime Solver: 0.926316s
Runtime decision procedure: 0.926462s
Running SMT2 QF_AUFBV using Z3
Runtime Solver: 0.955392s
Runtime decision procedure: 0.955532s
Running SMT2 QF_AUFBV using Z3
Runtime Solver: 0.918986s
Runtime decision procedure: 0.919128s
Running SMT2 QF_AUFBV using Z3
Runtime Solver: 0.925166s
Runtime decision procedure: 0.92531s

and so on.

Please fix. This is blocking progress on verification of s2n-tls.

Metadata

Metadata

Labels

awsBugs or features of importance to AWS CBMC usersblockerbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions