PAT Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Assert goal repitively

2 posters

Go down

Assert goal repitively Empty Assert goal repitively

Post  r.ben Fri Oct 07, 2011 7:21 pm

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

r.ben

Posts : 1
Join date : 2011-10-07

Back to top Go down

Assert goal repitively Empty Yes. This is possible

Post  pat team Sun Oct 16, 2011 10:42 pm

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;


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 team
Admin

Posts : 17
Join date : 2010-02-15

http://www.comp.nus.edu.sg/~pat/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum