Repository navigation
Commit 0fede47. Verus 0.2026.04.10.01bf489.
- Added
evaluation/:generate.pyruns a model on a task with its fixed
prompt, andscore.pyscores one program per problem
(seeevaluation/README.md). - Fixed six LeetCode reference drivers that failed compilation (
lc7,
lc2110,lc2960,lc3105,lc3206,lc413), implementedlc344's
character-array parser, and corrected the output schema of all twelve in-place
problems, including the two that use only an embedded harness. The harness generator now emits
post-call argument values and any return value for in-place functions. - Added published camelCase input-key compatibility to 32 reference drivers
and correctedlc1095's array key. leetcode/lc377: restored the O(target × n) dynamic program incode.rs,
code_spec.rs, andverified.rs, replacing an exponential recursion that
exceeded the time limit. DP entries saturate at 2^31, so intermediate counts
cannot overflow when the answer fits ini32.leetcode/lc643:code.rs,spec.rs,code_spec.rs, andverified.rsnow
match the starter code. The verifiedfind_max_average_corereturns the
maximum window sum asi64, and an unverifiedfind_max_averagewrapper
divides bykto returnf64, since Verus does not support floating point.- Reference proofs now verify the supplied programs:
lc260andlc2956drop
added fallback and recomputation code, andcf1584Cdrops a string literal
holding the original source.leetcode/lc3233restores the original sieve
incode.rs,code_spec.rs, andverified.rs, with an integer square root
in place off64::sqrt; itsspec.rsgains a type annotation it needed. - 124
verified.rsfiles move proof-only snapshots and witnesses into ghost
code and revert small refactors, so everyverified.rskeeps the executable
code of itscode_spec.rs. codeforces/cf1915C,leetcode/lc3148:verified.rsadds assertions so
the proofs no longer depend on the file name they are verified under; both
failed asverify.rs, the name the scorer uses.codeforces/cf1750C,codeforces/cf1901C:description.mdnow gives the
functions thatspec.rsandmain.rsdefine.cf1750Casks for
complementary_xor_ops(a, b) -> (bool, Vec<(usize, usize)>)instead of
is_complementary_xor_possible(a, b) -> bool;cf1901Casks for
min_operations(a)andbuild_operations(a)instead of
build_operations(mn, mx, steps).codeforces/cf1547D:spec.rsandcode_spec.rsgiveis_co_growingan
explicit trigger, which Verus could not infer.leetcode/lc327:
code_spec.rsdefines the four spec functions its helper's postcondition
uses.- Test drivers compile their rustc stand-ins for vstd's
set,get_char, and
unicode_lenonly without Verus, so Verus programs that call these methods
compile. - Regenerated 40 embedded test harnesses (
tests/harness.rs) that lagged
behind theirreference_oracle.rsrepairs or kept a generator placeholder
(lc680). Removed leftover scratch files (test.rsin nine problems,
lc275/verified1.rs,lc523/scratch.rs,leetcode/README.md) and renamed
lc2215/tagtotags. - Test generators:
cf1750Candlc7generate inputs in the current
specification's domain (length at least 2; anyi32) and call the current
functions, andcf1750C/tests/gen.rsemits contest stdin/stdout text;lc2110,lc2960,lc3105,lc3206, andlc413compile again;
lc1013'sgen_adv.rsdrops an unused stub containingassume(false). All
2,012 generators verify with--no-cheating. Test cases are unchanged.