nilaway icon indicating copy to clipboard operation
nilaway copied to clipboard

Implement fact export for manually-written and inferred function contracts

Open yuxincs opened this issue 2 months ago • 2 comments

This PR implements the fact export for manually-written and inferred function contracts. Specifically it enhances the functioncontracts sub-analyzer, which imports contracts from upstream packages, parses/infers the contracts for the local package, combine the contract map and return it. It now also exports the contracts for the exported functions in the local package to be consumed by its downstream packages.

Tests are also added to ensure the fact export and import logic works.

yuxincs avatar May 04 '24 16:05 yuxincs