Code example for Vector

Methods: addAll, size

0
	 
	HashMap<BasicBlock, BasicBlock> loopStart = new HashMap<BasicBlock, BasicBlock>();
	 
	public void addCFG(CFG otherCFG)
	{ 
		if(basicBlocks.size() == 0){
			replaceCFGBy(otherCFG);
			return; 
		} 
		 
		Vector<BasicBlock> otherBlocks = otherCFG.getBasicBlocks();
		Edges otherEdges = otherCFG.getEdges();
		switchLabels.addMultiHashMap(otherCFG.getSwitchLabels());
		basicBlocks.addAll(otherBlocks);
		edges.addEdges(otherEdges);
		 
		jumpStatements.addAll(otherCFG.getJumpStatements());
		labels.putAll(otherCFG.getLabels());
		 
		loopStart.putAll(otherCFG.loopStart);