qlasskit
qlasskit copied to clipboard
Evaluate constant expressions on compilation step
When qlasskit parses expressions containing constants, the boolean form containing the constant is created and then optimized (if possible). A smarter approach would be to evaluate constant expression during ast2logic parsing.
This could be performed by calling eval if tleft and tright are ast.Constant in a binop.