This implementation of SanitizerCoverage instrumentation inserts different callbacks depending on constantness of operands:
- If both operands are non-const, then a usual __sanitizer_cov_trace_cmp[1248] call is inserted.
- If exactly one operand is const, then a __sanitizer_cov_trace_const_cmp[1248] call is inserted. The first argument of the call is always the constant one.
- If both operands are const, then no callback is inserted.
This separation comes useful in fuzzing when tasks like "find one operand of the comparison in input arguments and replace it with the other one" have to be done. The new instrumentation allows us to not waste time on searching the constant operands in the input.
Pay attention to the comment style: single-line comments start with a capital letter and end with a period.