factor/library/test/compiler/optimizer.factor

23 lines
557 B
Factor
Raw Normal View History

IN: temporary
2004-12-05 21:17:09 -05:00
USE: test
USE: compiler
USE: inference
USE: words
USE: math
USE: kernel
2004-12-19 22:53:41 -05:00
USE: lists
2004-12-05 21:17:09 -05:00
: foo 1 2 3 ;
[ [ ] ] [ \ foo word-def dataflow kill-set ] unit-test
[ [ [ + ] [ - ] ] ] [ [ 3 4 1 2 > [ + ] [ - ] ifte ] dataflow kill-set ] unit-test
[ [ [ 1 ] [ 2 ] ] ] [ [ [ 1 ] [ 2 ] ifte ] dataflow kill-set ] unit-test
[ [ [ 1 ] [ 2 ] ] ] [ [ [ 1 ] [ 2 ] ifte ] dataflow kill-set ] unit-test
[ [ t t f ] ] [ [ 1 2 ] [ 1 2 3 ] [ f <literal> ] map kill-mask ] unit-test
2005-01-17 15:33:12 -05:00
[ t ] [ 3 [ 3 over [ ] [ ] ifte drop ] dataflow kill-set contains? ] unit-test