public class ConstantsAssumption extends Object implements Assumption<ConstantsAssumption>
Modifier and Type | Class and Description |
---|---|
static class |
ConstantsAssumption.Updater
Updates the assumption by copying it on first write.
|
Modifier and Type | Field and Description |
---|---|
static ConstantsAssumption |
TOP
A TOP for the lattice.
|
Constructor and Description |
---|
ConstantsAssumption() |
ConstantsAssumption(ConstantsAssumption a) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
JValueLiteral |
get(JVariable variable)
Get variable constant assumption.
|
boolean |
hasAssumption(JVariable variable)
Check if we have constant (i.e.
|
int |
hashCode() |
boolean |
isEmpty() |
ConstantsAssumption |
join(ConstantsAssumption other)
Compute least upper bound.
|
String |
toDebugString() |
String |
toString() |
public static ConstantsAssumption TOP
public ConstantsAssumption()
public ConstantsAssumption(ConstantsAssumption a)
public JValueLiteral get(JVariable variable)
null
if there's no constant
assumption for this variable.public boolean hasAssumption(JVariable variable)
public boolean isEmpty()
public ConstantsAssumption join(ConstantsAssumption other)
Assumption
null.
It's allowed to return value, equal either to this
or to
other
. If you're going to modify result of join operation,
you have to copy it.
join
in interface Assumption<ConstantsAssumption>
public String toDebugString()
Copyright © 2018. All rights reserved.