RecordFlux
RecordFlux copied to clipboard
Detection of always `True` conditions
package Test is
type Protocol is (PROTO_X) with Size => 8;
type M is
message
Protocol : Protocol;
Data : Opaque
with Size => 0;
end message;
type X is null message;
for M use (Data => X)
if Protocol = PROTO_X;
end Test;
It should be detected that Protocol = PROTO_X
is always True
, as Protocol
has only one value.