X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=kaps.h;h=ab4479ce812b75181b06f30ff237d25c6bde07d7;hb=e37c87741703aa056d682b0b4126dba20f83abc4;hp=ac50f08efa557f961be6441ad7aca23c56ae5edc;hpb=d01193ed5f4474a0f51b2b8dd809f5b39ac9b722;p=libfirm diff --git a/kaps.h b/kaps.h index ac50f08ef..ab4479ce8 100644 --- a/kaps.h +++ b/kaps.h @@ -6,7 +6,7 @@ /** * Create an empty PBQP instance with the given number of nodes. */ -pbqp* alloc_pbqp(int number_nodes); +pbqp* alloc_pbqp(unsigned number_nodes); /** * Free the given PBQP. @@ -16,11 +16,19 @@ void free_pbqp(pbqp *pbqp); /** * Add costs vector to given node. */ -void add_node_costs(pbqp *pbqp, int node_index, vector *costs); +void add_node_costs(pbqp *pbqp, unsigned node_index, vector *costs); /** * Add costs matrix between given nodes. */ -void add_edge_costs(pbqp *pbqp, int src_index, int tgt_index, matrix *costs); +void add_edge_costs(pbqp *pbqp, unsigned src_index, unsigned tgt_index, pbqp_matrix *costs); + +pbqp_edge *get_edge(pbqp *pbqp, unsigned src_index, unsigned tgt_index); +pbqp_node *get_node(pbqp *pbqp, unsigned index); + +num get_node_solution(pbqp *pbqp, unsigned node_index); +num get_solution(pbqp *pbqp); + +void set_dumpfile(pbqp *pbqp, FILE *f); #endif /* KAPS_KAPS_H */