FIR DFA: do not generate nodes (and flows) for contracts on calls

The code was already duplicated between FirDataFlowAnalyzer and
FirReturnsImpliesAnalyzer, so might as well use the latter to slightly
speed up the former.
This commit is contained in:
pyos
2022-11-12 18:11:00 +01:00
committed by teamcity
parent 67a6785f63
commit ea1caf0955
15 changed files with 390 additions and 642 deletions
@@ -12,10 +12,10 @@ var Any?.isNotNull: Boolean
return this != null
}
set(value) {
contract {
<!WRONG_IMPLIES_CONDITION!>contract {
returns() implies (this@isNotNull != null)
<!ERROR_IN_CONTRACT_DESCRIPTION!>require(<!SENSELESS_COMPARISON!>this != null<!>)<!>
}
}<!>
}
fun test_1(a: A?) {