What's the appropriate way to hide events caused by array of channels?
2 posters
PAT Forum :: Support :: Using PAT :: CSP and PCSP Module
Page 1 of 1
What's the appropriate way to hide events caused by array of channels?
The following code has syntax error. What's the appropriate way to hide events caused by array of channels? I want to show that Sys and S are equivalent. Thanks.
- Code:
channel ch[2] 0;
P = put -> ch[0]!1 -> ch[1]?x -> P;
C = ch[0]?x -> get -> ch[1]!1 -> C;
Sys = (P ||| C) \ {ch[0].1, ch[1].1};
S = put -> get -> S;
#assert S refines Sys;
#assert Sys refines S;
alex2ren- Posts : 6
Join date : 2012-12-03
Re: What's the appropriate way to hide events caused by array of channels?
Thanks for reporting this.
Current PAT doesn't support this, please wait for the release of PAT 3.5 next week.
the new syntax is following
Sys = (P ||| C) \ {"ch[0].1", "ch[1].1"};
Current PAT doesn't support this, please wait for the release of PAT 3.5 next week.
the new syntax is following
Sys = (P ||| C) \ {"ch[0].1", "ch[1].1"};
alex2ren wrote:The following code has syntax error. What's the appropriate way to hide events caused by array of channels? I want to show that Sys and S are equivalent. Thanks.
- Code:
channel ch[2] 0;
P = put -> ch[0]!1 -> ch[1]?x -> P;
C = ch[0]?x -> get -> ch[1]!1 -> C;
Sys = (P ||| C) \ {ch[0].1, ch[1].1};
S = put -> get -> S;
#assert S refines Sys;
#assert Sys refines S;
Re: What's the appropriate way to hide events caused by array of channels?
PAT 3.5 is released and this is supported. Please download and try.
pat team wrote:Thanks for reporting this.
Current PAT doesn't support this, please wait for the release of PAT 3.5 next week.
the new syntax is following
Sys = (P ||| C) \ {"ch[0].1", "ch[1].1"};alex2ren wrote:The following code has syntax error. What's the appropriate way to hide events caused by array of channels? I want to show that Sys and S are equivalent. Thanks.
- Code:
channel ch[2] 0;
P = put -> ch[0]!1 -> ch[1]?x -> P;
C = ch[0]?x -> get -> ch[1]!1 -> C;
Sys = (P ||| C) \ {ch[0].1, ch[1].1};
S = put -> get -> S;
#assert S refines Sys;
#assert Sys refines S;
Similar topics
» Array expression on the fly
» Possibility ot hide all event created by a channel
» Distinguish input and output events
» Possibility ot hide all event created by a channel
» Distinguish input and output events
PAT Forum :: Support :: Using PAT :: CSP and PCSP Module
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|