-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·37 lines (26 loc) · 1.14 KB
/
run.sh
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
####################################################
# README
# Given a board with cells, some of those contains a number between [0..3].
# The number inside of the cell represents the total of its adjacent edges that must be set on true, not one less, nor one more.
# The problem consists on wrapping the cells of the board with cicles,
# but ensuring that the cicles do not overlap and the cell constraints are respected.
# The code provided to draw the solution (if found by the solver) has been included in the file solveWithSAT.pl.
# In order to change the instance of problem to be solved, it is necessary to modify the first line of solveWithSAT.pl
# with the desired filename inside the braquets of :-include().
# In order to check the written clauses, it is necessary to set the option of line 3, symbolicOutput to 1.
if [[ -a graph.ps ]]
then
echo "Cleaning files from other executions..."
make clean
fi
echo "Calling Makefile to compile solveWithSAT.pl"
make
echo 'Running the executable file "solveWithSAT"'
./solveWithSAT
echo "Opening the result of the execution"
#OSX:
open graph.ps
#gnome
#gnome-open graph.ps &
#kde
#okular graph.ps &