-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experiment: eop compatibility check rewrite (#4855)
* bug repro for dropping a field * tentative fix: only compare fields with equal tags, otherwise skip the check * duplicate logic before simplifying * simplify each case * Update test/run-drun/tmp_upgrade/version0.mo * Update test/run-drun/tmp_upgrade/version1.mo * comments * rewrite the compatibility check for records and memories from scratch@ * fix to advance both to next fields * advance until equal tags@ @ * re-expresss loop as while loop
- Loading branch information
Showing
5 changed files
with
76 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101 | ||
ingress Completed: Reply: 0x4449444c0000 | ||
ingress Completed: Reply: 0x4449444c0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SKIP ic-ref-run | ||
install $ID tmp_upgrade/version0.mo "" | ||
upgrade $ID tmp_upgrade/version1.mo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
persistent actor { | ||
|
||
var four : [var (Nat, Text)] = [var]; | ||
var zero = 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
persistent actor { | ||
|
||
var three : [var (Nat, Text)] = [var]; | ||
var zero = 0; | ||
|
||
} |