spoofax_prop/trans/chap6.str

19 lines
357 B
Plaintext
Raw Normal View History

2021-01-20 06:09:21 +00:00
module chap6
imports prop-laws prop-eval2 signatures/-
rules
SwapArgs : Or(e1,e2) -> Or(e2,e1)
SwapBoth : Or(e1,e2) -> Or(e2,e1)
SwapBoth : And(e1,e2) -> And(e2,e1)
ExMid: And(Not(x),x) -> False()
ExMid: And(x,Not(x)) -> False()
strategies
better-dnf =
innermost(DefI <+ DefE <+ ExMid <+ DAOL <+ DAOR <+ DN <+ DMA <+ DMO); eval-down