Skip to content

Commit

Permalink
Add a comment to MinimizeTermConstruction describing what it does (#4124
Browse files Browse the repository at this point in the history
)

Fixes #4113 

This just adds a small comment to describe what
`MinimizeTermConstruction` does as otherwise there's nothing that
explains what it's doing.

Co-authored-by: rv-jenkins <admin@runtimeverification.com>
  • Loading branch information
gtrepta and rv-jenkins committed Mar 22, 2024
1 parent e3b3186 commit 9b12fe8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
import org.kframework.definition.Sentence;
import org.kframework.kore.*;

/**
* MinimizeTermConstruction.
*
* <p>Looks for places where #as patterns can be used to reduce the number of constructors in
* rewrites:
*
* <p>`P1 => P2[P1]` -> `P1 #as X => P2[X]`
*/
public class MinimizeTermConstruction {

private final Set<KVariable> vars = new HashSet<>();
Expand Down

0 comments on commit 9b12fe8

Please sign in to comment.