import Util.Edge;
public class SafetyAnalysis {
-
private Hashtable executiongraph;
private Hashtable<ClassDescriptor, Hashtable<FlagState, HashSet>> safeexecution; //to use to build code
private static final int OR = 0;
}
/*returns the executiongraph corresponding to the classname*/
- private Vector getConcernedClass( String classname ){
- Enumeration e = executiongraph.keys();
- while( e.hasMoreElements() ){
- ClassDescriptor cd = (ClassDescriptor)e.nextElement();
- if (classname.compareTo(cd.getSymbol())==0)
- return (Vector)executiongraph.get(cd);
- }
- return null;
+ private Vector getConcernedClass(ClassDescriptor cd){
+ if (executiongraph.containsKey(cd))
+ return (Vector) executiongraph.get(cd);
+ else
+ return null;
}
/*Actual method used by the compiler.
System.out.println("\t"+classname+ "\n");
//get the graph result of executiongraph class
- Vector nodes = new Vector();
- nodes = getConcernedClass(classname);
+ Vector nodes = getConcernedClass(processedclass);
+
if(nodes==null) {
System.out.println("Impossible to find "+classname+". Unexpected.");
continue;
}
putinoptionaltaskdescriptors();
printTEST();
-
-
}
private void putinoptionaltaskdescriptors(){