Skip to content

Commit bc7543e

Browse files
Implement basic Chao bound
1 parent 7ae0160 commit bc7543e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/hypofuzz/hy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,13 @@ def _json_description(self) -> Report:
399399
ls for _, ls in self.pool.interesting_examples.values()
400400
]
401401
del report["since new cov"]
402+
403+
if self.ninputs >= 10 and "" == report["note"]:
404+
singletons = self.pool.singletons
405+
doubletons = self.pool.doubletons
406+
offset = singletons * (singletons-1) / 2 if 0 == doubletons else singletons * singletons / (2 * doubletons)
407+
offset = int(offset) + 1
408+
report["est. branches"] = report["branches"] + offset
402409
return report
403410

404411
@property

0 commit comments

Comments
 (0)