Closed gtgtjune closed 2 years ago
Hi, thank you very much! Beyond the fact that pointing out confusing and incorrect parts in my documentation is really helpful since the whole point is to explain the functionality to others, you highlighted a bug/shortcut I made during my initial adding of OMEN into that A) I forgot about, and B) I really should fix! I'm playing around with some options right now and once I have something working I'll push it into the "code_cleanup" branch I'm working on right now.
Ideally, I'd like to devote the percentage of guesses to OMEN based on (1 - coverage) * 100%, as the help text suggested. But as you pointed out I had thrown the divide by 0 check in there to keep it from crashing, but in that case it wouldn't generate OMEN guesses at all, (which is a bug). Right now there is also a shortcut since I didn't want to recalculate the base structure probabilities for everything else. So I need to be less lazy and actually implement it correctly.
Thanks again!
I just pushed a fix to the "code_cleanup" branch and made sure to credit you in the commit comments. I'm still testing the results, so I'm going to leave this issue open for a bit. Besides fixing the internal logic, I modified the help text to read:
--coverage COVERAGE, -c COVERAGE
Thank you for rapid reply. Changed is clear.
Finally released v4.3 with this change. Closing this issue. Thank you once again for raising it!
Hi I think --coverage option has opposite explanation(in cmd, in github)
// If you set coverage to 1, no brute force will be performed. If you set coverage to 0, it will only generate guesses using Markov attacks. //
# Add in the probability of brute force to the base structures if program_info['coverage'] != 0:
Make sure there are valid OMEN parses, otherwise no sense creating