Created
January 28, 2015 00:36
-
-
Save jepler/baf8e7da47f24e50bc2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cbmc cmbc.c ref.c jepler.c -DBUFSIZE=1 -DCMBC | |
#include "nibble.h" | |
#include <assert.h> | |
#include <inttypes.h> | |
#include <string.h> | |
uint64_t nondet_u64(); | |
void main() { | |
setup_jepler(); | |
uint64_t ref[BUFSIZE], res[BUFSIZE]; | |
int i; | |
for(i=0; i<BUFSIZE; i++) ref[i] = res[i] = nondet_u64(); | |
nibble_sort_ref(ref); | |
nibble_sort_jepler(res); | |
for(i=0; i<BUFSIZE; i++) assert(ref[i] == res[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment