aboutsummaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-09-02 11:53:30 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-09-02 18:39:09 +0000
commit287d6acfa17f708fb2d6aecfa4de231a41a1dd12 (patch)
tree33d9b51b7f71f57d52b978fea5d408d792888d7a /prog
parent930c0bb6b7b4e5defb9b1561edf8170ea13dd4bc (diff)
pkg/fuzzer: display hints job info
This will let us gain even more insight into what the fuzzer is doing.
Diffstat (limited to 'prog')
-rw-r--r--prog/hints.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/prog/hints.go b/prog/hints.go
index c054b9852..a02d2d123 100644
--- a/prog/hints.go
+++ b/prog/hints.go
@@ -65,6 +65,16 @@ func (m CompMap) String() string {
return buf.String()
}
+func (m CompMap) Len() int {
+ var count int
+ for _, nested := range m {
+ for _, nested2 := range nested {
+ count += len(nested2)
+ }
+ }
+ return count
+}
+
// InplaceIntersect() only leaves the value pairs that are also present in other.
func (m CompMap) InplaceIntersect(other CompMap) {
for val1, nested := range m {