Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

postfilter_main.pl

Blame
  • postfilter_main.pl 1.33 KiB
    %% -*- prolog -*-
    %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%
    %% Copyright 2016 Éric Würbel, LSIS-CNRS, AMU
    %%
    %% This file is part of PASP, a possibilistic ASP solver.
    %% PASP 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 3 of
    %% the License, or (at your option) any later version.
    %%
    %% PASP 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 PASP. If not, see
    %% <http://www.gnu.org/licenses/>.
    %%
    %% PASP implements the simulation of possibilistic ASP with
    %% a classical ASP solver.
    %%
    %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
    :-use_module(postfilter).
    :-use_module(paspio).
    
    
    go :-
    	collect_results(user_input,Results),
    	filter_answer_sets(Results,FResults),
    	write_answer_sets(user_output,FResults)
    	.
    
    
    test(Filename) :-
    	open(Filename,read,Stream),
    	collect_results(Stream,Results),
    	filter_answer_sets(Results,FResults),
    	write_answer_sets(user_output,FResults)
    	.