Ignore:
File:
1 edited

Legend:

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

    r28bc8c8 r79d4186  
    33#include "cfa-pair.h"
    44
    5 int main() {
     5int main( int argc, char * argv[] ) {
    66        int max = 0, val = 42;
    77        stack( int ) si, ti;
    88
    99        REPEAT_TIMED( "push_int", N, push( si, val ); )
    10         TIMED( "copy_int", ti{ si }; )
     10        TIMED( "copy_int", ti = si; )
    1111        TIMED( "clear_int", clear( si ); )
    1212        REPEAT_TIMED( "pop_int", N,
    1313                int x = pop( ti ); if ( x > max ) max = x; )
    1414
    15         pair( short, char ) max = { 0h, '\0' }, val = { 42h, 'a' };
    16         stack( pair( short, char ) ) sp, tp;
     15        pair( _Bool, char ) max = { (_Bool)0 /***/, '\0' }, val = { (_Bool)1 /***/, 'a' };
     16        stack( pair( _Bool, char ) ) sp, tp;
    1717
    1818        REPEAT_TIMED( "push_pair", N, push( sp, val ); )
    19         TIMED( "copy_pair", tp{ sp }; )
     19        TIMED( "copy_pair", tp = sp; )
    2020        TIMED( "clear_pair", clear( sp ); )
    2121        REPEAT_TIMED( "pop_pair", N,
    22                 pair(short, char) x = pop( tp ); if ( x > max ) max = x; )
     22                pair(_Bool, char) x = pop( tp ); if ( x > max ) max = x; )
    2323}
Note: See TracChangeset for help on using the changeset viewer.