@@ -41,11 +41,11 @@ predicate containerStoreStep(Node node1, Node node2, Content c) {
4141 or
4242 c instanceof MapKeyContent and
4343 node2 .getType ( ) instanceof MapType and
44- exists ( Write w | w .writesElement ( node2 , node1 , _) )
44+ exists ( Write w | w .writesElement ( node2 . ( PostUpdateNode ) . getPreUpdateNode ( ) , node1 , _) )
4545 or
4646 c instanceof MapValueContent and
4747 node2 .getType ( ) instanceof MapType and
48- exists ( Write w | w .writesElement ( node2 , _, node1 ) )
48+ exists ( Write w | w .writesElement ( node2 . ( PostUpdateNode ) . getPreUpdateNode ( ) , _, node1 ) )
4949}
5050
5151/**
@@ -57,11 +57,11 @@ predicate containerStoreStep(Node node1, Node node2, Content c) {
5757predicate containerReadStep ( Node node1 , Node node2 , Content c ) {
5858 c instanceof ArrayContent and
5959 (
60- node2 . ( Read ) . readsElement ( node1 , _ ) and
61- (
62- node1 . getType ( ) instanceof ArrayType or
63- node1 . getType ( ) instanceof SliceType
64- )
60+ node1 . getType ( ) instanceof ArrayType or
61+ node1 . getType ( ) instanceof SliceType
62+ ) and
63+ (
64+ node2 . ( Read ) . readsElement ( node1 , _ )
6565 or
6666 node2 .( RangeElementNode ) .getBase ( ) = node1
6767 or
@@ -85,5 +85,5 @@ predicate containerReadStep(Node node1, Node node2, Content c) {
8585 or
8686 c instanceof MapValueContent and
8787 node1 .getType ( ) instanceof MapType and
88- node2 .( Read ) .readsElement ( node1 , _)
88+ ( node2 .( Read ) .readsElement ( node1 , _) or node2 . ( RangeElementNode ) . getBase ( ) = node1 )
8989}
0 commit comments