diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-05-13 11:57:45 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-05-13 11:57:45 +0200 |
commit | 3db72104ad5664ed320253a342e1b26ad2f7da28 (patch) | |
tree | 7d1424c3b66d6b89a090f389ec5de4f73f0a9f3b /test/monniaux/lustre-convertible-en-2cgc | |
parent | b1b7a68222ada09b8dfaf9a5dbe2306b5fc44684 (diff) | |
download | compcert-kvx-3db72104ad5664ed320253a342e1b26ad2f7da28.tar.gz compcert-kvx-3db72104ad5664ed320253a342e1b26ad2f7da28.zip |
new example + moved random number generator to common files
Diffstat (limited to 'test/monniaux/lustre-convertible-en-2cgc')
-rw-r--r-- | test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c b/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c index 9aa52cad..9646b39f 100644 --- a/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c +++ b/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c @@ -8,6 +8,7 @@ #include <stdint.h> #include "convertible_main.h" #include "../clock.h" +#include "../dm_random.c" /* MACROS DEFINITIONS ****************/ #ifndef TT @@ -23,12 +24,6 @@ /* set this macro for testing output clocks */ #endif -static uint32_t dm_random_uint32(void) { - static uint32_t current=UINT32_C(0xDEADBEEF); - current = ((uint64_t) current << 6) % UINT32_C(4294967291); - return current; -} - /* Standard Input procedures **************/ _boolean _get_bool(char* n){ return dm_random_uint32() & 1; |