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
Parsing a message for the below specification results the following error.
AssertionError: unresolved field conditions in Test.Fld_B: 23 / 8 /= 15 / 8, 23 / 8 = 15 / 8
packageTestistype A ismod2 ** 8;
type B ismod2 ** 8;
type C ismod2 ** 8;
type Test is
message
Fld_A : A;
Fld_B : B
then Fld_C
if Message'Last / 8 = Fld_B'Last / 8thennullif Message'Last / 8 /= Fld_B'Last / 8;
Fld_C : C;
endmessage;
endTest;
The error occurs because the simplified() method of expression.Div calling the __floordiv__() method of the Number class does not return the result of the division operation, but instead a new Div object that is similar to the one that the operation was performed on, if the result of the division would not be an integer.
This error can also be observed when parsing a TLS handshake client hello message, where the following portion of the specification results in the assertion error:
Parsing a message for the below specification results the following error.
The error occurs because the
simplified()
method ofexpression.Div
calling the__floordiv__()
method of theNumber
class does not return the result of the division operation, but instead a new Div object that is similar to the one that the operation was performed on, if the result of the division would not be an integer.This error can also be observed when parsing a TLS handshake client hello message, where the following portion of the specification results in the assertion error:
The text was updated successfully, but these errors were encountered: