# HG changeset patch # User webertj # Date 1156983725 -7200 # Node ID a9034285b96b8a7c4caad99b97e9c7b21e710ae3 # Parent e6fe74eebda36253297a106bfefa536d8a64da7a read_dimacs_cnf_file ignores more comment lines diff -r e6fe74eebda3 -r a9034285b96b src/HOL/Tools/sat_solver.ML --- a/src/HOL/Tools/sat_solver.ML Wed Aug 30 16:27:53 2006 +0200 +++ b/src/HOL/Tools/sat_solver.ML Thu Aug 31 02:22:05 2006 +0200 @@ -283,7 +283,7 @@ fun filter_preamble [] = error "problem line not found in DIMACS CNF file" | filter_preamble (line::lines) = - if String.isPrefix "c " line then + if String.isPrefix "c " line orelse line = "c" then (* ignore comments *) filter_preamble lines else if String.isPrefix "p " line then