codes-conc-addon.h 866 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * Copyright (C) 2017 University of Chicago.
 * See COPYRIGHT notice in top-level directory.
 *
 */

#ifndef CODES_CONC_ADDON_H
#define CODES_CONC_ADDON_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef USE_CONC
#include <ncptl/ncptl.h> 
#endif

#define MAX_CONC_ARGC 20

typedef struct conc_bench_param conc_bench_param;

/* implementation structure */
struct codes_conceptual_bench {
    char *program_name; /* name of the conceptual program */
    int (*conceptual_main)(int* argc, char *argv[]);
};

struct conc_bench_param {
    char *conc_program;
    int conc_argc;
    char *conc_argv[MAX_CONC_ARGC];
};


int codes_conc_bench_load(
        const char* program,
        int* argc, 
        const char *argv[]);


void codes_conceptual_add_bench(struct codes_conceptual_bench const * method);


#ifdef __cplusplus
}
#endif

#endif /* CODES_CONC_ADDON_H */