Ignore:
Timestamp:
Mar 3, 2018, 7:54:50 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
0a2168f
Parents:
000ff2c
Message:

updates

File:
1 edited

Legend:

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

    r000ff2c r82c367d  
    11#include <fstream>
    22#include <stdlib>
     3#include <stdbool.h>
    34#include "bench.h"
    45#include "cfa-stack.h"
     
    910        ofstream out = { "/dev/null" };
    1011        int max = 0, val = 42;
    11         stack( int ) si, t;
     12        stack( int ) s, t;
    1213
    13         REPEAT_TIMED( "push_int", N, push( si, val ); )
    14         TIMED( "copy_int", t = si; )
    15         TIMED( "clear_int", clear( si ); )
     14        REPEAT_TIMED( "push_int", N, push( s, val ); )
     15        TIMED( "copy_int", t = s; )
     16        TIMED( "clear_int", clear( s ); )
    1617        REPEAT_TIMED( "pop_int", N, int x = pop( t ); max = max( x, max ); )
    1718        REPEAT_TIMED( "print_int", N/2, out | val | ':' | val | endl; )
    1819
    19         pair( _Bool, char ) max = { (_Bool)0, '\0' }, val = { (_Bool)1, 'a' };
     20        pair( _Bool, char ) max = { (_Bool)false, '\0' }, val = { (_Bool)true, 'a' };
    2021        stack( pair( _Bool, char ) ) s, t;
    2122
Note: See TracChangeset for help on using the changeset viewer.