Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
40,100 | int (int type, int arrayDim) { if (arrayDim > 0) { return 1; } return switch (type) { case CodeConstants.TYPE_DOUBLE, CodeConstants.TYPE_LONG -> 2; case CodeConstants.TYPE_VOID, CodeConstants.TYPE_GROUP2EMPTY -> 0; default -> 1; }; } | getStackSize |
40,101 | int (int type, int arrayDim) { if (arrayDim > 0) { return CodeConstants.TYPE_FAMILY_OBJECT; } return switch (type) { case CodeConstants.TYPE_BYTE, CodeConstants.TYPE_BYTECHAR, CodeConstants.TYPE_SHORTCHAR, CodeConstants.TYPE_CHAR, CodeConstants.TYPE_SHORT, CodeConstants.TYPE_INT -> CodeConstants.TYPE_FAMILY_INTEGER; ca... | getFamily |
40,102 | VarType () { if (getArrayDim() > 0) { return new VarType(getType(), getArrayDim() - 1, getValue()); } else { //throw new RuntimeException("array dimension equals 0!"); FIXME: investigate this case return this; } } | decreaseArrayDim |
40,103 | VarType (int newArrayDim) { return new VarType(getType(), newArrayDim, getValue(), getTypeFamily(), getStackSize(), isFalseBoolean()); } | resizeArrayDim |
40,104 | VarType () { return copy(false); } | copy |
40,105 | VarType (boolean forceFalseBoolean) { return new VarType(getType(), getArrayDim(), getValue(), getTypeFamily(), getStackSize(), isFalseBoolean() || forceFalseBoolean); } | copy |
40,106 | boolean () { return falseBoolean; } | isFalseBoolean |
40,107 | boolean (VarType val) { return this.equals(val) || this.isStrictSuperset(val); } | isSuperset |
40,108 | boolean (VarType val) { int valType = val.getType(); if (valType == CodeConstants.TYPE_UNKNOWN && getType() != CodeConstants.TYPE_UNKNOWN) { return true; } if (val.getArrayDim() > 0) { return this.equals(VARTYPE_OBJECT); } else if (getArrayDim() > 0) { return (valType == CodeConstants.TYPE_NULL); } boolean res = false;... | isStrictSuperset |
40,109 | boolean (Object o) { if (o == this) { return true; } if (!(o instanceof VarType vt)) { return false; } return getType() == vt.getType() && getArrayDim() == vt.getArrayDim() && Objects.equals(getValue(), vt.getValue()); } | equals |
40,110 | String () { StringBuilder res = new StringBuilder(); for (int i = 0; i < getArrayDim(); i++) { res.append('['); } if (getType() == CodeConstants.TYPE_OBJECT) { res.append('L').append(getValue()).append(';'); } else { res.append(getValue()); } return res.toString(); } | toString |
40,111 | VarType (VarType type1, VarType type2) { if (type1.getType() == CodeConstants.TYPE_BOOLEAN && type2.getType() == CodeConstants.TYPE_BOOLEAN) { // special case booleans return type1.isFalseBoolean() ? type2 : type1; } if (type1.isSuperset(type2)) { return type2; } else if (type2.isSuperset(type1)) { return type1; } else... | getCommonMinType |
40,112 | VarType (VarType type1, VarType type2) { if (type1.getType() == CodeConstants.TYPE_BOOLEAN && type2.getType() == CodeConstants.TYPE_BOOLEAN) { // special case booleans return type1.isFalseBoolean() ? type1 : type2; } if (type1.isSuperset(type2)) { return type1; } else if (type2.isSuperset(type1)) { return type2; } else... | getCommonSupertype |
40,113 | VarType (int family) { return switch (family) { case CodeConstants.TYPE_FAMILY_BOOLEAN -> VARTYPE_BOOLEAN; case CodeConstants.TYPE_FAMILY_INTEGER -> VARTYPE_BYTECHAR; case CodeConstants.TYPE_FAMILY_OBJECT -> VARTYPE_NULL; case CodeConstants.TYPE_FAMILY_FLOAT -> VARTYPE_FLOAT; case CodeConstants.TYPE_FAMILY_LONG -> VART... | getMinTypeInFamily |
40,114 | int (char c) { return switch (c) { case 'B' -> CodeConstants.TYPE_BYTE; case 'C' -> CodeConstants.TYPE_CHAR; case 'D' -> CodeConstants.TYPE_DOUBLE; case 'F' -> CodeConstants.TYPE_FLOAT; case 'I' -> CodeConstants.TYPE_INT; case 'J' -> CodeConstants.TYPE_LONG; case 'S' -> CodeConstants.TYPE_SHORT; case 'Z' -> CodeConstan... | getType |
40,115 | FieldDescriptor (String descriptor) { return new FieldDescriptor(descriptor); } | parseDescriptor |
40,116 | String (NewClassNameBuilder builder) { if (type.getType() == CodeConstants.TYPE_OBJECT) { String newClassName = builder.buildNewClassname(type.getValue()); if (newClassName != null) { return new VarType(type.getType(), type.getArrayDim(), newClassName).toString(); } } return null; } | buildNewDescriptor |
40,117 | boolean (Object o) { if (o == this) return true; if (!(o instanceof FieldDescriptor fd)) return false; return type.equals(fd.type); } | equals |
40,118 | int () { return type.hashCode(); } | hashCode |
40,119 | int () { return type; } | getType |
40,120 | int () { return arrayDim; } | getArrayDim |
40,121 | String () { return value; } | getValue |
40,122 | String (String value) { int counter = 0; int index = 0; loop: while (index < value.length()) { switch (value.charAt(index)) { case '<' -> counter++; case '>' -> counter--; case '.' -> { if (counter == 0) { break loop; } } } index++; } return value.substring(0, index); } | getNextClassSignature |
40,123 | void (String value, GenericType type) { if (value == null) { return; } while (value.length() > 0) { String typeStr = getNextType(value); int len = typeStr.length(); int wildcard = switch (typeStr.charAt(0)) { case '*' -> WILDCARD_UNBOUND; case '+' -> WILDCARD_EXTENDS; case '-' -> WILDCARD_SUPER; default -> WILDCARD_NO;... | parseArgumentsList |
40,124 | String (String value) { int counter = 0; int index = 0; boolean contMode = false; loop: while (index < value.length()) { switch (value.charAt(index)) { case '*': if (!contMode) { break loop; } break; case 'L': case 'T': if (!contMode) { contMode = true; } case '[': case '+': case '-': break; default: if (!contMode) { b... | getNextType |
40,125 | GenericType () { assert getArrayDim() > 0 : this; return new GenericType(this, getArrayDim() - 1); } | decreaseArrayDim |
40,126 | List<GenericType> () { return arguments; } | getArguments |
40,127 | List<GenericType> () { return enclosingClasses; } | getEnclosingClasses |
40,128 | List<Integer> () { return wildcards; } | getWildcards |
40,129 | GenericClassDescriptor (String signature) { String original = signature; try { GenericClassDescriptor descriptor = new GenericClassDescriptor(); signature = parseFormalParameters(signature, descriptor.fparameters, descriptor.fbounds); String superCl = GenericType.getNextType(signature); descriptor.superclass = new Gene... | parseClassSignature |
40,130 | GenericFieldDescriptor (String signature) { try { return new GenericFieldDescriptor(new GenericType(signature)); } catch (RuntimeException e) { DecompilerContext.getLogger().writeMessage("Invalid signature: " + signature, IFernflowerLogger.Severity.WARN); return null; } } | parseFieldSignature |
40,131 | GenericMethodDescriptor (String signature) { String original = signature; try { List<String> typeParameters = new ArrayList<>(); List<List<GenericType>> typeParameterBounds = new ArrayList<>(); signature = parseFormalParameters(signature, typeParameters, typeParameterBounds); int to = signature.indexOf(")"); String par... | parseMethodSignature |
40,132 | String (String signature, List<? super String> parameters, List<? super List<GenericType>> bounds) { if (signature.charAt(0) != '<') { return signature; } int counter = 1; int index = 1; loop: while (index < signature.length()) { switch (signature.charAt(index)) { case '<' -> counter++; case '>' -> { counter--; if (cou... | parseFormalParameters |
40,133 | String (GenericType type, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers) { List<TypeAnnotationWriteHelper> arrayTypeAnnWriteHelpers = ExprProcessor.arrayPath(type, typeAnnWriteHelpers); List<TypeAnnotationWriteHelper> nonArrayTypeAnnWriteHelpers = ExprProcessor.nonArrayPath(type, typeAnnWriteHelpers); StringBuild... | getGenericCastTypeName |
40,134 | String (GenericType type, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers) { int tp = type.getType(); if (tp <= CodeConstants.TYPE_BOOLEAN) { return typeNames[tp]; } else if (tp == CodeConstants.TYPE_VOID) { return "void"; } else if (tp == CodeConstants.TYPE_GENVAR) { StringBuilder sb = new StringBuilder(); ExprPro... | getTypeName |
40,135 | void (GenericType type, StringBuilder sb, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers) { List<GenericType> enclosingTypes = type.getEnclosingClasses(); typeAnnWriteHelpers = ExprProcessor.writeTypeAnnotationBeforeType(type, sb, typeAnnWriteHelpers); if (enclosingTypes.isEmpty()) { List<String> nestedTypes = Arr... | appendClassName |
40,136 | List<TypeAnnotationWriteHelper> ( GenericType type, StringBuilder sb, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers ) { if (!type.getArguments().isEmpty()) { sb.append('<'); for (int i = 0; i < type.getArguments().size(); i++) { if (i > 0) { sb.append(", "); } GenericType genPar = type.getArguments().get(i); int ... | appendTypeArguments |
40,137 | List<TypeAnnotationWriteHelper> ( int argIndex, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers ) { return typeAnnWriteHelpers.stream().filter(typeAnnWriteHelper -> { StructTypePathEntry entry = typeAnnWriteHelper.getPaths().peek(); boolean inGeneric = entry != null && entry.getTypeArgumentIndex() == argIndex && en... | getGenericTypeAnnotations |
40,138 | List<TypeAnnotationWriteHelper> ( StringBuilder sb, GenericType type, int wildcard, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers ) { return typeAnnWriteHelpers.stream().filter(typeAnnWriteHelper -> { StructTypePathEntry path = typeAnnWriteHelper.getPaths().peek(); if (wildcard != GenericType.WILDCARD_NO && path ... | writeTypeAnnotationBeforeWildCard |
40,139 | List<TypeAnnotationWriteHelper> ( StringBuilder sb, GenericType type, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers ) { typeAnnWriteHelpers.forEach(typeAnnWriteHelper -> { // remove all wild card path entries StructTypePathEntry path = typeAnnWriteHelper.getPaths().peek(); boolean isWildCard = path != null && pat... | writeTypeAnnotationAfterWildCard |
40,140 | void (ControlFlowGraph graph) { LinkedList<BasicBlock> stack = new LinkedList<>(); Set<BasicBlock> setStacked = new HashSet<>(); stack.add(graph.getFirst()); setStacked.add(graph.getFirst()); while (!stack.isEmpty()) { BasicBlock block = stack.removeFirst(); List<BasicBlock> successors = new ArrayList<>(block.getSucces... | removeDeadBlocks |
40,141 | void (ControlFlowGraph graph) { List<BasicBlock> blocks = graph.getBlocks(); boolean cont; do { cont = false; for (int i = blocks.size() - 1; i >= 0; i--) { BasicBlock block = blocks.get(i); if (removeEmptyBlock(graph, block, false)) { cont = true; break; } } } while (cont); } | removeEmptyBlocks |
40,142 | boolean (ControlFlowGraph graph, BasicBlock block, boolean merging) { boolean deletedRanges = false; if (block.getSeq().isEmpty()) { if (block.getSuccessors().size() > 1) { if (block.getPredecessors().size() > 1) { // ambiguous block throw new RuntimeException("ERROR: empty block with multiple predecessors and successo... | removeEmptyBlock |
40,143 | boolean (ControlFlowGraph graph, BasicBlock block, BasicBlock dom) { if (block == dom) { return true; } Set<BasicBlock> marked = new HashSet<>(); List<BasicBlock> lstNodes = new LinkedList<>(); lstNodes.add(block); while (!lstNodes.isEmpty()) { BasicBlock node = lstNodes.remove(0); if (marked.contains(node)) { continue... | isDominator |
40,144 | void (ControlFlowGraph graph) { for (BasicBlock block : graph.getBlocks()) { Instruction instr = block.getLastInstruction(); if (instr != null && instr.opcode == CodeConstants.opc_goto) { block.getSeq().removeLast(); } } removeEmptyBlocks(graph); } | removeGoTos |
40,145 | void (ControlFlowGraph graph) { BasicBlock exit = graph.getLast(); for (BasicBlock block : new HashSet<>(exit.getPredecessors())) { exit.removePredecessor(block); block.addSuccessor(exit); } } | connectDummyExitBlock |
40,146 | void (ControlFlowGraph graph) { while(true) { boolean rangeExtended = false; for (ExceptionRangeCFG range : graph.getExceptions()) { Set<BasicBlock> predecessors = new HashSet<>(); for (BasicBlock block : range.getProtectedRange()) { predecessors.addAll(block.getPredecessors()); } for (BasicBlock basicBlock : range.get... | extendSynchronizedRangeToMonitorExit |
40,147 | int (InstructionSequence sequence) { int index = -1; for (int i = 0; i < sequence.length(); i++) { if (sequence.getInstr(i).opcode == CodeConstants.opc_monitorexit) { index = i; break; } } return index; } | findMonitorExitIndex |
40,148 | void (ControlFlowGraph graph) { for (BasicBlock block : graph.getBlocks()) { InstructionSequence seq = block.getSeq(); int len = seq.length(); if (len > 0 && len < 3) { boolean ok = false; if (seq.getLastInstr().opcode >= CodeConstants.opc_ireturn && seq.getLastInstr().opcode <= CodeConstants.opc_return) { if (len == 1... | incorporateValueReturns |
40,149 | void (ControlFlowGraph graph) { while (true) { boolean merged = false; int originBlocksCount = graph.getBlocks().size(); for (BasicBlock block : graph.getBlocks()) { InstructionSequence seq = block.getSeq(); if (block.getSuccessors().size() == 1) { BasicBlock next = block.getSuccessors().get(0); if (next != graph.getLa... | mergeBasicBlocks |
40,150 | boolean (StructClass cl, StructMethod mt, RootStatement root, ControlFlowGraph graph) { int bytecodeVersion = mt.getBytecodeVersion(); LinkedList<Statement> stack = new LinkedList<>(); stack.add(root); while (!stack.isEmpty()) { Statement stat = stack.removeLast(); Statement parent = stat.getParent(); if (parent != nul... | iterateGraph |
40,151 | Record (StructClass cl, StructMethod mt, RootStatement root, CatchAllStatement fstat) { Map<BasicBlock, Boolean> mapLast = new HashMap<>(); BasicBlockStatement firstBlockStatement = fstat.getHandler().getBasichead(); BasicBlock firstBasicBlock = firstBlockStatement.getBlock(); Instruction instrFirst = firstBasicBlock.g... | getFinallyInformation |
40,152 | void (ControlFlowGraph graph, Set<BasicBlock> setTry, BasicBlock head, BasicBlock handler, int var, Record information, int bytecodeVersion) { Set<BasicBlock> setCopy = new HashSet<>(setTry); int finallyType = information.firstCode; Map<BasicBlock, Boolean> mapLast = information.mapLast; // first and last statements re... | insertSemaphore |
40,153 | BasicBlock (ControlFlowGraph graph, int value, int var, int bytecodeVersion) { SimpleInstructionSequence seq = new SimpleInstructionSequence(); seq.addInstruction(Instruction.create(CodeConstants.opc_bipush, false, CodeConstants.GROUP_GENERAL, bytecodeVersion, new int[]{value}), -1); seq.addInstruction(Instruction.crea... | createHeadBlock |
40,154 | void (ControlFlowGraph graph, BasicBlock oldBlock, BasicBlock newBlock) { List<BasicBlock> blocks = new ArrayList<>(); blocks.addAll(oldBlock.getPredecessors()); blocks.addAll(oldBlock.getPredecessorExceptions()); // replace predecessors for (BasicBlock predecessor : blocks) { predecessor.replaceSuccessor(oldBlock, new... | insertBlockBefore |
40,155 | Set<BasicBlock> (Statement stat) { List<Statement> lst = new LinkedList<>(); lst.add(stat); int index = 0; do { Statement st = lst.get(index); if (st.type == StatementType.BASIC_BLOCK) { index++; } else { lst.addAll(st.getStats()); lst.remove(index); } } while (index < lst.size()); Set<BasicBlock> res = new HashSet<>()... | getAllBasicBlocks |
40,156 | boolean (ControlFlowGraph graph, CatchAllStatement fstat, Record information) { Set<BasicBlock> tryBlocks = getAllBasicBlocks(fstat.getFirst()); Set<BasicBlock> catchBlocks = getAllBasicBlocks(fstat.getHandler()); int finallyType = information.firstCode; Map<BasicBlock, Boolean> mapLast = information.mapLast; BasicBloc... | verifyFinallyEx |
40,157 | Area (ControlFlowGraph graph, BasicBlock startSample, Set<BasicBlock> catchBlocks, BasicBlock startCatch, int finallyType, Map<BasicBlock, Boolean> mapLast, boolean skippedFirst) { class BlockStackEntry { public final BasicBlock blockCatch; public final BasicBlock blockSample; // TODO: correct handling (merging) of mul... | compareSubGraphsEx |
40,158 | BasicBlock (ControlFlowGraph graph, Set<BasicBlock[]> setNext) { // precondition: there is at most one true exit path in the `finally` statement BasicBlock next = null; boolean multiple = false; for (BasicBlock[] arr : setNext) { if (arr[2] != null) { next = arr[1]; multiple = false; break; } else { if (next == null) {... | getUniqueNext |
40,159 | boolean (ControlFlowGraph graph, BasicBlock pattern, BasicBlock sample, int type, int finallyType, List<int[]> lstStoreVars) { InstructionSequence seqPattern = pattern.getSeq(); InstructionSequence seqSample = sample.getSeq(); if (type != 0) { seqPattern = seqPattern.clone(); if ((type & 1) > 0) { // first if (finallyT... | compareBasicBlocksEx |
40,160 | void (ControlFlowGraph graph, BasicBlock sample, BasicBlock newBlock) { for (int i = 0; i < sample.getSuccessorExceptions().size(); i++) { BasicBlock hd = sample.getSuccessorExceptions().get(i); newBlock.addSuccessorException(hd); ExceptionRangeCFG range = graph.getExceptionRange(hd, sample); range.getProtectedRange().... | copyExceptionEdges |
40,161 | boolean (Instruction first, Instruction second, List<int[]> lstStoreVars) { if (!Instruction.equals(first, second)) { return false; } if (first.group != CodeConstants.GROUP_JUMP) { // FIXME: switch comparison for (int i = 0; i < first.operandsCount(); i++) { int firstOp = first.operand(i); int secondOp = second.operand... | equalInstructions |
40,162 | void (ControlFlowGraph graph, Area area) { BasicBlock start = area.start; BasicBlock next = area.next; if (start == next) { return; } if (next == null) { // dummy exit block next = graph.getLast(); } // collecting common exception ranges of predecessors and successors Set<BasicBlock> setCommonExceptionHandlers = new Ha... | deleteArea |
40,163 | void (BasicBlock block, int blockType, int finallyType) { InstructionSequence seq = block.getSeq(); if (finallyType == 3) { // empty finally handler for (int i = seq.length() - 1; i >= 0; i--) { seq.removeInstruction(i); } } else { if ((blockType & 1) > 0) { // first if (finallyType == 2 || finallyType == 1) { // `ASto... | removeExceptionInstructionsEx |
40,164 | boolean (Statement root, StructMethod mt) { boolean checks_removed = false; // parameter @NotNull annotations while (findAndRemoveParameterCheck(root, mt)) { // iterate until nothing found. Each invocation removes one parameter check. checks_removed = true; } // method @NotNull annotation while (findAndRemoveReturnChec... | removeHardcodedChecks |
40,165 | boolean (Statement stat, StructMethod mt) { Statement st = stat.getFirst(); while (st.type == StatementType.SEQUENCE) { st = st.getFirst(); } if (st.type == StatementType.IF) { IfStatement ifstat = (IfStatement)st; Statement ifbranch = ifstat.getIfstat(); Exprent if_condition = ifstat.getHeadexprent().getCondition(); b... | findAndRemoveParameterCheck |
40,166 | void (Statement stat) { Statement st = stat.getFirst(); while (st.type == StatementType.SEQUENCE) { st = st.getFirst(); } IfStatement ifstat = (IfStatement)st; if (ifstat.getElsestat() != null) { // if - else StatEdge ifedge = ifstat.getIfEdge(); StatEdge elseedge = ifstat.getElseEdge(); Statement ifbranch = ifstat.get... | removeParameterCheck |
40,167 | boolean (Statement stat, StructMethod mt) { boolean is_notnull_check = false; // method annotation, refers to the return value StructAnnotationAttribute attr = mt.getAttribute(StructGeneralAttribute.ATTRIBUTE_RUNTIME_INVISIBLE_ANNOTATIONS); if (attr != null) { List<AnnotationExprent> annotations = attr.getAnnotations()... | findAndRemoveReturnCheck |
40,168 | boolean (Statement stat, StructMethod mt) { Statement parent = stat.getParent(); if (parent != null && parent.type == StatementType.IF && stat.type == StatementType.BASIC_BLOCK && stat.getExprents().size() == 1) { Exprent exprent = stat.getExprents().get(0); if (exprent.type == Exprent.EXPRENT_EXIT) { ExitExprent exit_... | removeReturnCheck |
40,169 | boolean (Statement stat, Set<Integer> setReorderedIfs, SSAConstructorSparseEx ssa, StructClass cl) { boolean res = false; List<Exprent> expressions = stat.getExprents(); if (expressions == null) { boolean processClass14 = DecompilerContext.getOption(IFernflowerPreferences.DECOMPILE_CLASS_1_4); while (true) { boolean ch... | simplifyStackVarsStatement |
40,170 | boolean (List<Exprent> list, StructClass cl) { boolean res = false; int index = 0; while (index < list.size()) { Exprent current = list.get(index); Exprent ret = isSimpleConstructorInvocation(current); if (ret != null) { list.set(index, ret); res = true; continue; } // lambda expression (Java 8) ret = isLambda(current,... | simplifyStackVarsExprents |
40,171 | boolean (Exprent first, Exprent second) { if (first.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent as = (AssignmentExprent)first; if (as.getRight().type == Exprent.EXPRENT_NEW && as.getLeft().type == Exprent.EXPRENT_VAR) { NewExprent newExpr = (NewExprent)as.getRight(); if (!newExpr.getLstArrayElements().isEmp... | addArrayInitializer |
40,172 | int (List<Exprent> list, int index) { Exprent current = list.get(index); if (current.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent as = (AssignmentExprent)current; if (as.getRight().type == Exprent.EXPRENT_NEW && as.getLeft().type == Exprent.EXPRENT_VAR) { NewExprent newExpr = (NewExprent)as.getRight(); if (n... | isArrayInitializer |
40,173 | boolean (Exprent first) { if (first.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent asf = (AssignmentExprent)first; if (asf.getLeft().type == Exprent.EXPRENT_VAR && asf.getRight().type == Exprent.EXPRENT_VAR) { VarExprent left = (VarExprent)asf.getLeft(); VarExprent right = (VarExprent)asf.getRight(); return le... | isTrivialStackAssignment |
40,174 | boolean (Exprent first, Exprent second) { // e.g. 1.4-style class invocation if (first.type == Exprent.EXPRENT_ASSIGNMENT && second.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent asf = (AssignmentExprent)first; AssignmentExprent ass = (AssignmentExprent)second; if (asf.getLeft().type == Exprent.EXPRENT_VAR && ... | isStackAssignment2 |
40,175 | boolean (Exprent first, Exprent second) { if (first.type == Exprent.EXPRENT_ASSIGNMENT && second.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent asf = (AssignmentExprent)first; AssignmentExprent ass = (AssignmentExprent)second; while (true) { if (asf.getRight().equals(ass.getRight())) { if ((asf.getLeft().type ... | isStackAssignment |
40,176 | Exprent (Exprent first) { if (first.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent as = (AssignmentExprent)first; if (as.getRight().type == Exprent.EXPRENT_FUNCTION) { FunctionExprent func = (FunctionExprent)as.getRight(); if (func.getFuncType() == FunctionExprent.FUNCTION_ADD || func.getFuncType() == Function... | isPPIorMMI |
40,177 | boolean (Exprent first, Exprent second) { if (first.type == Exprent.EXPRENT_ASSIGNMENT && second.type == Exprent.EXPRENT_FUNCTION) { AssignmentExprent as = (AssignmentExprent)first; FunctionExprent in = (FunctionExprent)second; if ((in.getFuncType() == FunctionExprent.FUNCTION_MMI || in.getFuncType() == FunctionExprent... | isIPPorIMM |
40,178 | boolean (Exprent first, Exprent second) { if (first.type != Exprent.EXPRENT_ASSIGNMENT || second.type != Exprent.EXPRENT_ASSIGNMENT) { return false; } AssignmentExprent af = (AssignmentExprent)first; AssignmentExprent as = (AssignmentExprent)second; if (as.getRight().type != Exprent.EXPRENT_FUNCTION) { return false; } ... | isIPPorIMM2 |
40,179 | boolean (Exprent first) { if (first.type == Exprent.EXPRENT_MONITOR) { MonitorExprent expr = (MonitorExprent)first; return expr.getMonType() == MonitorExprent.MONITOR_EXIT && expr.getValue().type == Exprent.EXPRENT_VAR && !((VarExprent)expr.getValue()).isStack(); } return false; } | isMonitorExit |
40,180 | boolean (Exprent first, Exprent second) { if (first.type == Exprent.EXPRENT_INVOCATION) { InvocationExprent invocation = (InvocationExprent)first; if (!invocation.isStatic() && invocation.getInstance().type == Exprent.EXPRENT_VAR && invocation.getName().equals("getClass") && invocation.getStringDescriptor().equals("()L... | isQualifiedNewGetClass |
40,181 | boolean (List<Exprent> list, int index) { Exprent current = list.get(index); if (current.type == Exprent.EXPRENT_ASSIGNMENT) { AssignmentExprent as = (AssignmentExprent)current; if (as.getLeft().type == Exprent.EXPRENT_VAR && as.getRight().type == Exprent.EXPRENT_NEW) { NewExprent newExpr = (NewExprent)as.getRight(); V... | isConstructorInvocationRemote |
40,182 | Exprent (Exprent exprent, StructClass cl) { List<Exprent> lst = exprent.getAllExprents(); for (Exprent expr : lst) { Exprent ret = isLambda(expr, cl); if (ret != null) { exprent.replaceExprent(expr, ret); } } if (exprent.type == Exprent.EXPRENT_INVOCATION) { InvocationExprent in = (InvocationExprent)exprent; if (in.get... | isLambda |
40,183 | Exprent (Exprent exprent) { List<Exprent> lst = exprent.getAllExprents(); for (Exprent expr : lst) { Exprent ret = isSimpleConstructorInvocation(expr); if (ret != null) { exprent.replaceExprent(expr, ret); } } if (exprent.type == Exprent.EXPRENT_INVOCATION) { InvocationExprent in = (InvocationExprent)exprent; if (in.ge... | isSimpleConstructorInvocation |
40,184 | boolean (Statement stat, SSAConstructorSparseEx ssa) { if (stat.type == StatementType.IF && stat.getExprents() == null) { IfStatement statement = (IfStatement)stat; Exprent ifHeadExpr = statement.getHeadexprent(); Set<Integer> ifHeadExprBytecode = (ifHeadExpr == null ? null : ifHeadExpr.bytecode); if (statement.iftype ... | buildIff |
40,185 | boolean (Exprent exp) { return exp.type == Exprent.EXPRENT_FUNCTION && ((FunctionExprent) exp).getFuncType() == FunctionExprent.FUNCTION_IIF; } | isIff |
40,186 | boolean (Statement stat) { boolean ret = class14Builder.match(stat); if (ret) { String class_name = (String)class14Builder.getVariableValue("$classname$"); AssignmentExprent assignment = (AssignmentExprent)class14Builder.getVariableValue("$assignfield$"); FieldExprent fieldExpr = (FieldExprent)class14Builder.getVariabl... | collapseInlinedClass14 |
40,187 | void (Statement root) { condenseSequencesRec(root); } | condenseSequences |
40,188 | void (Statement stat) { if (stat.type == StatementType.SEQUENCE) { List<Statement> lst = new ArrayList<>(stat.getStats()); boolean unfolded = false; // unfold blocks for (int i = 0; i < lst.size(); i++) { Statement st = lst.get(i); if (st.type == StatementType.SEQUENCE) { removeEmptyStatements((SequenceStatement)st); i... | condenseSequencesRec |
40,189 | boolean (Statement block, Statement next) { Statement last = block.getStats().getLast(); List<StatEdge> lstSuccs = last.getAllSuccessorEdges(); if (!lstSuccs.isEmpty()) { if (lstSuccs.get(0).getDestination() != next) { return false; } } for (StatEdge edge : next.getPredecessorEdges(EdgeType.BREAK)) { if (last != edge.g... | isSequenceDisbandable |
40,190 | void (SequenceStatement sequence) { if (sequence.getStats().size() <= 1) { return; } mergeFlatStatements(sequence); while (true) { boolean found = false; for (Statement st : sequence.getStats()) { if (st.getExprents() != null && st.getExprents().isEmpty()) { if (st.getAllSuccessorEdges().isEmpty()) { List<StatEdge> lst... | removeEmptyStatements |
40,191 | void (SequenceStatement sequence) { while (true) { Statement next; Statement current = null; boolean found = false; for (int i = sequence.getStats().size() - 1; i >= 0; i--) { next = current; current = sequence.getStats().get(i); if (next != null && current.getExprents() != null && !current.getExprents().isEmpty()) { i... | mergeFlatStatements |
40,192 | Statement (Statement stat) { if (stat.getExprents() != null) { return stat; } return switch (stat.type) { case IF, SEQUENCE, SWITCH, SYNCHRONIZED -> getFirstExprentlist(stat.getFirst()); default -> null; }; } | getFirstExprentlist |
40,193 | void (Statement stat) { destroyStatementContent(stat, false); BasicBlockStatement bstat = new BasicBlockStatement(new BasicBlock( DecompilerContext.getCounterContainer().getCounterAndIncrement(CounterContainer.STATEMENT_COUNTER))); if (stat.getExprents() == null) { bstat.setExprents(new ArrayList<>()); } else { bstat.s... | destroyAndFlattenStatement |
40,194 | void (Statement stat, boolean self) { for (Statement st : stat.getStats()) { destroyStatementContent(st, true); } stat.getStats().clear(); if (self) { for (StatEdge edge : stat.getAllSuccessorEdges()) { stat.removeSuccessor(edge); } } } | destroyStatementContent |
40,195 | Exprent (Exprent expr) { Exprent exprTmp = null; VarType cltype = null; // first quick test if (expr.type == Exprent.EXPRENT_INVOCATION) { InvocationExprent iex = (InvocationExprent)expr; if ("toString".equals(iex.getName())) { if (builderClass.equals(iex.getClassName())) { cltype = builderType; } else if (bufferClass.... | contractStringConcat |
40,196 | Exprent (List<Exprent> lstOperands, Set<Integer> bytecode) { // build exprent to return Exprent func = lstOperands.get(0); for (int i = 1; i < lstOperands.size(); i++) { func = new FunctionExprent(FunctionExprent.FUNCTION_STR_CONCAT, Arrays.asList(func, lstOperands.get(i)), bytecode); } return func; } | createConcatExprent |
40,197 | List<Exprent> (List<PooledConstant> bootstrapArguments, InvocationExprent expr) { List<Exprent> parameters = expr.getParameters(); if (bootstrapArguments != null) { PooledConstant constant = bootstrapArguments.get(0); if (constant.type == CodeConstants.CONSTANT_String) { String recipe = ((PrimitiveConstant)constant).ge... | extractParameters |
40,198 | boolean (InvocationExprent expr, VarType cltype) { if ("append".equals(expr.getName())) { MethodDescriptor md = expr.getDescriptor(); if (md.ret.equals(cltype) && md.params.length == 1) { VarType param = md.params[0]; switch (param.getType()) { case CodeConstants.TYPE_OBJECT: if (!param.equals(VarType.VARTYPE_STRING) &... | isAppendConcat |
40,199 | boolean (NewExprent expr, VarType cltype) { if (expr.getNewType().equals(cltype)) { VarType[] params = expr.getConstructor().getDescriptor().params; return params.length == 0 || params.length == 1 && params[0].equals(VarType.VARTYPE_STRING); } return false; } | isNewConcat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.