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
{{ message }}
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
As part of the let assignment Resolute thinks the value is to be {connection}
As part of the comparison the value is [connection]
In the example below we get an error message when defining the variable type for list 2 as [connection]
In the comparison comparing against {} returns false while comparing against [] returns true, i.e., the value is a list.
package myresolutelib2
public
system top
end top;
system implementation top.i
subcomponents
s1: system s;
annex Resolute {**
prove hasConnections(this)
**};
end top.i;
system s
end s;
annex Resolute {**
hasConnections (comp : component) <=
** "Component " comp " has connections" **
let set1 : {connection}= connections(comp); --
-- let list2 :[connection]= connections(); -- error msg: connections returns set
-- set1 <> {} -- this condition returns false because set1 value is [] and is compared to {}
set1 <> [] -- this condition returns true
**};
end myresolutelib2;
The text was updated successfully, but these errors were encountered:
As part of the let assignment Resolute thinks the value is to be {connection}
As part of the comparison the value is [connection]
In the example below we get an error message when defining the variable type for list 2 as [connection]
In the comparison comparing against {} returns false while comparing against [] returns true, i.e., the value is a list.
The text was updated successfully, but these errors were encountered: