diff options
| author | Alasdair Armstrong | 2018-03-21 17:11:33 +0000 |
|---|---|---|
| committer | Brian Campbell | 2018-04-04 14:45:00 +0100 |
| commit | 93642321c4ecfd7bf4046ffd0c95b57220fa573e (patch) | |
| tree | 6cbda22597d0a671be49679b2fe22b18014867ff /test | |
| parent | 28f2c31d146afb7d4cece08a411317eb05a1f963 (diff) | |
Add a function to find unique solution for constraints
New function Type_check.solve : Env.t -> nexp -> Big_int.num option.
Takes an environment and an n-expression (nexp), and returns either
Some u, where u is a unique solution such that nexp = u, or None which
indicates that either no unique solution could be found. It is
technically possible that a unique solution could exist, but Z3 may
not find it.
Involves two calls to Z3, one of which cannot be memoised, so should
be used carefully, as over-reliance could lead to performance issues.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
