summaryrefslogtreecommitdiff
path: root/src/ast_util.mli
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-01-17 18:51:42 +0000
committerAlasdair Armstrong2018-01-18 16:13:11 +0000
commit952fcb88797a1771eb018e63e8446055e944e035 (patch)
tree12cdc5f1054dfad02fa76abd22247564eb133a21 /src/ast_util.mli
parent254b72f60388271058c6d259d5a98424e94cafc7 (diff)
Modified unification so Type_check.instantiation_of works after sizeof rewriting
This change allows the AST to be type-checked after sizeof re-writing. It modifies the unification algorithm to better support checking multiplication in constraints, by using division and modulus SMT operators if they are defined. Also made sure the typechecker doesn't re-introduce E_constraint nodes, otherwise re-checking after sizeof-rewriting will re-introduce constraint nodes.
Diffstat (limited to 'src/ast_util.mli')
-rw-r--r--src/ast_util.mli1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast_util.mli b/src/ast_util.mli
index 69bd5a52..ec12d44b 100644
--- a/src/ast_util.mli
+++ b/src/ast_util.mli
@@ -127,6 +127,7 @@ val nsum : nexp -> nexp -> nexp
val ntimes : nexp -> nexp -> nexp
val npow2 : nexp -> nexp
val nvar : kid -> nexp
+val napp : id -> nexp list -> nexp
val nid : id -> nexp (* NOTE: Nexp_id's don't do anything currently *)
(* Numeric constraint builders *)