implementing QTRACE branch instrumentation