Skip to content

Commit

Permalink
Trying out non-ADT type for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers committed Jul 17, 2023
1 parent 3b3b4be commit 7b5e6b9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/resources/preamble.smt2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@

; --- Snapshots ---

(declare-datatypes (($Snap 0)) ((
($Snap.unit)
($Snap.combine ($Snap.first $Snap) ($Snap.second $Snap)))))
;(declare-datatypes (($Snap 0)) ((
; ($Snap.unit)
; ($Snap.combine ($Snap.first $Snap) ($Snap.second $Snap)))))

(declare-sort $Snap 0)
(declare-const $Snap.unit $Snap)
(declare-fun $Snap.first ($Snap) $Snap)
(declare-fun $Snap.second ($Snap) $Snap)
(declare-fun $Snap.combine ($Snap $Snap) $Snap)
(assert (forall ((s1 $Snap) (s2 $Snap)) (!
(and (= ($Snap.first ($Snap.combine s1 s2)) s1)
(= ($Snap.second ($Snap.combine s1 s2)) s2))
:pattern (($Snap.combine s1 s2)))))



; --- References ---

Expand Down

0 comments on commit 7b5e6b9

Please sign in to comment.