Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 3279920b authored by Sylvain Soliman's avatar Sylvain Soliman

Stop looping if glucose.py exists but is in error

parent 9e076803
......@@ -72,13 +72,18 @@ add_solution(File, Solution) :-
% @arg File Name of the cnf file in DIMACS format
% @arg Solution List of positive/negative integers for literals, or []
run_sat(File, Solution) :-
run_sat(File, no, [Line]),
run_sat(File, no, Line),
(
Line = 'UNSAT'
Line = []
->
throw(error(process_error('glucose.py', 'Unknown error')))
;
Line = ['UNSAT']
->
Solution = []
;
split_string(Line, " \n", " \n", CleanStrings),
Line = [LLine],
split_string(LLine, " \n", " \n", CleanStrings),
append(RealClean, ["0"], CleanStrings),
maplist(number_string, Solution, RealClean)
).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment