38 lines
838 B
C++
38 lines
838 B
C++
#ifndef MODELBLOCKS
|
|
#define MODELBLOCKS
|
|
#include "ModelNormalization.hh"
|
|
|
|
|
|
typedef struct block_result
|
|
{
|
|
int size, n_sets;
|
|
int *vertices;
|
|
int *sets_s, *sets_f;
|
|
int *order, *ordered;
|
|
}
|
|
block_result_t;
|
|
|
|
|
|
|
|
class Blocks
|
|
{
|
|
public:
|
|
Blocks();
|
|
~Blocks();
|
|
void block_depth_search(int v);
|
|
block_result_t* sc(Equation_set *g);
|
|
void block_result_free(block_result_t *r);
|
|
void block_result_print(block_result_t *r);
|
|
Equation_set* Equation_gr_IM( int n , bool* IM);
|
|
void Print_Equation_gr(Equation_set* Equation);
|
|
void block_result_to_IM(block_result_t *r,bool* IM,int prologue, int n,simple* Index_Equ_IM,simple* Index_Var_IM);
|
|
Equation_vertex *vertices;
|
|
int *block_vertices, *sets_s, *sets_f;
|
|
int *block_stack, *sp, tos;
|
|
int *visit_nos, *low_link_nos;
|
|
int n_visited, n_written, n_sets;
|
|
int *pos_sc;
|
|
};
|
|
#endif
|
|
|