Left to Prove | printf Format literal strings Status: Open Seeds: 3000 Category: Formatting 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. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/printf.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/printf-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/printf.c Reference release: GNU Coreutils 9.11 (https://github.com/coreutils/coreutils/releases/tag/v9.11) Prerequisites: root.io: Byte I/O and argument forwarding (Proved) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/printf.json Implementation replay command: sh targets/printf/verify.sh No verify.sh exists for this target yet. Write it as part of the submission, modeled on https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh. Build the checker image first: see SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: printf Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt