Skip to content

Commit

Permalink
Fix determination of message size
Browse files Browse the repository at this point in the history
An essential part of this fix is the added differentiation between
variables and literals in expressions. Furthermore, the redundant
checking of the message size in the generated code is removed.

Ref. #1064
  • Loading branch information
treiher committed Jun 28, 2022
1 parent fcecfcf commit 30531d3
Show file tree
Hide file tree
Showing 34 changed files with 1,405 additions and 1,191 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Model:
- Missing file location in error messages (#647)
- Bug box due to dangling field when merging messages (#1033)
- Missing type information in `Reset` statement (#1080)
- Incorrect message size calculation if size depends on variables (#1064)

Generator:

Expand All @@ -101,6 +102,7 @@ Generator:
- Logical expressions in assignments (#1012)
- Boolean relations containing global variables (#1059)
- Minimal session (#883)
- Message aggregates with variables as field values (#1064)
- Code generation when using non-default prefix (#897)
- Conversion between message `Structure` and `Context` (#961)
- Missing reset in assignment to comprehension (#1050)
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/ping/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def ping(target: str) -> None:
reply = packet.get("Payload")
assert isinstance(reply, MessageValue)

if reply.get("Tag") != "Echo_Reply":
if reply.get("Tag") != "ICMP::Echo_Reply":
continue

reply_seq = str(reply.get("Sequence_Number"))
Expand Down
Loading

0 comments on commit 30531d3

Please sign in to comment.