package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def containsInPrefix(worklist: List[Int], pc: Int, prefixEnd: Int): Boolean
Tests if the given
pc
is found in the (optional) prefix of theworklist
where the end of the prefix is identified byprefixEnd
.Tests if the given
pc
is found in the (optional) prefix of theworklist
where the end of the prefix is identified byprefixEnd
.If the worklist is empty, false is returned. If the given
pc
is equal toprefixEnd
true
will be returned.- Annotations
- @inline() @tailrec()
- final def insertBefore(worklist: List[Int], pc: Int, prefixEnd: Int): List[Int]
Inserts the given
pc
beforeprefixEnd
in the list.Inserts the given
pc
beforeprefixEnd
in the list. If the list does not containprefixEnd
,pc
is appended to the list.- Annotations
- @inline()
- final def insertBeforeIfNew(worklist: List[Int], pc: Int, prefixEnd: Int): List[Int]
Inserts the given
pc
beforeprefixEnd
in the list unlesspc
is already contained in the list.Inserts the given
pc
beforeprefixEnd
in the list unlesspc
is already contained in the list. If the list does not containprefixEnd
,pc
is appended to the list. If the list already containspc
the original list is returned!- Annotations
- @inline()
- final def removeFirst(worklist: List[Int], pc: Int): List[Int]
Removes the first occurrence of the specified pc from the list.
Removes the first occurrence of the specified pc from the list. If the pc is not found, the original list is returned. I.e., it is possible to check whether the list is modified or not using a reference comparison (
eq
).- Annotations
- @inline()
- final def removeFirstUnless(worklist: List[Int], pc: Int)(test: (Int) => Boolean): List[Int]
Removes the first occurrence of the specified program counter from the given list unless the given
test
has failed.Removes the first occurrence of the specified program counter from the given list unless the given
test
has failed. If the test fails, the 'original list is returned. The given test is executed before the test is made whether we have to remove the element from the list. If the original list is returned it is possible to check whether the list is modified or not using a reference comparison (eq
).- Annotations
- @inline()
- object XHTML
Several utility methods to facilitate the development of the abstract interpreter/ new domains for the abstract interpreter, by creating various kinds of dumps of the state of the interpreter.
Several utility methods to facilitate the development of the abstract interpreter/ new domains for the abstract interpreter, by creating various kinds of dumps of the state of the interpreter.
Thread Safety
This object is thread-safe.