Skip to content

ZJU-PL/veripy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

veripy

An auto-active verification library for Python Work-In-Progress

Requirements

Binaries

Python Libraries

Features

  • Basic verification over ints/bools (assign/if/while/assert/assume)
  • Quantifiers in contracts: forall, exists (typed as : int/: bool)
  • Havoc for while encoding and weakest preconditions
  • Arrays via theory of arrays: xs[i], xs[i] = v (functional store)
  • Function calls (partial / WIP)
  • More AST mappings

Array support notes:

  • Use Python type hints List[int] to indicate arrays in specs and inference.
  • Indexing xs[i] and assignments xs[i] = v are modeled with SMT Select/Store.
  • Length len(xs) supported in assertions; rich list ops beyond indexing are WIP.

Related Work

About

Auto-Active Verifier for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages