diff options
author | Son Ho | 2022-01-19 09:54:12 +0100 |
---|---|---|
committer | Son Ho | 2022-01-19 09:54:12 +0100 |
commit | 25175fc342232e45f84d3b35f952b51321f7cca0 (patch) | |
tree | 096a16f541ca890cea8677fc4acb3949c0369cc5 /src/ValuesUtils.ml | |
parent | 9a451e52a425e598d0ee910ffbd6e16fb130e1d2 (diff) |
Start storing meta-values in the avalues, for synthesis purposes
Diffstat (limited to 'src/ValuesUtils.ml')
-rw-r--r-- | src/ValuesUtils.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ValuesUtils.ml b/src/ValuesUtils.ml index f3876f53..623703ee 100644 --- a/src/ValuesUtils.ml +++ b/src/ValuesUtils.ml @@ -26,6 +26,11 @@ let is_symbolic (v : value) : bool = let as_symbolic (v : value) : symbolic_value = match v with Symbolic s -> s | _ -> failwith "Unexpected" +let as_mut_borrow (v : typed_value) : BorrowId.id * typed_value = + match v.value with + | Borrow (MutBorrow (bid, bv)) -> (bid, bv) + | _ -> failwith "Unexpected" + (** Check if a value contains a borrow *) let borrows_in_value (v : typed_value) : bool = let obj = |