while(new != old){
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){
t = t->next_rel;
}
}
+ ERRPRINT("Satcount: %f\n", sylvan_satcount(old, init->vars.varset));
//sylvan_printdot_nc(old);
//switch(strat){
// case COORD:
--- /dev/null
+#!/bin/bash
+
+for testscreen in tests/*; do
+ NUM="$(basename "$(echo $testscreen | cut -d'.' -f1)")"
+ OUT="$(./main "$testscreen" 2>&1| grep -Po "(?<=Satcount: )\d+(?=\.)")"
+ echo "Output: $OUT"
+ if [ "$NUM" -ne "$OUT" ]; then
+ echo "$testscreen failed"
+ echo "Expected: $NUM"
+ echo "Got: $OUT"
+ cat "$testscreen"
+ else
+ echo "$testscreen passed"
+ fi
+done