Flow-Safe Layout Engineering