Unhelpful error message on read of uninitialized field by crucible_jvm_verify
#925
Labels
subsystem: crucible-jvm
Issues related to Java verification with crucible-jvm
topics: error-messages
Issues involving the messages SAW produces on error
Milestone
When verifying a JVM method, it may happen that the symbolic tries to read an instance field or an array element, and fails because the value is uninitialized. (This may happen due to a missing points-to declaration in the method spec, for example.) But the error message when this happens is quite uninformative:
It just says "incorrect variant", and doesn't give any clue about what caused the problem, what it was trying to do when it happened, or how to fix it.
In this case, the error occurred because it was trying to read the field called
Test.val
, of typelong
, but that field was uninitialized because I commented out the points-to precondition for that field in the SAW spec. The error message should at least include the name of the field it was trying to access.The text was updated successfully, but these errors were encountered: