Closed rolyp closed 3 years ago
@min-nguyen Extracted from #284. Now that we have a more stable base, let’s try to move forward with smaller tasks.
@min-nguyen For the map example, I suggest just mapping the identity function to a 3-element list to start with, and slicing out the middle element of the input.
@min-nguyen Let’s leave this for now and come back to it when we start working on examples for the paper.
Test cases for forward and backward slicing, starting with primitive operations, the infrastructure for which is quite complex.
@min-nguyen suggested using the prettyprinter for tests, which will make life simpler. For now, have added a
bracketsIf
prettyprinter which wraps aDoc
in square brackets iff an annotation istrue
, and used it initially just for integers.Basic backward slicing tests:
dependsBoth
anddependsZero
primitivesexpand
consolidation for arithmetic primitivesdivide
test to verify bwd slicing primitive with holenth
testexamples for paper– see #446