Skip to content

Commit e90c516

Browse files
Report second-order jack-knife bound instead of Chao
1 parent a1f3081 commit e90c516

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/hypofuzz/hy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,9 @@ def _json_description(self) -> Report:
404404
singletons = self.pool.singletons
405405
doubletons = self.pool.doubletons
406406
offset = (
407-
singletons * (singletons - 1) / 2
408-
if 0 == doubletons
409-
else singletons * singletons / (2 * doubletons)
407+
2 * singletons - doubletons
410408
)
411-
offset = int(offset) + 1
409+
offset = max(1, offset)
412410
report["est. branches"] = int(str(report["branches"])) + offset
413411
return report
414412

0 commit comments

Comments
 (0)