2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @author Sebastian Hack
17 * Serialize a lpp to a file descriptor.
18 * @param comm The file descriptor.
20 * @param with_names Also send the names of constraints/variables.
22 void lpp_serialize(lpp_comm_t *comm, const lpp_t *lpp, int with_names);
25 * Deserialize an lpp from a file descriptor.
26 * @param comm The file descriptor.
27 * @param with_names Also receive names of constraints/variables.
28 * @return The Problem.
30 lpp_t *lpp_deserialize(lpp_comm_t *comm);
33 * Serialize values of the lpps for a given value kind.
34 * This function only serializes values of the given kind.
35 * @param fd The file descriptor to serialize to.
36 * @param lpp The problem.
37 * @param kind The value kind.
39 void lpp_serialize_values(lpp_comm_t *comm, const lpp_t *lpp, lpp_value_kind_t kind);
42 * Desrialize values from a stream.
43 * @param fd The file descriptor to read from.
44 * @param lpp The problem to set the values.
45 * @param kind The value kind the values shall be assigned.
47 void lpp_deserialize_values(lpp_comm_t *comm, lpp_t *lpp, lpp_value_kind_t kind);
49 void lpp_serialize_stats(lpp_comm_t *comm, const lpp_t *lpp);
50 void lpp_deserialize_stats(lpp_comm_t *comm, lpp_t *lpp);