scasp

Prolog files

call_graph.pl  -- Build the call graph used for NMR check construction and indexing.Show source
a/4Arc in the call graph from Head to Goal.Source
ar/2Associate an arc ID with a list of rule IDs.Source
build_call_graph/2Build and assert the call graph.Source
destroy_call_graph/0Retract the assertions for the call graph.Source
common.pl  -- Common predicates used in multiple filesShow source
comp_duals.pl  -- Dual rule computationShow source
comp_duals/0Compute rules for the negations of positive literals (dual rules), even if there are no clauses for the positive literal (negation will be a fact).Source
comp_duals3/2Compute the dual for a single positive literal.Source
define_forall/3If BodyVars is empty, just return the original goal.Source
compile.pl  -- s(ASP) Ungrounded Stable Models SolverShow source
scasp_compile/2Create an sCASP program from Terms.Source
scasp_compile_query/3Source
scasp_load/2Load the files from Sources.Source
scasp_query/1True when Query is the (last) sCASP query that is part of the program.Source
scasp_query/3True when Query is the s(CASP) query as a list that includes the NMR check if required.Source
dyncall.pl  -- Show source
embed.pl  -- Embed sCASP programs in Prolog sourcesShow source
gxref_called/2Hook into gxref/0 that may extend the notion of predicates being called by some infrastructure.Source
-/1sCASP classical negation.Source
begin_scasp/1Start an embedded sCASP program.Source
begin_scasp/2Start an embedded sCASP program.Source
end_scasp/0Close begin_scasp/1,2.Source
not/1sCASP NaF negation.Source
scasp_call/1Solve an sCASP goal from the interactive toplevel.Source
scasp_justification/2Justification for the current sCASP answer.Source
scasp_listing/2List the transformed program for Unit.Source
scasp_model/1True when Model represents the current set of true and false literals.Source
scasp_model/2True when Model represents the current set of true and false literals.Source
scasp_stack/1True when Stack represents the justification of the current sCASP answer.Source
html.pl  -- Render s(CASP) justification as HTMLShow source
html_bindings/4Print the variable bindings.Source
html_justification_tree/4Convert the tree to HTML.Source
html_model/4Emit the model as HTML terms.Source
html_predicate/4Source
html_program/1Source
html_program/3Emit the current program in human format using HTML.Source
html_query/4Emit the query.Source
html_rule/4Source
html_text.pl  -- Switch between HTML and plain text outputShow source
human.pl  -- Print s(CASP) output in human languageShow source
human_justification_tree/2Print Tree to current_output in human representation.Source
human_model/2Source
human_predicate/2Source
human_query/2Source
human_rule/2Source
input.pl  -- Read SASP source codeShow source
load_source_files/1Given a list of source files, read, tokenize and parse them, merging their output into a single list of statements.Source
sasp_read/2Read File into a list of ASP statements.Source
scasp_load_terms/2Perform the load_source_files/1 preparation step from a list of Prolog terms.Source
json.pl  -- s(CASP) JSON I/OShow source
scasp_results_json/2Generate a JSON document from the results of the s(CASP) solver.Source
listing.plShow source
scasp_code_section_title/3Source
scasp_portray_program/1Output pretty print of the program + dual rules + nmr-checks.Source
messages.plShow source
model.pl  -- sCASP model handlingShow source
modules.pl  -- Encode modulesShow source
nmr_check.pl  -- Detect OLON rules and construct nmr_checkShow source
ops.plShow source
options.pl  -- (Command line) option handling for sCASPShow source
scasp_help/0Print command line option help.Source
scasp_opt_help/2Allow reusing scasp option processing.Source
scasp_opt_meta/2Allow reusing scasp option processing.Source
scasp_opt_type/3Allow reusing scasp option processing.Source
scasp_parse_args/3Select from the list of arguments in Args which are the user-options, Options and which are the program files, Sources.Source
scasp_set_options/1Set Prolog flags that control the solver from Options.Source
scasp_set_options/2Set Prolog flags that control the solver from Options.Source
scasp_version/1print the current version of s(CASP).Source
output.pl  -- Emit sCASP termsShow source
connector/3Get an ASCII or Unicode connector string with the claimed Semantics.Source
human_expression/3If there is a human print rule for Atom, return a list of format actions as Actions.Source
inline_constraints/2Get constraints on variables notated as Var | {Constraints} and use assigned variable names.Source
ovar_analyze_term/1Analyze variables in an output term.Source
ovar_analyze_term/2Analyze variables in an output term.Source
ovar_clean/1Delete all attributes added by ovar_analyze_term/1.Source
ovar_is_singleton/1True when Var is a singleton variable.Source
ovar_set_bindings/1Given Bindings as a list of Name=Var, set the names of the variables.Source
ovar_set_name/2Set the name of Var to Name.Source
ovar_var_name/2True when var is not a singleton and has the assigned name.Source
print_model_term/2Print a model element to the terminal.Source
pr_rules.pl  -- Output formatting and printing.Show source
predicates.pl  -- Basic information about sCASP predicatesShow source
program.pl  -- Input program accessShow source
solve.pl  -- The sCASP solverShow source
solve/4Solve the list of sub-goals Goal where StackIn is the list of goals already visited and returns in StackOut the list of goals visited to prove the sub-goals and in Model the model that supports the sub-goals.Source
source_ref.pl  -- s(CASP) source referencesShow source
stack.plShow source
swish.pl  -- s(CASP) adapter for SWISHShow source
post_context/1Called before the other context extraction.Source
post_context/3Bind Var with the context information that belongs to Name.Source
variables.pl  -- Variable storage and accessShow source
body_vars/3Get the body variables (variables used in the body but not in the head) for a clause.Source
is_var/1Test an entry to see if it's a variable (the first non-underscore is an upper-case letter.Source
is_var/2Test an entry to see if it's a variable (the first non-underscore is an upper-case letter.Source
revar/3If Term is a term that contains atoms using variable syntax ([A-Z].*), VarTerm is a copy of Term with all such atoms replaced by variables.Source
var_list/2Get a list of N variables, each of which is different.Source
verbose.pl  -- Print goal and stack in Ciao compatible formatShow source