Ignore:
Timestamp:
Apr 10, 2023, 9:25:28 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
a1b41e3
Parents:
372b6d3 (diff), a085470 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/benchmarks/list/observation.c

    r372b6d3 r6adeb5f  
    2424}
    2525
     26#ifdef BOBS_SHOW_ADDRESSES
     27#define SNAP \
     28    void * userAddr = bobs_getCurrentLoc(); \
     29    int userValue = bobs_getCurrentVal();
     30#define SHOW(pfx, sfx) \
     31    printf(" " pfx "%d@%p" sfx, userValue, userAddr);
     32#else
     33#define SNAP \
     34    int userValue = bobs_getCurrentVal();
     35#define SHOW(pfx, sfx) \
     36    printf(" " pfx "%d" sfx, userValue);
     37#endif
    2638
    2739static void printPreds(unsigned int leash) {
     
    3244        return;
    3345    }
    34     int userValue = bobs_getCurrent();
     46    SNAP
    3547    bobs_movePrev();
    3648    printPreds(leash - 1);
    37     printf(" %d", userValue);
     49    SHOW("", "")
    3850}
    3951static void printSuccs(unsigned int leash) {
     
    4456        return;
    4557    }
    46     int userValue = bobs_getCurrent();
    47     printf(" %d", userValue);
     58    SNAP
     59    SHOW("", "")
    4860    bobs_moveNext();
    4961    printSuccs(leash - 1);
     
    5971
    6072    bobs_seek(here);
    61     int userValue = bobs_getCurrent();
    62     printf(" <%d>", userValue);
     73    SNAP
     74    SHOW("<", ">")
    6375
    6476    bobs_moveNext();
Note: See TracChangeset for help on using the changeset viewer.