Allow let bindings in function contracts #7201
Labels
aws
Bugs or features of importance to AWS CBMC users
Code Contracts
Function and loop contracts
feature request
CBMC version: 5.67.0
Operating system: N/A
For readability by naive readers, and even for hardened pros, we need to allow let bindings in function contract expressions for easy-to-read contracts.
among other things. The ensure clause should be something like
Without lets, the best we can do is in-place expansion of both expressions (unreadable: notice that the double nesting of expected_length in this expression) or approximate the lets with preprocessor defines
The text was updated successfully, but these errors were encountered: