mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
style(verifier): use maps.Copy for verdict snapshot
This commit is contained in:
1 parent
60c4ef7458
commit
c69052ae89
1 file changed
+2
-3
@@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"maps"
|
||||||
"math/rand/v2"
|
"math/rand/v2"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -317,9 +318,7 @@ func (v *Verifier) EvaluateProperties() map[string]ltl.Verdict {
|
|||||||
v.newlyViolated = onset
|
v.newlyViolated = onset
|
||||||
|
|
||||||
next := make(map[string]ltl.Verdict, len(verdicts))
|
next := make(map[string]ltl.Verdict, len(verdicts))
|
||||||
for name, verdict := range verdicts {
|
maps.Copy(next, verdicts)
|
||||||
next[name] = verdict
|
|
||||||
}
|
|
||||||
v.priorVerdicts = next
|
v.priorVerdicts = next
|
||||||
|
|
||||||
return verdicts
|
return verdicts
|
||||||
|
|||||||
Reference in new issue
Block a user