summaryrefslogtreecommitdiff
path: root/src/expr/Makefile
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-10-19 18:47:42 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2018-10-19 18:47:42 -0700
commitf25f227eb4a4df388160cdf62795f7f684b224ea (patch)
tree4166490ab939338422d73ad37bbdfcf015d9a2ad /src/expr/Makefile
parentc116c6c1ec757fe51f2b874e750ad8281baea103 (diff)
Add substr, contains and equality rewrites
This commit adds three new rewrites: - `(str.contains (str.replace x y z) w) ---> (str.contains (str.replace x y "") w)` if `(str.contains z w) ---> false` and `(str.len w) = 1` - `(= (str.replace x y z) z) ---> (or (= x y) (= x z))` if `(str.len y) = (str.len z)` - `(str.substr s x y) --> ""` if `0 < y |= x >= str.len(s)`
Diffstat (limited to 'src/expr/Makefile')
0 files changed, 0 insertions, 0 deletions
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback