publicodes / tools

Set of utility functions to write tooling for Publicodes models
https://publicodes.github.io/tools/
MIT License
8 stars 0 forks source link

feat(optim)!: add a new param toAvoid to the constant folding pass #36

Closed EmileRolley closed 7 months ago

EmileRolley commented 7 months ago

Add a new param toAvoid for the constantFolding and move the toKeep arguments in the params as well.

[!IMPORTANT] toAvoid will be used to not to fold a rule where toKeep is used to no to remove a rule without parent refs after the folding pass.