summaryrefslogtreecommitdiff
path: root/test/mono
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-03-21 17:11:33 +0000
committerBrian Campbell2018-04-04 14:45:00 +0100
commit93642321c4ecfd7bf4046ffd0c95b57220fa573e (patch)
tree6cbda22597d0a671be49679b2fe22b18014867ff /test/mono
parent28f2c31d146afb7d4cece08a411317eb05a1f963 (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/mono')
0 files changed, 0 insertions, 0 deletions