fix ENTRY_BLOCK_PTR
handle FOR_ALL_BB