Utility catalogue
Comparison
cmp
Compare two byte streams
Open3,000 seeds
Proof brief
- Invocation
cmp -s FILE1 FILE2- Input domain
- Compare two readable finite byte sequences exposed as regular files in the WASI host.
- Proof obligation
- Return exit status 0 for equal byte sequences and 1 for unequal sequences with no stdout or stderr on these successful comparisons. Prove early exit preserves the equality decision.
- Test cases
- Two empty files, one stream a prefix of the other, single-byte mismatches, and different read chunk boundaries for each file.
- Outside this profile
- Diagnostics, inaccessible files, nonregular files, offsets, and other flags.
Subtasks and prerequisites
Read obligations JSONThis target needs root.io (proved), root.preopens (not supported yet).
Task bundle
Read bundle JSONA formal Rocq statement has yet to be published for this profile.
This target has no verifier yet. Add targets/cmp/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/cmp/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.