Fix egregious bug in the occurrence analyzer.
Fix egregious bug in the occurrence analyzer.

Before this patch we were rewriting max operations to min operations!

mainland/nikola,mainland/nikola,mainland/nikola