Assert goal repitively
2 posters
PAT Forum :: Support :: Using PAT :: CSP and PCSP Module
Page 1 of 1
Assert goal repitively
Hi all,
I want to assert a goal like this:
#define goal (x[0] > 0) && (x[1]>0) && ... && (x[30]>0); // this is too long
#assert System |= []<>goal;
Is there an easier way to define the goal instead of above in PAT?
Thanks!
Ben
I want to assert a goal like this:
#define goal (x[0] > 0) && (x[1]>0) && ... && (x[30]>0); // this is too long
#assert System |= []<>goal;
Is there an easier way to define the goal instead of above in PAT?
Thanks!
Ben
r.ben- Posts : 1
Join date : 2011-10-07
Yes. This is possible
PAT has this syntax. See the example below
var x[31];
System = Skip;
#define goal && i:{0..30} @ (x[i] > 0); // this is too long
#assert System |= []<>goal;
var x[31];
System = Skip;
#define goal && i:{0..30} @ (x[i] > 0); // this is too long
#assert System |= []<>goal;
r.ben wrote:Hi all,
I want to assert a goal like this:
#define goal (x[0] > 0) && (x[1]>0) && ... && (x[30]>0); // this is too long
#assert System |= []<>goal;
Is there an easier way to define the goal instead of above in PAT?
Thanks!
Ben
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
|
|