by pdw · 5y ago · 0 comments
Wirth's languages always had a very strict separation between variable declarations and code. Your example might look something like this in Pascal:
PROCEDURE foo;
VAR mnist: MNistRecord;
x_train: XTrainRecord;
BEGIN
mnist := load_mnist(true);
...> DrNim currently only tries to prove array indexing or subrange checks, overflow errors are not prevented. Overflows will be checked for in the future.
Those are the very basics of what you might use SPARK for, but it can be used for deeper proofs of your program invariants as well.