Branch coverage data with UBSAN enable (UndefinedBehaviorSanitizer) in Xcode

Hi, On enabling UBSAN(UndefinedBehaviorSanitizer) on Xcode a dip in branch coverage is observed. Is this behaviour expected? If the answer is yes, is there a way to enable UBSAN without affecting branch coverage data?

Below is the reference of same code base, branch coverage data with enable and disable UBSAN

Xcode version: 14.3.1

With UBSAN enable:

  • Total branches: 250733
  • No of branches hit: 47945

With UBSAN disable:

  • Total branches: 38673
  • No of branches hit: 11220