typedefenum{leq=1,les,na}relation;// to implement open guards leq deontes the relation to be less than equal to, les means less than relation and na means notapplicable.
// state for general TPDA with pop ande push happens at the same time
classstateGCPP{
...
...
@@ -23,6 +23,8 @@ class stateGCPP{
charL;// left point of the non-trivial block
relation**r_matrix;// the matrix of relation which denotes the relation between the points fractional part. clearly the size of the matrix is P*P as p is the total number of active colors.
boolbig(chari,charj);// return true iff distance between point i to point j is big
shortintdist(chari,charj);// return distance between point i to point j