Initial Commit

This commit is contained in:
SoraKatadzuma committed 2026-12-06 13:52:57 -06:00
commit 528ccf1523
782 files changed
+145156

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# A pre-condition that fails stops the program, saying what it checked and
# what its operands held.
import std::io;
def divide(a: i64, b: i64): i64 {
expects(b != 0);
ensures(q: q * b + a % b == a);
return a / b;
}
def main(): void {
io::println($"{divide(7, 2)}");
io::println($"{divide(7, 0)}");
}