In my opinion, they wait to see the result of the play in the flopping situation. If he flops and we go around him and score we get the basket and get a free throw attempt. If he flops and the other teams gets rebound we get the free throw and they retain possession, if we clearly got the off rebound we get the free throw and the ball. I’d hate for them to blow the whistle right away and miss an easy lay up.
But that’s just my best guess at the rule.