From 6ea9939e0610a809f6f47d13ec68df00d1ca0afc Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 16 Oct 2020 16:55:14 -0400 Subject: Move the DIS benchmarks up a directory and update hardcoded paths Note that this repo does not attempt to keep a copy of the original DIS benchmark distributions. UNC real-time has another repo for that. --- dis/original/Transitive/transitive.c | 131 ----------------------------------- 1 file changed, 131 deletions(-) delete mode 100644 dis/original/Transitive/transitive.c (limited to 'dis/original/Transitive/transitive.c') diff --git a/dis/original/Transitive/transitive.c b/dis/original/Transitive/transitive.c deleted file mode 100644 index 5fa52e8..0000000 --- a/dis/original/Transitive/transitive.c +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Sample code for the DIS Transitive Stressmark - * - * This source code is the completely correct source code based on - * the example codes provided by Atlantic Aerospace Division, Titan - * Systems Corporation, 2000. - * - * If you just compile and generate the executables from this source - * code, this code would be enough. However, if you wish to get a complete - * understanding of this stressmark, it is strongly suggested that you - * read the Benchmark Analysis and Specifications Document Version 1.0 - * before going on since the detailed comments are given in this documents. - * the comments are not repeated here. - * - * CHANGELOG: - * Joshua Bakita, 05/30/2020: Fixed out-of-bounds randInt call - */ - -#include -#include -#include -#include -#include "DISstressmarkRNG.h" -#include "extra.h" - -#define MIN_VERTICES 8 -#define MAX_VERTICES 16384 -#define MIN_EDGES 0 -#define MAX_EDGES 268435456 -#define MIN_SEED -2147483647 -#define MAX_SEED -1 -#define NO_PATH 2147483647 - -#define MIN_EDGS 0 -#define MAX_EDGE 255 - -/* - * main() - */ - -int main(int argc, char** argv){ - unsigned int *din, *dout; - unsigned int n; - unsigned int m; - unsigned int i, j, k; - int seed; - - time_t startTime; - unsigned int sum; - - fscanf(stdin,"%d %d %d", &n, &m, &seed); - - assert((n >= MIN_VERTICES) && (n <= MAX_VERTICES)); - assert((m >= MIN_EDGES) && (m <= MAX_EDGES)); - assert (m <= n*n); - assert ((seed >= MIN_SEED) && (seed <= MAX_SEED)); - - if ((din = (unsigned int *)malloc(n*n*sizeof(unsigned int))) == NULL) - return (-1); - if ((dout = (unsigned int *)malloc(n*n*sizeof(unsigned int))) == NULL) - return (-1); - - for (i=0; i