-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathfield_value_functions_axioms.smt2
More file actions
40 lines (35 loc) · 1.5 KB
/
Copy pathfield_value_functions_axioms.smt2
File metadata and controls
40 lines (35 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
; The axioms are parametric
; - $FLD$ is a Silver field name
; - $S$ is the sort corresponding to the type of the field
; - $T$ is the sanitized name of the sort corresponding to the type of the field
; ATTENTION: The triggers mention the sort wrappers introduced for FVFs.
; The axiom therefore needs to be emitted after the sort wrappers have
; been emitted.
(assert (forall ((vs $FVF<$FLD$>) (ws $FVF<$FLD$>)) (!
(=>
(and
(Set_equal ($FVF.domain_$FLD$ vs) ($FVF.domain_$FLD$ ws))
(forall ((x $Ref)) (!
(=>
(Set_in x ($FVF.domain_$FLD$ vs))
(= ($FVF.lookup_$FLD$ vs x) ($FVF.lookup_$FLD$ ws x)))
:pattern (($FVF.lookup_$FLD$ vs x) ($FVF.lookup_$FLD$ ws x))
:qid |qp.$FVF<$FLD$>-eq-inner|
)))
(= vs ws))
:pattern (($SortWrappers.$FVF<$FLD$>To$Snap vs) ($FVF.has_domain_$FLD$ vs)
($SortWrappers.$FVF<$FLD$>To$Snap ws) ($FVF.has_domain_$FLD$ ws)
)
:qid |qp.$FVF<$FLD$>-eq-outer|
)))
(assert (forall ((r $Ref) (pm $FPM)) (!
($Perm.isValidVar ($FVF.perm_$FLD$ pm r))
:pattern (($FVF.perm_$FLD$ pm r))
:qid |qp.$FVF<$FLD$>-validvar|)))
(assert (forall ((r $Ref) (f $S$)) (!
(= ($FVF.loc_$FLD$ f r) true)
:pattern (($FVF.loc_$FLD$ f r))
:qid |qp.$FVF<$FLD$>-loc|)))