Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
rules.k: remove nested #ifte simplification
Browse files Browse the repository at this point in the history
It clashes with this rule in domains.k:

```k
rule #if C:Bool #then _ #else B2::K #fi => B2 requires notBool C
```
  • Loading branch information
asymmetric authored and d-xo committed Apr 8, 2020
1 parent 853e470 commit bf46cea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions resources/rules.k.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,6 @@ rule ACCTCODE in SetItem( 1 )
rule #if C #then (#if C #then B1 #else B2 #fi) -Int D #else (#if C #then B3 #else B4 #fi) -Int E #fi =>
#if C #then B1 -Int D #else B4 -Int E #fi

// avoid nested #ifte
rule #if C1 #then A #else (B +Int #if C2 #then B2 #else B3 #fi) #fi =>
#if C1 #then A #else B #fi +Int #if (C2 andBool notBool C1) #then B2 #else 0 #fi +Int #if ((notBool C2) andBool (notBool C1)) #then B3 #else 0 #fi

//simplify trivial #ifs
rule #if C1 #then A #else B #fi => A
requires A ==K B
Expand Down

0 comments on commit bf46cea

Please sign in to comment.