Files
why3/plugins/python
Guillaume Melquiond ebfa10f2b9 Silence warning 70 "missing-mli".
OCaml warns when there is a .ml file but no .mli file. This commit adds
almost all the missing .mli files. The remaining ones are the *_ast.ml
files, as the .mli files would be verbatim copies.
2021-09-28 17:32:00 +02:00
..
2021-09-28 14:36:47 +02:00
2021-09-28 17:32:00 +02:00
2021-09-28 14:36:47 +02:00
2021-09-28 17:32:00 +02:00

A plugin to verify programs written in a (microscopic) fragment of Python.
Designed for teaching purposes.

See tests/python/*.py for examples.

Limitations wrt Python:
- types are limited to integers and lists of integers
- a list is not resizable (i.e. it is a mere array)
- a function must return an integer or nothing

Todo:
- function/predicate with a definition (currently not supported);
  note: we would need to provide the type (int/array) of the arguments