We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a206264 commit 1d7eabcCopy full SHA for 1d7eabc
concurrency/node-replication/InfiniteLog.i.dfy
@@ -663,13 +663,13 @@ function map_union<K,V>(m1: map<K,V>, m2: map<K,V>) : map<K,V> {
663
// log: map<nat, LogEntry>
664
map[],
665
// global_tail: Option<nat>,
666
- Some(0), // NOTE(travis): should be None
+ None, // NOTE(travis): should be None
667
// replicas: map<NodeId, nrifc.NRState>,
668
map[], // Question: initialize for all nodes?
669
// localTails: map<NodeId, nat>
670
671
// ctail: Option<nat>, // ctail (atomic int)
672
- Some(0),
+ None,
673
// localReads: map<RequestId, ReadonlyState>,
674
675
// localUpdates: map<RequestId, UpdateState>,
@@ -928,6 +928,8 @@ function map_union<K,V>(m1: map<K,V>, m2: map<K,V>) : map<K,V> {
928
lemma dot_unit(x: M)
929
ensures dot(x, unit()) == x
930
{
931
+ assert unit().M?;
932
+ assert dot(unit(), unit()).M?;
933
assert dot(unit(), unit()) == unit();
934
assert dot(x, unit()) == x;
935
}
0 commit comments