- ERRPRINT("Reading: %fs\n",
- ((double) (time_end_read-time_start_read))/CLOCKS_PER_SEC);
- ERRPRINT("Encoding: %fs\n",
- ((double) (time_end_encode-time_start_encode))/CLOCKS_PER_SEC);
+ REPORT("Reading: %fs\n", time_end_read, time_start_read);
+ REPORT("Screen encoding: %fs\n", time_end_scr, time_start_scr);
+ REPORT("Goal encoding: %fs\n", time_end_goal, time_start_goal);
+ REPORT("Relation encoding: %fs\n", time_end_rel, time_start_rel);
+ REPORT("Solving encoding: %fs\n", time_end_solve, time_start_solve);
+
+ if(!found){
+ printf("no solution\n");
+ return 1;
+ }
+ return 0;