Fixed a bug in SoaapPass perf emulation, in order to correctly
instrument functions with multiple BasicBlocks (and exit points).