Skip to content

Commit

Permalink
Add SMT pattern to find_event_triggered_at_timestamp (Klaas remark)
Browse files Browse the repository at this point in the history
  • Loading branch information
TWal committed Oct 14, 2024
1 parent 6cdd01c commit 2153663
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/DY.Core.Trace.Base.fst
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ val find_event_triggered_at_timestamp_later:
tr1 <$ tr2
)
(ensures find_event_triggered_at_timestamp tr1 prin tag content == find_event_triggered_at_timestamp tr2 prin tag content)
[SMTPat (find_event_triggered_at_timestamp tr1 prin tag content);
SMTPat (find_event_triggered_at_timestamp tr2 prin tag content);
SMTPat (tr1 <$ tr2)
]
let rec find_event_triggered_at_timestamp_later #label_t tr1 tr2 prin tag content =
if length tr1 = length tr2 then ()
else (
Expand Down
4 changes: 4 additions & 0 deletions src/lib/event/DY.Lib.Event.Typed.fst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ val find_event_triggered_at_timestamp_later:
tr1 <$ tr2
)
(ensures find_event_triggered_at_timestamp tr1 prin content == find_event_triggered_at_timestamp tr2 prin content)
[SMTPat (find_event_triggered_at_timestamp tr1 prin content);
SMTPat (find_event_triggered_at_timestamp tr2 prin content);
SMTPat (tr1 <$ tr2)
]
let find_event_triggered_at_timestamp_later #a #ev_a tr1 tr2 prin content =
reveal_opaque (`%find_event_triggered_at_timestamp) (find_event_triggered_at_timestamp #a);
DY.Core.find_event_triggered_at_timestamp_later tr1 tr2 prin ev_a.tag (serialize a content)

0 comments on commit 2153663

Please sign in to comment.