y = bddxy->value.y;
if (check_space(x, y, dir, 1, bm) == 0){
+ //Agent -> Agent
//1 1 0 0 1 1 (1 0 1 -> 1 0 1)
BDDVAR relvars[6] = {i * 3, i * 3 + 1, i * 3 + 2, i * 3 + 3, i * 3 + 4, i * 3 + 5};
BDDSET relvarset = sylvan_set_fromarray(relvars, 6);
trs_current->next_rel = trs;
trs = trs_current;
+ //Targagent -> Targagent
//1 1 1 1 0 0 (1 1 0 -> 1 1 0)
relvars[0] = i * 3;
relvars[1] = i * 3 + 1;
xy_bddvar_map *bddvar = getxy(x + xdelta, y + ydelta, bm->f);
int deltai = bddvar->value.var[0];
+ //Free Agent -> Agent Free
//(0 1 0 0 1 1 1 0 0 0 1 1)
BDDVAR relvars[12] = {deltai*3, deltai*3+1, deltai*3+2, deltai*3+3, deltai*3+4, deltai*3+5, i*3, i*3+1, i*3+2, i*3+3, i*3+4, i*3+5};
BDDSET relvarset = sylvan_set_fromarray(relvars, 12);
trs_current->next_rel = trs;
trs = trs_current;
- //(0 1 1 0 1 1 1 0 0 1 1 1)
+ //Target Agent -> Targagent Free
+ //(0 1 1 1 1 0 1 0 0 0 1 1)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
relvars[2] = deltai*3+2;
rel_enc[0] = 0;
rel_enc[1] = 1;
rel_enc[2] = 1;
- rel_enc[3] = 0;
+ rel_enc[3] = 1;
rel_enc[4] = 1;
- rel_enc[5] = 1;
+ rel_enc[5] = 0;
rel_enc[6] = 1;
rel_enc[7] = 0;
rel_enc[8] = 0;
- rel_enc[9] = 1;
+ rel_enc[9] = 0;
rel_enc[10] = 1;
rel_enc[11] = 1;
trs_current = (trans_t *)malloc(sizeof(trans_t));
trs_current->next_rel = trs;
trs = trs_current;
- //(0 1 0 1 1 0 1 0 1 0 0 1)
+ //REPAIR! Must be: Free Targagent -> Agent Target
+ //(0 1 0 0 1 1 1 0 1 1 0 1)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
relvars[2] = deltai*3+2;
rel_enc[0] = 0;
rel_enc[1] = 1;
rel_enc[2] = 0;
- rel_enc[3] = 1;
+ rel_enc[3] = 0;
rel_enc[4] = 1;
- rel_enc[5] = 0;
+ rel_enc[5] = 1;
rel_enc[6] = 1;
rel_enc[7] = 0;
rel_enc[8] = 1;
- rel_enc[9] = 0;
+ rel_enc[9] = 1;
rel_enc[10] = 0;
rel_enc[11] = 1;
trs_current = (trans_t *)malloc(sizeof(trans_t));
trs_current->next_rel = trs;
trs = trs_current;
+ //Target Targagent -> Targagent Target
//(0 1 1 1 1 0 1 0 1 1 0 1)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
trs_current->next_rel = trs;
trs = trs_current;
+ //Box Agent -> Box Agent
//(0 0 1 1 0 0 1 1 0 0 1 1)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
trs_current->next_rel = trs;
trs = trs_current;
+ //Targbox Agent -> Targbox Agent
//(1 1 0 0 0 0 1 1 0 0 1 1)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
trs_current->next_rel = trs;
trs = trs_current;
+ //Box Targagent -> Box Targagent
//(0 0 1 1 0 0 1 1 1 1 0 0)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;
trs_current->next_rel = trs;
trs = trs_current;
+ //Targbox Targagent -> Targbox Targagent
//(1 1 0 0 0 0 1 1 1 1 0 0)
relvars[0] = deltai*3;
relvars[1] = deltai*3+1;