PandA-2024.02
|
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | SCALAR_REPLACEMENT 0 |
#define | CHECK_DEPENDENCES false |
#define | eassert(EXPR) eassert_func(__STRING(EXPR), EXPR) |
#define | FOUR_WAY_MAX_WITH_REDUNDANCY false |
#define | ZERO_IF_NO_REDUNDANCY 0 |
#define | PRINT_SIZE 48 /* print for debugging if not bigger than this */ |
#define | VERBOSE false |
#define | VERBOSE_OUT stdout |
#define | SEED 42 |
#define | SLOWER (CHECK_DEPENDENCES | VERBOSE) |
#define | debug_N(x, y) (N_array[x][y]) /* read secretly without triggering has_been_read */ |
#define | N(x, y) (eassert(0 <= x && x < size && 0 <= y && y < size), N_array[x][y]) |
#define | MAX_N(x, y, v) (eassert(0 <= x && x < size && 0 <= y && y < size), ((N_array[x][y]) = max_score(N_array[x][y], v))) |
#define | MAX_N_DECLS() |
#define | MAX_N_START(x, y) |
#define | MAX_N_END(x, y) |
Typedefs | |
typedef int | bool |
This version is stamped on May 10, 2016. More... | |
typedef int | base |
typedef int | score |
Functions | |
void | eassert_func (char *expr, bool value) |
double | cur_time (void) |
score | match (base b1, base b2) |
score | max_score (score s1, score s2) |
int | getint (char *prompt) |
int | main (int argc, char *argv[]) |
Variables | |
const int | true = 1 |
const int | false = 0 |
char * | base_print [4] = { "A", "C", "G", "U" } |
base | seq [MAX_SIZE] |
score | N_array [MAX_SIZE][MAX_SIZE] |
#define CHECK_DEPENDENCES false |
Definition at line 59 of file Nussinov.orig.c.
Definition at line 135 of file Nussinov.orig.c.
Referenced by main().
#define eassert | ( | EXPR | ) | eassert_func(__STRING(EXPR), EXPR) |
Definition at line 65 of file Nussinov.orig.c.
Referenced by main().
#define FOUR_WAY_MAX_WITH_REDUNDANCY false |
Definition at line 81 of file Nussinov.orig.c.
#define MAX_N | ( | x, | |
y, | |||
v | |||
) | (eassert(0 <= x && x < size && 0 <= y && y < size), ((N_array[x][y]) = max_score(N_array[x][y], v))) |
Definition at line 145 of file Nussinov.orig.c.
Referenced by main().
#define MAX_N_DECLS | ( | ) |
Definition at line 162 of file Nussinov.orig.c.
Referenced by main().
#define MAX_N_END | ( | x, | |
y | |||
) |
Definition at line 164 of file Nussinov.orig.c.
Referenced by main().
#define MAX_N_START | ( | x, | |
y | |||
) |
Definition at line 163 of file Nussinov.orig.c.
Referenced by main().
Definition at line 138 of file Nussinov.orig.c.
Referenced by main().
#define PRINT_SIZE 48 /* print for debugging if not bigger than this */ |
Definition at line 90 of file Nussinov.orig.c.
Referenced by main().
#define SCALAR_REPLACEMENT 0 |
Definition at line 55 of file Nussinov.orig.c.
#define SEED 42 |
Definition at line 105 of file Nussinov.orig.c.
Referenced by main().
#define SLOWER (CHECK_DEPENDENCES | VERBOSE) |
Definition at line 108 of file Nussinov.orig.c.
#define VERBOSE false |
Definition at line 93 of file Nussinov.orig.c.
#define VERBOSE_OUT stdout |
Definition at line 96 of file Nussinov.orig.c.
Referenced by main().
#define ZERO_IF_NO_REDUNDANCY 0 |
Definition at line 86 of file Nussinov.orig.c.
Referenced by main().
typedef int base |
Definition at line 120 of file Nussinov.orig.c.
typedef int bool |
This version is stamped on May 10, 2016.
Contact: Louis-Noel Pouchet <pouchet.ohio-state.edu> Tomofumi Yuki <tomofumi.yuki.fr>
Web address: http://polybench.sourceforge.net
Definition at line 50 of file Nussinov.orig.c.
typedef int score |
Definition at line 121 of file Nussinov.orig.c.
double cur_time | ( | void | ) |
Definition at line 110 of file Nussinov.orig.c.
Referenced by main().
void eassert_func | ( | char * | expr, |
bool | value | ||
) |
Definition at line 66 of file Nussinov.orig.c.
References test_panda::stderr.
int getint | ( | char * | prompt | ) |
Definition at line 169 of file Nussinov.orig.c.
References result, and test_panda::stderr.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 194 of file Nussinov.orig.c.
References base_print, cur_time(), debug_N, eassert, getint(), k, match(), MAX_N, MAX_N_DECLS, MAX_N_END, MAX_N_START, MAX_SIZE, N, PRINT_SIZE, SEED, seq, test_panda::stderr, VERBOSE_OUT, and ZERO_IF_NO_REDUNDANCY.
Definition at line 123 of file Nussinov.orig.c.
Referenced by HLSInstructionWriter::declareFunction(), and main().
Definition at line 128 of file Nussinov.orig.c.
char* base_print[4] = { "A", "C", "G", "U" } |
Definition at line 119 of file Nussinov.orig.c.
Referenced by main().
const int false = 0 |
Definition at line 52 of file Nussinov.orig.c.
Definition at line 134 of file Nussinov.orig.c.
Definition at line 133 of file Nussinov.orig.c.
Referenced by __attribute__(), init_array(), main(), and chordal_coloring_register::RegisterBinding().
const int true = 1 |
Definition at line 51 of file Nussinov.orig.c.