CFLAGS=-O3 -Wextra -Wall -Werror -fno-strict-aliasing -std=gnu11 \
-I./sylvan/src
-# We combine all the object files into one executable
$(PROGRAM): $(PROGRAM).o $(OBJS)
$(CC) $< $(OBJS) -o $@
#include <time.h>
#include <sylvan.h>
+
#include "mc.h"
#include "sokoban.h"
-//#include <sokoban.h>
-//#include <object.h>
-//#include <coord.h>
-
//Global variables
bool DEBUG = false;
strategy strat = HYBRID;
time_start_encode = clock();
switch(strat){
case COORD:
+ if(DEBUG) fprintf(stderr, "Encoding coordinate based\n");
+ break;
case OBJECT:
+ if(DEBUG) fprintf(stderr, "Encoding object based\n");
+ break;
case HYBRID:
+ if(DEBUG) fprintf(stderr, "Encoding hybrid based\n");
+ break;
default:
fprintf(stderr, "Huh?");
exit(2);
}
time_end_encode = clock();
-
// Future: SMC
fprintf(stderr, "Reading: %fs\n",
for(int filepathindex = optind; filepathindex < argc; filepathindex++){
char *currentfilepath = argv[filepathindex];
fprintf(stderr, "Processing: %s\n", currentfilepath);
- if(DEBUG) fprintf(stderr, "Strategy: %d\n", strat);
FILE *currentfile = fopen(currentfilepath, "r");
if(DEBUG) fprintf(stderr, "Opening file\n");
solve(currentfile);