mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
Start expression simplification
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "tree_node.h"
|
||||
#include "tree_pool.h"
|
||||
#include "expression_node.h"
|
||||
#include "tree_reference.h"
|
||||
#include <stdio.h>
|
||||
|
||||
// Node operations
|
||||
@@ -175,3 +175,9 @@ bool TreeNode::hasSibling(const TreeNode * e) const {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void TreeNode::replaceWithAllocationFailure() {
|
||||
TreeRef t(this);
|
||||
t.replaceWithAllocationFailure();
|
||||
// TODO: OK to change the memory while executing from it, even though we know it will stop execution just after ?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user