Given some assembly code ,it is known that 90% of branches should be taken.
I have no knowledge regarding branch conditions.And decision about take or not take for each branch should be done only based on probability.
The branch`s offset can be positive or negative.
What is correct algorithm to do that?