You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: CBMC currently requires loop annotations to be placed between for(...) and {...}. This is inconvenient for code that's subject to automatic formatting. For example, there is no option (I know of) for clang-format that would lead to a reasonable formatting of annotations. One can work around it by adding // clang-format: on/off annotations, but that adds to the visual load of the annotation themselves, and makes the code overall harder to read.
Ask: For CBMC to additionally support loop annotations be placed at the top of the loop body.
Continuing the example of clang-format, one could then mark the CBMC macros as statements, and they would be formatted in-line with the rest of the loop body.
The text was updated successfully, but these errors were encountered:
Issue: CBMC currently requires loop annotations to be placed between
for(...)
and{...}
. This is inconvenient for code that's subject to automatic formatting. For example, there is no option (I know of) forclang-format
that would lead to a reasonable formatting of annotations. One can work around it by adding// clang-format: on/off
annotations, but that adds to the visual load of the annotation themselves, and makes the code overall harder to read.Ask: For CBMC to additionally support loop annotations be placed at the top of the loop body.
Continuing the example of
clang-format,
one could then mark the CBMC macros as statements, and they would be formatted in-line with the rest of the loop body.The text was updated successfully, but these errors were encountered: