Utility catalogue
Formatting
printf
Format literal strings
Open3,000 seeds
Proof brief
- Invocation
printf FORMAT ARG…- Input domain
- Use a restricted format grammar of literal ASCII, %% and %s. Supply one string argument for each %s and no extra arguments. Pass -- before the format when invoking the GNU binary.
- Proof obligation
- Emit literal bytes, a single percent for each %%, and the next argument's bytes for each %s, exactly once and in order. Emit no implicit final newline.
- Test cases
- Empty format and arguments, adjacent specifiers, escaped percent, and arguments containing percent signs.
- Outside this profile
- Backslash escapes, numeric conversions, widths, precision, format reuse, and argument count mismatches.
Subtasks and prerequisites
Read obligations JSONThis target needs root.io (proved).
Task bundle
Read bundle JSONA formal Rocq statement has yet to be published for this profile.
This target has no verifier yet. Add targets/printf/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/printf/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.