-
Notifications
You must be signed in to change notification settings - Fork 0
/
solver.h
66 lines (46 loc) · 2 KB
/
solver.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* MARCH Satisfiability Solver
Copyright (C) 2001-2004 M. Dufour, M. Heule, J. van Zwieten
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __SOLVER_H__
#define __SOLVER_H__
#include "common.h"
int initSolver();
void disposeSolver();
void scaleTimeAssignments();
void centerPtrs();
void outputUnsat();
void clearTernaryImpReduction();
int verifySolution();
int checkSolution();
int super_linear_branching();
int distribution_branching();
int march_solve_rec();
void backtrack();
int get_direction( int nrval );
void printSolution( int orignrofvars );
int DPLL_add_binary_implications( int lit1, int lit2 );
int DPLL_propagate_binary_equivalence( const int bieq );
void MainDead( int *__rstackp );
int IFIUP( const int nrval, const int forced_or_branch_flag );
inline int DPLL_update_datastructures( const int nrval );
inline int DPLL_fix_ternary_implications ( const int nrval );
int DPLL_fix_binary_implications_rec( const int nrval );
inline void swap_ternary_implications( const int nrval, const int lit1, const int lit2 );
void remove_satisfied_implications( const int nrval );
void restore_implication_arrays ( const int nrval );
void fillBinaryImpOne();
void printCv();
void printConflict();
#endif