Silver
1 program
Added 2026-02-11T16:49:01Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 479dc9fcd8 · authored 2026-02-11T17:49:30+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Factorial with Verification
Provenance: commit 479dc9fcd8 · authored 2026-02-11T17:49:30+01:00 · agent claude-code · model sonnet · WebSearch disabled
method factorial(n: Int) returns (result: Int)
requires n >= 0
ensures result == (n == 0 ? 1 : n * factorial(n - 1))
{
if (n == 0) {
result := 1
} else {
var temp: Int
temp := factorial(n - 1)
result := n * temp
}
}