aboutsummaryrefslogtreecommitdiff
path: root/inc/term.h
diff options
context:
space:
mode:
authorMarvin Borner2023-06-07 15:54:59 +0200
committerMarvin Borner2023-06-07 15:54:59 +0200
commit1e728c2455fdc696e260f87d0d523a3de6d43a00 (patch)
treeb270fb80fb1fc6f1ad6256a288fc1417c0704899 /inc/term.h
parentec2be68120e48c75b0acd2bdfb5cc8d931c70cfd (diff)
Parenting is still needed
I was certainly dumb. This reverts commit ec2be68120e48c75b0acd2bdfb5cc8d931c70cfd.
Diffstat (limited to 'inc/term.h')
-rw-r--r--inc/term.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/term.h b/inc/term.h
index 6d5732e..f241fa2 100644
--- a/inc/term.h
+++ b/inc/term.h
@@ -13,6 +13,7 @@ typedef enum { INV, ABS, APP, VAR } term_type_t;
struct term {
term_type_t type;
hash_t hash;
+ struct hashmap *parents;
size_t refs;
size_t depth;
@@ -34,8 +35,8 @@ struct term {
};
struct term *term_new(term_type_t type, hash_t hash, size_t depth);
-void term_destroy_head(struct term *term);
char term_is_beta_redex(struct term *term);
+void term_rehash_parents(struct term *term);
struct term *term_rehash(struct term *term);
struct term *term_rehash_abs(struct term *head, struct term *term);
struct term *term_rehash_app(struct term *head, struct term *lhs,