X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=modelchecker%2Fcoord.h;h=56f770f11e8b61ae5ef53f7312b1a22e12919c90;hb=0212b386d85354399a194538538c0da541e987ea;hp=bcab49871e51fc25258b787cad733df84793dc2c;hpb=200ca4dd45c9d01c5faa1ac532bdef66f9345918;p=mc1516pa.git diff --git a/modelchecker/coord.h b/modelchecker/coord.h index bcab498..56f770f 100644 --- a/modelchecker/coord.h +++ b/modelchecker/coord.h @@ -8,24 +8,32 @@ typedef struct { int size; } variables; -typedef struct -{ +typedef struct { BDD bdd; variables vars; } state; -typedef struct -{ +typedef struct trans { BDD bdd; variables varset; -} trans; + struct trans *next_rel; +} trans_t; + +typedef struct { + trans_t *rell; + trans_t *relu; + trans_t *relr; + trans_t *reld; +} rels; typedef enum { LEFT, UP, RIGHT, DOWN } direction; state *encode_screen(sokoban_screen *screen); -BDD encode_rel(sokoban_screen *screen); +rels *encode_rel(sokoban_screen *screen); + +int test_trans(state *s, trans_t *t); -//int test_relprod(); +int test_relprod(); #endif