digital_electricity fix truthtables
(cherry picked from commit 1c74953a10380fb8420ce01b59a156dc012f02f8)