Skip to content

Commit

Permalink
modernising the coupling invariant.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattulbrich committed Apr 12, 2024
1 parent 9121854 commit f5a5cfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ArrayList/src/ArrayList.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public class ArrayList implements List {
@ private invariant 0 <= size && size <= array.length;
@ private invariant (\forall int i; 0 <= i && i < size; array[i] != null);
@
@ private invariant seq.length == size;
@ private invariant (\forall int i; 0 <= i && i < size; array[i] == (\bigint)seq[i]);
@ private invariant seq == \seq_sub(\array2seq(array), 0, size);
@*/

/*@ public normal_behaviour
Expand Down

0 comments on commit f5a5cfc

Please sign in to comment.