2 #include "ordergraphbuilder.h"
6 #include "ordergraph.h"
9 void buildOrderGraph(CSolver* This){
10 uint size = getSizeVectorBoolean(This->constraints);
11 OrderGraph* orderGraph = allocOrderGraph();
12 for(uint i=0; i<size; i++){
13 Boolean* constraint = getVectorBoolean(This->constraints, i);
14 if(GETBOOLEANTYPE(constraint) == ORDERCONST){
15 addOrderConstraintToOrderGraph(orderGraph, constraint);
18 //TODO: We should add the orderGraph to our encoder
19 deleteOrderGraph(orderGraph);