Files
why3/plugins/python
Jean-Christophe Filliatre f31498beda fixed Python lexer
empty comment lines were not accepted by the lexer
2021-12-09 08:48:51 +01:00
..
2021-09-28 17:32:00 +02:00
2021-12-09 08:48:51 +01: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