Class JumpsIntoLoopCloneRewriter
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters.JumpsIntoLoopCloneRewriter
-
public class JumpsIntoLoopCloneRewriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxDepth
-
Constructor Summary
Constructors Constructor Description JumpsIntoLoopCloneRewriter(Options options)
-
Method Summary
-
-
-
Constructor Detail
-
JumpsIntoLoopCloneRewriter
JumpsIntoLoopCloneRewriter(Options options)
-
-
Method Detail
-
rewrite
public void rewrite(java.util.List<Op03SimpleStatement> op03SimpleParseNodes, DecompilerComments comments)
-
refactorDo
private void refactorDo(java.util.List<Op03SimpleStatement> addThese, Op03SimpleStatement stm, BlockIdentifier ident)
-
refactorWhile
private void refactorWhile(java.util.List<Op03SimpleStatement> addThese, Op03SimpleStatement stm, BlockIdentifier ident)
-
handleConditionalCaller
private boolean handleConditionalCaller(Op03SimpleStatement stm, Op03SimpleStatement caller, Op03SimpleStatement target, java.util.Map<Op03SimpleStatement,Op03SimpleStatement> copies)
-
nopPointlessCondition
private void nopPointlessCondition(IfStatement newConditionStatement, Op03SimpleStatement newCondition)
-
getPossLast
private Op03SimpleStatement getPossLast(Op03SimpleStatement stm, BlockIdentifier ident)
-
visitCandidates
private GraphVisitor<Op03SimpleStatement> visitCandidates(BlockIdentifier blockIdent, Op03SimpleStatement possLast, java.util.Map<Op03SimpleStatement,Op03SimpleStatement> candidates)
-
copyBlock
private java.util.List<Op03SimpleStatement> copyBlock(Op03SimpleStatement stm, Op03SimpleStatement caller, Op03SimpleStatement start, Op03SimpleStatement end, java.util.Set<Op03SimpleStatement> valid, BlockIdentifier containedIn, java.util.Set<Op03SimpleStatement> addSources, java.util.Map<Op03SimpleStatement,Op03SimpleStatement> orig2copy)
-
copyST
private java.util.List<Op03SimpleStatement> copyST(java.util.List<Op03SimpleStatement> original, java.util.Map<Op03SimpleStatement,Op03SimpleStatement> replacements, boolean failIfMissing)
-
-