Skip to content

Verification of LLVM's alias analysis proof rules

License

Notifications You must be signed in to change notification settings

nunoplopes/llvm-aa-verif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Verification of LLVM's Alias Analysis Proof Rules

This repo contains a Python script that verifies LLVM alias analysis (AA) proof rules automatically. It uses Z3Py to discharge the proof obligations. The script formalizes the AA results of LLVM (no alias, partial alias, must alias, may alias). The formalization of the LLVM memory is based on the OOPSLA'18 paper.

The script currently attempts to prove 2 things:

  • Relationships between AA's lattice values (e.g., no-alias implies not must-alias)
  • Most proof rules of BasicAA

Limitations:

  • Address spaces are not supported (assumed 0 always).
  • Const memory, arguments, locally allocated objects not supported.
  • Missing proofs that spec of AA results is meaningful (e.g., if p,q must-alias, then load p == load q if memories are equal).

About

Verification of LLVM's alias analysis proof rules

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages