BDDVAR relvars[6] = {i * 6, i * 6 + 1, i * 6 + 2, i * 6 + 3, i * 6 + 4, i * 6 + 5};
BDDSET relvarset = sylvan_set_fromarray(relvars, 6);
uint8_t rel_enc[6] = {1, 1, 0, 0, 1, 1};
-
trs_current = (trans_t *)malloc(sizeof(trans_t));
trs_current->bdd = sylvan_cube(relvarset, rel_enc);
trs_current->varset.varset = relvarset;
trs_current->next_rel = trs;
trs = trs_current;
+
}
else if (check_space(x, y, dir, 1, bm) == 1 && check_space(x, y, dir, 2, bm) == 1){
xy_bddvar_map *bddvar = getxy(x + xdelta, y + ydelta, bm->f);
trs = trs_current;
//Agent Box Box -> Agent Box Box
- //(1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0)
//(1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 (i delta gamma)
//or
//(0 0 1 1 0 0 0 0 1 1 0 0 1 1 0 0 1 1) (delta gamma i)
BDDVAR relvars1[18] = {i*6, i*6+1, i*6+2, i*6+3, i*6+4, i*6+5, deltai, deltai+1, deltai+2, deltai+3, deltai+4, deltai+5, gammai, gammai+1, gammai+2, gammai+3, gammai+4, gammai+5};
BDD relvarset1 = sylvan_set_fromarray(relvars1, 18);
uint8_t rel_enc1[18];
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//or
//(1 1 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1) (gamma delta i)
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//or
//(0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0)
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//or
//(1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0)
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Agent Box Free -> Free Agent Box
//(1 0 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 0)
- //(1 0 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 0)
//or
//(0 1 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 1)
- //(0 1 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 1
//or
//(0 0 0 1 1 0 1 0 0 0 1 1 0 1 1 0 0 1)
- //(0 0 0 1 1 0 1 0 0 0 1 1 0 1 1 0 0 1
//or
//(1 0 0 0 1 1 0 0 0 1 1 0 0 1 1 0 0 1)
- //(1 0 0 0 1 1 0 0 0 1 1 0 0 1 1 0 0 1
//or
//(0 1 1 0 0 1 1 0 0 0 1 1 0 0 0 1 1 0)
- //(0 1 1 0 0 1 1 0 0 0 1 1 0 0 0 1 1 0
//or
//(0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1)
- //(0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Agent Targbox Free -> Free Targagent Box
//(1 0 0 0 1 1 1 1 0 1 0 0 0 0 0 1 1 0)
- //(1 0 0 0 1 1 1 1 0 1 0 0 0 0 0 1 1 0
//or
//(1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1)
- //(1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1
//or
//(0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 0 0)
- //(0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 0 0
//or
//(1 0 0 0 1 1 0 0 0 1 1 0 1 1 0 1 0 0)
- //(1 0 0 0 1 1 0 0 0 1 1 0 1 1 0 1 0 0
//or
//(1 1 0 1 0 0 1 0 0 0 1 1 0 0 0 1 1 0)
- //(1 1 0 1 0 0 1 0 0 0 1 1 0 0 0 1 1 0
//or
//(0 0 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 1)
- //(0 0 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Agent Box Target -> Free Agent Targbox
//(1 0 0 0 1 1 0 1 1 0 0 1 0 1 1 0 1 0)
- //(1 0 0 0 1 1 0 1 1 0 0 1 0 1 1 0 1 0
//or
//(0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 1)
- //(0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 1
//or
//(0 1 1 0 1 0 1 0 0 0 1 1 0 1 1 0 0 1)
- //(0 1 1 0 1 0 1 0 0 0 1 1 0 1 1 0 0 1
//or
//(1 0 0 0 1 1 0 1 1 0 1 0 0 1 1 0 0 1)
- //(1 0 0 0 1 1 0 1 1 0 1 0 0 1 1 0 0 1
//or
//(0 1 1 0 0 1 1 0 0 0 1 1 0 1 1 0 1 0)
- //(0 1 1 0 0 1 1 0 0 0 1 1 0 1 1 0 1 0
//or
//(0 1 1 0 1 0 0 1 1 0 0 1 1 0 0 0 1 1)
- //(0 1 1 0 1 0 0 1 1 0 0 1 1 0 0 0 1 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Agent Targbox Target -> Free Targagent Targbox
//(1 0 0 0 1 1 1 1 0 1 0 0 0 1 1 0 1 0)
- //(1 0 0 0 1 1 1 1 0 1 0 0 0 1 1 0 1 0
//or
//(1 1 0 1 0 0 0 1 1 0 1 0 1 0 0 0 1 1)
//or
//or
//(0 1 1 0 1 0 1 1 0 1 0 0 1 0 0 0 1 1)
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Targagent Box Free -> Target Agent Box
//(1 0 1 1 0 1 0 1 1 0 0 1 0 0 0 1 1 0)
- //(1 0 1 1 0 1 0 1 1 0 0 1 0 0 0 1 1 0
//or
//(0 1 1 0 0 1 0 0 0 1 1 0 1 0 1 1 0 1)
- //(0 1 1 0 0 1 0 0 0 1 1 0 1 0 1 1 0 1
//or
//(0 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 1)
- //(0 0 0 1 1 0 1 0 1 1 0 1 0 1 1 0 0 1
//or
//(1 0 1 1 0 1 0 0 0 1 1 0 0 1 1 0 0 1)
- //(1 0 1 1 0 1 0 0 0 1 1 0 0 1 1 0 0 1
//or
//(0 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 0)
- //(0 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 0
//or
//(0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 1)
- //(0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Targagent Targbox Free -> Target Targagent Box
//(1 0 1 1 0 1 1 1 0 1 0 0 0 0 0 1 1 0)
- //(1 0 1 1 0 1 1 1 0 1 0 0 0 0 0 1 1 0
//or
//(1 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1 0 1)
- //(1 1 0 1 0 0 0 0 0 1 1 0 1 0 1 1 0 1
//or
//(0 0 0 1 1 0 1 0 1 1 0 1 1 1 0 1 0 0)
- //(0 0 0 1 1 0 1 0 1 1 0 1 1 1 0 1 0 0
//or
//(1 0 1 1 0 1 0 0 0 1 1 0 1 1 0 1 0 0)
- //(1 0 1 1 0 1 0 0 0 1 1 0 1 1 0 1 0 0
//or
//(1 1 0 1 0 0 1 0 1 1 0 1 0 0 0 1 1 0)
- //(1 1 0 1 0 0 1 0 1 1 0 1 0 0 0 1 1 0
//or
//(0 0 0 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1)
- //(0 0 0 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1 ,1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//or
//(0 1 1 0 1 0 0 1 1 0 0 1 1 0 1 1 0 1)
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
//Targagent Targbox Target -> Target Targagent Targbox
//(1 0 1 1 0 1 1 1 0 1 0 0 0 1 1 0 1 0)
- //(1 0 1 1 0 1 1 1 0 1 0 0 0 1 1 0 1 0
//or
//(1 1 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 1)
- //(1 1 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 1
//or
//(0 1 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0)
- //(0 1 1 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0
//or
//(1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 0)
- //(1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 0
//or
//(1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 1 0)
- //(1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 1 0
//or
//(1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 1 0)
- //(0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1
- //(0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1
relvarset1 = sylvan_set_fromarray(relvars1, 18);
- if ((i < deltai) < gammai){
+ if (i < deltai && deltai < gammai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < gammai) < i){
+ else if (deltai < gammai && gammai < i){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((gammai < i) < deltai){
+ else if (gammai < i && i < deltai){
uint8_t rel_enc__[18] = {0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((i < gammai) < deltai){
+ else if (i < gammai && gammai < deltai){
uint8_t rel_enc__[18] = {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}
- else if ((deltai < i) < gammai){
+ else if (deltai < i && i < gammai){
uint8_t rel_enc__[18] = {1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0};
memcpy(rel_enc1, rel_enc__, 18*sizeof(uint8_t));
}