Class OccurrenceCounter

java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.NonRecursive
de.uni_freiburg.informatik.ultimate.logic.OccurrenceCounter

public class OccurrenceCounter
extends NonRecursive
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.uni_freiburg.informatik.ultimate.logic.NonRecursive

    NonRecursive.TermWalker, NonRecursive.Walker
  • Constructor Summary

    Constructors 
    Constructor Description
    OccurrenceCounter()  
  • Method Summary

    Modifier and Type Method Description
    void count​(Term t)
    Compute the occurrence counter for the sub terms.
    void reset​(Term t)  

    Methods inherited from class de.uni_freiburg.informatik.ultimate.logic.NonRecursive

    enqueueWalker, reset, run, run, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • count

      public void count​(Term t)
      Compute the occurrence counter for the sub terms. This method does not keep any state in this object. This should prevent memory leaks since this object can be kept alive and the garbage collector is still free to collect the counter map.
      Parameters:
      t - The term to count.
    • reset

      public void reset​(Term t)