trs = trs_current;
//Agent Target -> Free Targagent
- //(1 0 0 0 1 1 0 1 1 1 1 0)
+ //(1 0 0 0 1 1 - 0 1 1 1 1 0)
//or
- //(0 1 1 1 1 0 0 1 1 1 1 0)
+ //(0 1 1 1 1 0 - 1 0 0 0 1 1)
relvarset = sylvan_set_fromarray(relvars, 12);
if (i < deltai){
uint8_t rel_enc2[12] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0};
memcpy(rel_enc, rel_enc2, 12*sizeof(uint8_t));
}
else {
- uint8_t rel_enc2[12] = {0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0};
+ uint8_t rel_enc2[12] = {0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1};
memcpy(rel_enc, rel_enc2, 12*sizeof(uint8_t));
}
trs_current = (trans_t *)malloc(sizeof(trans_t));
BDD new = init->bdd;
int iteration = 0;
while(new != old){
- ERRPRINT("Iteration %d\n", iteration++);
old = new;
+ ERRPRINT("Iteration %d\n", iteration++);
+ ERRPRINT("Satcount: %f\n", sylvan_satcount(old, init->vars.varset));
trans_t *t = rls->rell;
+
while (t != NULL){
new = sylvan_or(new, sylvan_relnext(new, t->bdd, t->varset.varset));
t = t->next_rel;