You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there is a checker that makes use of exceptional successor stores in a transfer function for method calls (or something similar) that we could use as an example. Here is our current transfer function code:
I'd like to change this code to also update types in the stores for any exceptional successors. But the result store obtained from calling the superclass visitMethodInvocation method does not have any exceptional successor stores (result.getExceptionalStores() is null).
I'm thinking what we want to do is:
figure out the possible exception types for the invocation
make a copy of the input store copy
make a map excStores from each exception type to copy
update copy just like we are updating the then and else store
stick excStores in the returned TransferResult
Is there any checked that already does something like that we can learn from?
The text was updated successfully, but these errors were encountered:
I was wondering if there is a checker that makes use of exceptional successor stores in a transfer function for method calls (or something similar) that we could use as an example. Here is our current transfer function code:
https://github.com/kelloggm/object-construction-checker/blob/master/object-construction-checker/src/main/java/org/checkerframework/checker/objectconstruction/ObjectConstructionTransfer.java#L40
Here is where the stores are updated:
https://github.com/kelloggm/object-construction-checker/blob/69c119b2711ec4be2ada2906ab584883b1a43042/object-construction-checker/src/main/java/org/checkerframework/checker/objectconstruction/ObjectConstructionTransfer.java#L80-L87
I'd like to change this code to also update types in the stores for any exceptional successors. But the
result
store obtained from calling the superclassvisitMethodInvocation
method does not have any exceptional successor stores (result.getExceptionalStores()
isnull
).I'm thinking what we want to do is:
copy
excStores
from each exception type tocopy
copy
just like we are updating the then and else storeexcStores
in the returnedTransferResult
Is there any checked that already does something like that we can learn from?
The text was updated successfully, but these errors were encountered: