diff options
| author | Alasdair Armstrong | 2019-05-13 18:03:35 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-05-14 15:13:29 +0100 |
| commit | 41e6fe10e7d28193fa62711fcdad797b1f0103a0 (patch) | |
| tree | 0113597f0c1b5ba909028f576a6a51c8dbead6ac /src/slice.ml | |
| parent | 7257b23239a3f8d6a45f973b9d953b31772abe06 (diff) | |
Add feature that allows functions to require type variables are constant
can now write e.g.
forall (constant 'n : Int) rather than forall ('n: Int)
which requires 'n to be a constant integer value whenever the function
is called. I added this to the 'addrsize variable on memory
reads/writes to absolutely guarantee in the SMT generation that we
don't have to worry about the address being a variable length
bitvector.
Diffstat (limited to 'src/slice.ml')
| -rw-r--r-- | src/slice.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slice.ml b/src/slice.ml index fa574b7f..78009059 100644 --- a/src/slice.ml +++ b/src/slice.ml @@ -217,7 +217,7 @@ let add_def_to_graph graph def = let scan_quant_item self (QI_aux (aux, _)) = match aux with | QI_id _ -> () - | QI_const nc -> + | QI_constraint nc -> IdSet.iter (fun id -> graph := G.add_edge' self (Type id) !graph) (constraint_ids nc) in |
