-/* Copies a firm subgraph that complies to the restrictions for
- constant expressions to current_block in current_ir_graph. */
-ir_node *copy_const_value(ir_node *n);
-
-/* Set has no effect for entities of type method. */
-ir_node *get_atomic_ent_value(entity *ent);
-void set_atomic_ent_value(entity *ent, ir_node *val);
-
-/* A value of a compound entity is a pair of a value and the corresponding
- member of the compound. */
-void add_compound_ent_value(entity *ent, ir_node *val, entity *member);
-int get_compound_ent_n_values(entity *ent);
-ir_node *get_compound_ent_value(entity *ent, int pos);
-entity *get_compound_ent_value_member(entity *ent, int pos);
-void set_compound_ent_value(entity *ent, ir_node *val, entity *member, int pos);
-void remove_compound_ent_value(entity *ent, entity *value_ent);
-/* Inits the entity ent witch must be of a one dimensional
+
+/**
+ * Copies a firm subgraph that complies to the restrictions for
+ * constant expressions to current_block in current_ir_graph.
+ */
+ir_node *copy_const_value(dbg_info *dbg, ir_node *n);
+
+/* Set has no effect for existent entities of type method. */
+ir_node *get_atomic_ent_value(ir_entity *ent);
+void set_atomic_ent_value(ir_entity *ent, ir_node *val);
+
+/**
+ * The following type describes a path to a leave in the compound graph.
+ * Node 0 in the path must be an entity of type tp given in the constructor. If
+ * the type of this element is compound, the path node 1 is an element of the type
+ * of node 0 an so forth, until an entity of atomic type is reached.
+ */
+#ifndef _COMPOUND_GRAPH_PATH_TYPEDEF_
+#define _COMPOUND_GRAPH_PATH_TYPEDEF_
+typedef struct compound_graph_path compound_graph_path;
+#endif /* _COMPOUND_GRAPH_PATH_TYPEDEF_ */
+
+/** Creates a new compound graph path. */
+compound_graph_path *new_compound_graph_path(ir_type *tp, int length);
+
+/** Returns non-zero if an object is a compound graph path */
+int is_compound_graph_path(const void *thing);
+
+/** Frees a graph path object */
+void free_compound_graph_path (compound_graph_path *gr);
+
+/** Returns the length of a graph path */
+int get_compound_graph_path_length(const compound_graph_path *gr);
+
+ir_entity *get_compound_graph_path_node(const compound_graph_path *gr, int pos);
+void set_compound_graph_path_node(compound_graph_path *gr, int pos, ir_entity *node);
+int get_compound_graph_path_array_index(const compound_graph_path *gr, int pos);
+void set_compound_graph_path_array_index(compound_graph_path *gr, int pos, int index);
+
+/** Checks whether the path up to pos is correct. If the path contains a NULL,
+ * assumes the path is not complete and returns non-zero. */
+int is_proper_compound_graph_path(compound_graph_path *gr, int pos);
+
+/* A value of a compound entity is a pair of a value and the description of the
+ corresponding access path to the member of the compound. */
+void add_compound_ent_value_w_path(ir_entity *ent, ir_node *val, compound_graph_path *path);
+void set_compound_ent_value_w_path(ir_entity *ent, ir_node *val, compound_graph_path *path, int pos);
+/** Returns the number of constant values needed to initialize the entity.
+ *
+ * Asserts if the entity has variability_uninitialized.
+ * */
+int get_compound_ent_n_values(ir_entity *ent);
+/** Returns a constant value given the position. */
+ir_node *get_compound_ent_value(ir_entity *ent, int pos);
+/** Returns the access path for value at position pos. */
+compound_graph_path *get_compound_ent_value_path(ir_entity *ent, int pos);
+/** Returns the position of a value with the given path.
+ * The path must contain array indices for all array element entities. */
+int get_compound_ent_pos_by_path(ir_entity *ent, compound_graph_path *path);
+/** Returns a constant value given the access path.
+ * The path must contain array indices for all array element entities. */
+ir_node *get_compound_ent_value_by_path(ir_entity *ent, compound_graph_path *path);
+
+/** Removes all constant entries where the path ends at value_ent. Does not
+ free the memory of the paths. (The same path might be used for several
+ constant entities. */
+void remove_compound_ent_value(ir_entity *ent, ir_entity *value_ent);
+
+/* Some languages support only trivial access paths, i.e., the member is a
+ direct, atomic member of the constant entities type. In this case the
+ corresponding entity can be accessed directly. The following functions
+ allow direct access. */
+
+/** Generates a Path with length 1.
+ Beware: Has a bad runtime for array elements (O(|array|) and should be
+ avoided there. Use add_compound_ent_value_w_path() instead and create
+ the path manually. */
+void add_compound_ent_value(ir_entity *ent, ir_node *val, ir_entity *member);
+
+/** Returns the last member in the path */
+ir_entity *get_compound_ent_value_member(ir_entity *ent, int pos);
+
+/** Sets the path at pos 0 */
+void set_compound_ent_value(ir_entity *ent, ir_node *val, ir_entity *member, int pos);
+
+/** Initializes the entity ent which must be of a one dimensional