source: doc/generic_types/evaluation/cfa-stack.h @ 55b2f5a

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 55b2f5a was 309be81, checked in by Aaron Moss <a3moss@…>, 5 years ago

Started evaluation benchmarks for paper (CFA version doesn't compile yet)

  • Property mode set to 100644
File size: 309 bytes
Line 
1forall(otype T) struct stack_node;
2
3forall(otype T) struct stack {
4        stack_node(T)* head;
5};
6
7forall(otype T) void ?{}(stack(T)* s);
8
9forall(otype T) void ^?{}(stack(T)* s);
10
11forall(otype T) _Bool empty(const stack(T)* s);
12
13forall(otype T) void push(stack(T)* s, T value);
14
15forall(otype T) T pop(stack(T)* s);
Note: See TracBrowser for help on using the repository browser.