protected InstructionSequence() { this(new VBStyleCollection<>()); }
@Override public VBStyleCollection<E, K> clone() { VBStyleCollection<E, K> c = new VBStyleCollection<>(); c.addAll(new ArrayList<>(this)); c.setMap(new HashMap<>(map)); c.setLstKeys(new ArrayList<>(lstKeys)); return c; }
vbPost = new VBStyleCollection<>(); List<Statement> lstAll = stat.getPostReversePostOrderList();
VBStyleCollection<List<Integer>, Integer> ret = new VBStyleCollection<>();
private VBStyleCollection<BasicBlock, Integer> createBasicBlocks(short[] startblock, InstructionSequence instrseq, Map<Integer, BasicBlock> mapInstrBlocks) { VBStyleCollection<BasicBlock, Integer> col = new VBStyleCollection<>(); InstructionSequence currseq = null; List<Integer> lstOffs = null; int len = startblock.length; short counter = 0; int blockoffset = 0; BasicBlock currentBlock = null; for (int i = 0; i < len; i++) { if (startblock[i] == 1) { currentBlock = new BasicBlock(++counter); currseq = currentBlock.getSeq(); lstOffs = currentBlock.getInstrOldOffsets(); col.addWithKey(currentBlock, currentBlock.id); blockoffset = instrseq.getOffset(i); } startblock[i] = counter; mapInstrBlocks.put(i, currentBlock); currseq.addInstruction(instrseq.getInstr(i), instrseq.getOffset(i) - blockoffset); lstOffs.add(instrseq.getOffset(i)); } last_id = counter; return col; }
@SuppressWarnings("AssignmentToForLoopParameter") private InstructionSequence parseBytecode(DataInputFullStream in, int length, ConstantPool pool) throws IOException { VBStyleCollection<Instruction, Integer> instructions = new VBStyleCollection<>();
fields = new VBStyleCollection<>(length); for (int i = 0; i < length; i++) { StructField field = new StructField(in, this); methods = new VBStyleCollection<>(length); for (int i = 0; i < length; i++) { StructMethod method = new StructMethod(in, this);
private static RootStatement graphToStatement(ControlFlowGraph graph) { VBStyleCollection<Statement, Integer> stats = new VBStyleCollection<>(); VBStyleCollection<BasicBlock, Integer> blocks = graph.getBlocks();
protected InstructionSequence() { this(new VBStyleCollection<>()); }
public VBStyleCollection<E, K> clone() { VBStyleCollection<E, K> c = new VBStyleCollection<>(); c.addAll(new ArrayList<>(this)); c.setMap(new HashMap<>(map)); c.setLstKeys(new ArrayList<>(lstKeys)); return c; }
vbPost = new VBStyleCollection<>(); List<Statement> lstAll = stat.getPostReversePostOrderList();
VBStyleCollection<List<Integer>, Integer> ret = new VBStyleCollection<>();
private VBStyleCollection<BasicBlock, Integer> createBasicBlocks(short[] startblock, InstructionSequence instrseq, Map<Integer, BasicBlock> mapInstrBlocks) { VBStyleCollection<BasicBlock, Integer> col = new VBStyleCollection<>(); InstructionSequence currseq = null; List<Integer> lstOffs = null; int len = startblock.length; short counter = 0; int blockoffset = 0; BasicBlock currentBlock = null; for (int i = 0; i < len; i++) { if (startblock[i] == 1) { currentBlock = new BasicBlock(++counter); currseq = currentBlock.getSeq(); lstOffs = currentBlock.getInstrOldOffsets(); col.addWithKey(currentBlock, currentBlock.id); blockoffset = instrseq.getOffset(i); } startblock[i] = counter; mapInstrBlocks.put(i, currentBlock); currseq.addInstruction(instrseq.getInstr(i), instrseq.getOffset(i) - blockoffset); lstOffs.add(instrseq.getOffset(i)); } last_id = counter; return col; }
@SuppressWarnings("AssignmentToForLoopParameter") private InstructionSequence parseBytecode(DataInputFullStream in, int length, ConstantPool pool) throws IOException { VBStyleCollection<Instruction, Integer> instructions = new VBStyleCollection<>();
fields = new VBStyleCollection<>(length); for (int i = 0; i < length; i++) { StructField field = new StructField(in, this); methods = new VBStyleCollection<>(length); for (int i = 0; i < length; i++) { StructMethod method = new StructMethod(in, this);
private static RootStatement graphToStatement(ControlFlowGraph graph) { VBStyleCollection<Statement, Integer> stats = new VBStyleCollection<>(); VBStyleCollection<BasicBlock, Integer> blocks = graph.getBlocks();