Logic for LR, RL, D, U, DUL, DDL