minimize attack_bb function call