Ignore:
Timestamp:
Mar 8, 2018, 1:37:46 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
28bc8c8
Parents:
f1f8e55
Message:

Update all benchmarks to match new CFA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/general/evaluation/cfa-stack.c

    rf1f8e55 rfb2ce27  
    3131
    3232forall(otype T) void push( stack(T) & s, T value ) with( s ) {
    33         stack_node(T)* new_node = malloc();
    34         (*new_node){ value, head };
    35         head = new_node;
     33        stack_node(T)* n = malloc();
     34        (*n){ value, head };
     35        head = n;
    3636}
    3737
     
    3939        stack_node(T) * n = head;
    4040        head = n->next;
    41         T v = n->value;
     41        T x = n->value;
    4242        ^(*n){};
    4343        free( n );
    44         return v;
     44        return x;
    4545}
    4646
     
    5252                free(crnt);
    5353        }
    54         s.head = 0;
     54        head = 0;
    5555}
Note: See TracChangeset for help on using the changeset viewer.