IF> Hi all,
IF> I want to calculate branch coverage. My way is to use IDA Pro to
IF> statically determine the total branches(TB), and generate the
IF> number of branch executed at run-time(RTB). Then branch coverate=
IF> RTB/TB. Is this approach feasible? or there is another more
IF> effective means.
Sounds like a feasible approach to me. IDA's disassembly is heuristic,
so there isn't a guarantee that the set of branches it recognizes will
be exactly correct. But in practice its results are usually very good,
probably plenty good for estimating the total number of branches.
Hope this helps,
-- Stephen