Generation of list assignments with bit twiddling