improved even more
authorMart Lubbers <mart@martlubbers.net>
Wed, 23 Mar 2016 18:05:39 +0000 (19:05 +0100)
committerMart Lubbers <mart@martlubbers.net>
Wed, 23 Mar 2016 18:05:39 +0000 (19:05 +0100)
modelchecker/Makefile
modelchecker/main.c

index 80fb895..97496e7 100644 (file)
@@ -4,7 +4,6 @@ OBJS:=sokoban.o mc.o
 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 $@
 
index e2e330b..16dd229 100644 (file)
@@ -4,13 +4,10 @@
 #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;
@@ -48,14 +45,19 @@ void solve(FILE *inputstream){
        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",
@@ -108,7 +110,6 @@ int main(int argc, char **argv){
        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);