PandA-2024.02
Macros | Typedefs | Functions | Variables
Nussinov.orig.c File Reference
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
Include dependency graph for Nussinov.orig.c:

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]
 

Macro Definition Documentation

◆ CHECK_DEPENDENCES

#define CHECK_DEPENDENCES   false

Definition at line 59 of file Nussinov.orig.c.

◆ debug_N

#define debug_N (   x,
 
)    (N_array[x][y]) /* read secretly without triggering has_been_read */

Definition at line 135 of file Nussinov.orig.c.

Referenced by main().

◆ eassert

#define eassert (   EXPR)    eassert_func(__STRING(EXPR), EXPR)

Definition at line 65 of file Nussinov.orig.c.

Referenced by main().

◆ FOUR_WAY_MAX_WITH_REDUNDANCY

#define FOUR_WAY_MAX_WITH_REDUNDANCY   false

Definition at line 81 of file Nussinov.orig.c.

◆ MAX_N

#define MAX_N (   x,
  y,
 
)    (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().

◆ MAX_N_DECLS

#define MAX_N_DECLS ( )

Definition at line 162 of file Nussinov.orig.c.

Referenced by main().

◆ MAX_N_END

#define MAX_N_END (   x,
 
)

Definition at line 164 of file Nussinov.orig.c.

Referenced by main().

◆ MAX_N_START

#define MAX_N_START (   x,
 
)

Definition at line 163 of file Nussinov.orig.c.

Referenced by main().

◆ N

#define N (   x,
 
)    (eassert(0 <= x && x < size && 0 <= y && y < size), N_array[x][y])

Definition at line 138 of file Nussinov.orig.c.

Referenced by main().

◆ PRINT_SIZE

#define PRINT_SIZE   48 /* print for debugging if not bigger than this */

Definition at line 90 of file Nussinov.orig.c.

Referenced by main().

◆ SCALAR_REPLACEMENT

#define SCALAR_REPLACEMENT   0

Definition at line 55 of file Nussinov.orig.c.

◆ SEED

#define SEED   42

Definition at line 105 of file Nussinov.orig.c.

Referenced by main().

◆ SLOWER

#define SLOWER   (CHECK_DEPENDENCES | VERBOSE)

Definition at line 108 of file Nussinov.orig.c.

◆ VERBOSE

#define VERBOSE   false

Definition at line 93 of file Nussinov.orig.c.

◆ VERBOSE_OUT

#define VERBOSE_OUT   stdout

Definition at line 96 of file Nussinov.orig.c.

Referenced by main().

◆ ZERO_IF_NO_REDUNDANCY

#define ZERO_IF_NO_REDUNDANCY   0

Definition at line 86 of file Nussinov.orig.c.

Referenced by main().

Typedef Documentation

◆ base

typedef int base

Definition at line 120 of file Nussinov.orig.c.

◆ bool

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.

◆ score

typedef int score

Definition at line 121 of file Nussinov.orig.c.

Function Documentation

◆ cur_time()

double cur_time ( void  )

Definition at line 110 of file Nussinov.orig.c.

Referenced by main().

Here is the caller graph for this function:

◆ eassert_func()

void eassert_func ( char *  expr,
bool  value 
)

Definition at line 66 of file Nussinov.orig.c.

References test_panda::stderr.

◆ getint()

int getint ( char *  prompt)

Definition at line 169 of file Nussinov.orig.c.

References result, and test_panda::stderr.

Referenced by main().

Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:

◆ match()

score match ( base  b1,
base  b2 
)
inline

Definition at line 123 of file Nussinov.orig.c.

Referenced by HLSInstructionWriter::declareFunction(), and main().

Here is the caller graph for this function:

◆ max_score()

score max_score ( score  s1,
score  s2 
)
inline

Definition at line 128 of file Nussinov.orig.c.

Variable Documentation

◆ base_print

char* base_print[4] = { "A", "C", "G", "U" }

Definition at line 119 of file Nussinov.orig.c.

Referenced by main().

◆ false

const int false = 0

Definition at line 52 of file Nussinov.orig.c.

◆ N_array

score N_array[MAX_SIZE][MAX_SIZE]

Definition at line 134 of file Nussinov.orig.c.

◆ seq

base seq[MAX_SIZE]

◆ true

const int true = 1

Definition at line 51 of file Nussinov.orig.c.


Generated on Mon Feb 12 2024 13:03:12 for PandA-2024.02 by doxygen 1.8.13