3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-26 15:53:41 +00:00

Datalog: save memory in the compiler by using a union

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2015-02-02 10:34:19 +00:00
parent 6017dcace3
commit c0e0b39a1d

View file

@ -82,10 +82,12 @@ namespace datalog {
relation_sort domain; // domain of the column relation_sort domain; // domain of the column
assembling_column_kind kind; // "instruction" tag assembling_column_kind kind; // "instruction" tag
union {
unsigned source_column; // for ACK_BOUND_VAR unsigned source_column; // for ACK_BOUND_VAR
unsigned var_index; // for ACK_UNBOUND_VAR unsigned var_index; // for ACK_UNBOUND_VAR
relation_element constant; // for ACK_CONSTANT relation_element constant; // for ACK_CONSTANT
}; };
};
class instruction_observer : public instruction_block::instruction_observer { class instruction_observer : public instruction_block::instruction_observer {
compiler & m_parent; compiler & m_parent;