Skip to content

Commit af4fc7e

Browse files
authored
(Re-)activating an ancient rule for the treatment of exactInstance of null (#3706)
2 parents 37890dd + e5853a5 commit af4fc7e

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

  • key.core/src/main/resources/de/uka/ilkd/key/proof/rules

key.core/src/main/resources/de/uka/ilkd/key/proof/rules/javaRules.key

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,15 @@
382382

383383
// ------------ dynamic types ------------------ //
384384

385-
/* // will be uncommented soon
386-
dynamic_type_for_null {
387-
\find (G::exactInstance(null) = TRUE ==>)
388-
\varcond(G not Null) // Woj: parser doesn't allow this at the moment
389-
\replacewith(false)
390-
};
391-
};*/
385+
// Woj: parser doesn't allow this at the moment
386+
// will be uncommented soon
387+
// MU: ... uncommented more than 18 years later
388+
dynamic_type_for_null {
389+
\find (G::exactInstance(null))
390+
\varcond(\not\same(G,Null))
391+
\replacewith(FALSE)
392+
\heuristics(concrete)
393+
};
392394

393395
// --------------- variable declarations --------------------------------------//
394396

0 commit comments

Comments
 (0)