https://9dok.net/document/y964orrd-logic-handbook.html