mirror of
https://github.com/Z3Prover/z3
synced 2025-06-25 23:33: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:
parent
6017dcace3
commit
c0e0b39a1d
1 changed files with 5 additions and 3 deletions
|
@ -82,9 +82,11 @@ 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
|
||||||
unsigned source_column; // for ACK_BOUND_VAR
|
union {
|
||||||
unsigned var_index; // for ACK_UNBOUND_VAR
|
unsigned source_column; // for ACK_BOUND_VAR
|
||||||
relation_element constant; // for ACK_CONSTANT
|
unsigned var_index; // for ACK_UNBOUND_VAR
|
||||||
|
relation_element constant; // for ACK_CONSTANT
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class instruction_observer : public instruction_block::instruction_observer {
|
class instruction_observer : public instruction_block::instruction_observer {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue