Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
249,700
Set<Instruction> () { Set<Instruction> joinInstructions = new HashSet<>(); StreamEx.of(myInstructions) .remove(Instruction::isLinear) .flatMap(inst -> IntStreamEx.of(inst.getSuccessorIndexes()).elements(myInstructions)) .into(joinInstructions); for (int index = 0; index < myInstructions.length; index++) { Instruction i...
getJoinInstructions
249,701
boolean (Collection<? extends DfaMemoryState> processed, DfaInstructionState instructionState) { if (processed.contains(instructionState.getMemoryState())) { return true; } for (DfaMemoryState state : processed) { if (state.isSuperStateOf(instructionState.getMemoryState())) { return true; } } return false; }
containsState
249,702
void () { myCancelled = true; }
cancel
249,703
void (PsiElement anchor, DfaMemoryState state) { myNestedClosures.putValue(anchor, state.createClosureState()); }
createClosureState
249,704
int () { return DEFAULT_MAX_STATES_PER_BRANCH; }
getComplexityLimit
249,705
Instruction (int index) { return myInstructions[index]; }
getInstruction
249,706
DfaListener () { return myListener; }
getListener
249,707
void (@NotNull Instruction prevInstruction, @NotNull Instruction nextInstruction, int @NotNull [] loopNumber, @NotNull MultiMap<Instruction, DfaMemoryState> processedStates, @NotNull MultiMap<Instruction, DfaMemoryState> incomingStates, @NotNull List<? extends DfaInstructionState> inFlightStates, DfaInstructionState @N...
handleStepOutOfLoop
249,708
boolean (@NotNull Instruction prevInstruction, @NotNull Instruction nextInstruction, int @NotNull [] loopNumber) { return loopNumber[nextInstruction.getIndex()] == loopNumber[prevInstruction.getIndex()]; }
inSameLoop
249,709
DfaInstructionState (DfaInstructionState instructionState, Collection<? extends DfaMemoryState> processed) { DfaMemoryStateImpl curState = (DfaMemoryStateImpl)instructionState.getMemoryState(); int curStateStackSize = curState.getStackSize(); if (processed.size() > 10 && curStateStackSize > 10) { for (DfaMemoryState st...
mergeBackBranches
249,710
void (Instruction instruction) { }
beforeInstruction
249,711
void (Instruction instruction) { }
afterInstruction
249,712
boolean () { return myWasForciblyMerged; }
wasForciblyMerged
249,713
boolean () { return myStopOnNull; }
stopOnNull
249,714
void (@Nullable DfaInstructionState lastInstructionState, @NotNull Throwable e) { Attachment[] attachments = {new Attachment("method_body.txt", myPsiAnchor.getText())}; String flowText = myFlow.toString(); if (lastInstructionState != null) { int index = lastInstructionState.getInstruction().getIndex(); flowText = flowT...
reportDfaProblem
249,715
void (DfaInstructionState state) { DfaInstructionState otherState = myMap.putIfAbsent(state, state); if (otherState == null) { myQueue.offer(state); } else { otherState.getMemoryState().afterMerge(state.getMemoryState()); } }
offer
249,716
boolean () { return myQueue.isEmpty(); }
isEmpty
249,717
boolean (@NotNull Processor<? super DfaInstructionState> processor) { for (DfaInstructionState state : myQueue) { if (!processor.process(state)) return false; } return true; }
processAll
249,718
List<DfaInstructionState> (Set<Instruction> joinInstructions) { DfaInstructionState state = myQueue.remove(); final Instruction instruction = state.getInstruction(); myMap.remove(state); DfaInstructionState next = myQueue.peek(); if (next == null || next.compareTo(state) != 0) return Collections.singletonList(state); L...
getNextInstructionStates
249,719
List<DfaMemoryState> (List<DfaMemoryState> states) { for (int i = 1; i < states.size(); i++) { DfaMemoryState left = states.get(i); if (left == null) continue; for (int j = 0; j < i; j++) { ProgressManager.checkCanceled(); DfaMemoryState right = states.get(j); if (right == null) continue; DfaMemoryState result = left.t...
squash
249,720
List<DfaMemoryState> (List<DfaMemoryState> states) { if (states.size() < FORCE_MERGE_THRESHOLD) return states; myWasForciblyMerged = true; Collection<List<DfaMemoryState>> groups = StreamEx.of(states).groupingBy(DfaMemoryState::getMergeabilityKey).values(); return StreamEx.of(groups) .flatMap(group -> StreamEx.ofSubLis...
forceMerge
249,721
boolean () { return myWasForciblyMerged; }
wasForciblyMerged
249,722
boolean (@NotNull DfType other) { return other.equals(this) || other == DfType.BOTTOM; }
isSuperType
249,723
DfType (@NotNull DfType other) { return other.isSuperType(this) ? this : DfType.BOTTOM; }
meet
249,724
DfType (@NotNull RelationType relationType) { if (relationType == RelationType.EQ || relationType == RelationType.IS) return this; if (relationType == RelationType.NE || relationType == RelationType.IS_NOT) { DfType negated = tryNegate(); if (negated != null) { return negated; } } return TOP; }
fromRelation
249,725
T () { return myValue; }
getValue
249,726
int () { return Objects.hashCode(myValue); }
hashCode
249,727
boolean (Object obj) { return obj == this || obj != null && obj.getClass() == getClass() && Objects.equals(((DfConstantType<?>)obj).myValue, myValue); }
equals
249,728
String () { return String.valueOf(myValue); }
toString
249,729
boolean (@Nullable Object constant) { return Objects.equals(myValue, constant); }
isConst
249,730
boolean (@NotNull DfType other) { return true; }
isSuperType
249,731
DfType (@NotNull DfType other) { return this; }
join
249,732
DfType (@NotNull DfType other) { return this; }
tryJoinExactly
249,733
DfType (@NotNull DfType other) { return other; }
meet
249,734
DfType () { return BOTTOM; }
tryNegate
249,735
DfType (@NotNull RelationType relationType) { return this; }
fromRelation
249,736
int () { return 1254215; }
hashCode
249,737
String () { return "TOP"; }
toString
249,738
boolean (@NotNull DfType other) { return other == this; }
isSuperType
249,739
DfType (@NotNull DfType other) { return other; }
join
249,740
DfType (@NotNull DfType other) { return other; }
tryJoinExactly
249,741
DfType (@NotNull DfType other) { return this; }
meet
249,742
DfType (@NotNull RelationType relationType) { return this; }
fromRelation
249,743
DfType () { return TOP; }
tryNegate
249,744
int () { return 67532141; }
hashCode
249,745
String () { return "BOTTOM"; }
toString
249,746
DfType (@NotNull DfType other) { return other == this ? this : TOP; }
join
249,747
DfType (@NotNull DfType other) { return other == this ? this : BOTTOM; }
meet
249,748
DfType () { return NOT_FAIL; }
tryNegate
249,749
DfType (@NotNull RelationType relationType) { return relationType == RelationType.EQ ? this : relationType == RelationType.NE ? NOT_FAIL : BOTTOM; }
fromRelation
249,750
int () { return 5362412; }
hashCode
249,751
boolean (@NotNull DfType other) { return other != TOP && other != FAIL; }
isSuperType
249,752
DfType (@NotNull DfType other) { return other == FAIL ? TOP : this; }
join
249,753
DfType (@NotNull DfType other) { return join(other); }
tryJoinExactly
249,754
DfType (@NotNull DfType other) { return other == FAIL ? BOTTOM : this; }
meet
249,755
DfType () { return FAIL; }
tryNegate
249,756
int () { return 23145416; }
hashCode
249,757
Set<T> () { return Collections.unmodifiableSet(myNotValues); }
getNotValues
249,758
int () { return myNotValues.hashCode()+1234; }
hashCode
249,759
boolean (Object obj) { return obj == this || obj instanceof DfAntiConstantType && Objects.equals(((DfAntiConstantType<?>)obj).myNotValues, myNotValues); }
equals
249,760
String (T value) { return String.valueOf(value); }
renderValue
249,761
String () { return "!= " + StreamEx.of(myNotValues).map(this::renderValue).joining(", "); }
toString
249,762
DfType () { return myType; }
getDfType
249,763
DfaTypeValue (@NotNull DfaValueFactory factory) { return factory.fromDfType(myType); }
bindToFactory
249,764
boolean (DfaValue value) { return value instanceof DfaTypeValue && value.getDfType() == DfType.TOP; }
isUnknown
249,765
String () { return myType.toString(); }
toString
249,766
boolean (DfaValue value) { return value instanceof DfaTypeValue && value.getDfType() == DfType.FAIL; }
isContractFail
249,767
DfaTypeValue (@NotNull DfType type) { return myValues.computeIfAbsent(type, t -> new DfaTypeValue(myFactory, t)); }
create
249,768
DfaValueFactory () { return myFactory; }
getFactory
249,769
int () { return myID; }
getID
249,770
DfType () { return DfType.TOP; }
getDfType
249,771
DfaValue (DfaValue other) { if (this == other) return this; return myFactory.fromDfType(getDfType().join(other.getDfType())); }
unite
249,772
DfaCondition (DfaValue other) { return this.cond(RelationType.EQ, other); }
eq
249,773
DfaCondition (DfType other) { return this.cond(RelationType.EQ, myFactory.fromDfType(other)); }
eq
249,774
DfaCondition (@NotNull RelationType relationType, @NotNull DfaValue other) { return DfaCondition.createCondition(this, relationType, other); }
cond
249,775
DfaCondition (@NotNull RelationType relationType, @NotNull DfType other) { DfaCondition.Exact result = DfaCondition.tryEvaluate(getDfType(), relationType, other); if (result != null) return result; return DfaCondition.createCondition(this, relationType, myFactory.fromDfType(other)); }
cond
249,776
boolean (DfaVariableValue other) { return false; }
dependsOn
249,777
boolean (Object obj) { return obj instanceof DfaValue && getID() == ((DfaValue)obj).getID(); }
equals
249,778
int () { return getID(); }
hashCode
249,779
DfaVariableValue (@NotNull VariableDescriptor descriptor) { return createVariableValue(descriptor, null); }
createVariableValue
249,780
DfaVariableValue (@NotNull VariableDescriptor descriptor, @Nullable DfaVariableValue qualifier) { return createVariableValue(descriptor, qualifier, VariableDescriptor::getDfType); }
createVariableValue
249,781
VariableDescriptor () { return myDescriptor; }
getDescriptor
249,782
DfaVariableValue (@NotNull DfaValueFactory factory) { return factory.getVarFactory().createVariableValue(myDescriptor, myQualifier == null ? null : myQualifier.bindToFactory(factory), (descriptor, value) -> myDfType); }
bindToFactory
249,783
DfType () { return myDfType; }
getDfType
249,784
boolean (DfaVariableValue other) { return other == this || (myQualifier != null && myQualifier.dependsOn(other)); }
dependsOn
249,785
List<DfaVariableValue> () { return myDependents; }
getDependentVariables
249,786
int () { int depth = 0; DfaVariableValue qualifier = getQualifier(); while (qualifier != null) { depth++; qualifier = qualifier.getQualifier(); } return depth; }
getDepth
249,787
DfaVariableValue (DfaVariableValue newQualifier) { return newQualifier == myQualifier ? this : myFactory.getVarFactory().createVariableValue(myDescriptor, newQualifier); }
withQualifier
249,788
String () { return (myQualifier == null ? "" : myQualifier + ".") + myDescriptor; }
toString
249,789
DfType () { if(myInherentType == null) { myInherentType = myDescriptor.getInitialDfType(this, getFactory().getContext()); } return myInherentType; }
getInherentType
249,790
boolean () { return !myDescriptor.isStable() || (myQualifier != null && myQualifier.isFlushableByCalls()); }
isFlushableByCalls
249,791
boolean () { return !myDescriptor.canBeCapturedInClosure() || (myQualifier != null && myQualifier.canBeCapturedInClosure()); }
canBeCapturedInClosure
249,792
boolean () { return myDescriptor.isCall() || myQualifier != null && myQualifier.containsCalls(); }
containsCalls
249,793
boolean (@NotNull DfType type) { return myDescriptor.alwaysEqualsToItself(type); }
alwaysEqualsToItself
249,794
DfaCondition () { return Exact.TRUE; }
getTrue
249,795
DfaCondition () { return Exact.FALSE; }
getFalse
249,796
DfaCondition () { return Exact.UNKNOWN; }
getUnknown
249,797
DfaCondition (@NotNull DfaValue left, @NotNull RelationType relationType, @NotNull DfaValue right) { Exact value = Exact.tryEvaluate(left, relationType, right); if (value != null) return value; DfaRelation relation = DfaRelation.createRelation(left, relationType, right); if (relation != null) return relation; return Ex...
createCondition
249,798
String () { return myName; }
toString
249,799
DfaCondition () { if (this == TRUE) return FALSE; if (this == FALSE) return TRUE; return UNKNOWN; }
negate