This module implements an execution mode for CiaoPP as a worker for ciaopp-batch (using ciaopp_batch(db_analysis) for communication).
Note that this tool has to be used with an external timeout because the analysis of some modules could require too much memory or time to be performed. It must be used with Analysis management predicates.
This allows also the script to be incremental, i.e., it does not repeat ciaopp analysis for a module if it has already been done.
If the the user wants the tool to redo an analysis for all files, task_status.pl has to be removed before starting.
Usage:logged_once_port_reify(Goal,Port,OutString,ErrString)
Executes Goal, Port is the state when the predicate finishes (true, fail). Its stdout and stderr are stored in OutString and ErrString respectively.