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
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_model_term/4Emit a model term.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
emit_as/4Causes all emit//1 calls to either behave as html//1 or convert the commands to output for print_message_lines/3.Source
emitting_as/1Current emit mode.Source
fixup_layout/2Fixup layout instructions in the token list.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
listing.plShow source
messages.plShow source
scasp_lang/1True when Lang is the language used for messages and justifications.Source
model.pl  -- sCASP model handlingShow source
canonical_model/2Source
print_model/2Print the model in aligned columns.Source
unqualify_model/3Restore the model relation to modules.Source
modules.pl  -- Encode modulesShow source
encoded_module_term/2Source
model_term_module/2Source
scasp_encoded_module_term/2Map an explicit Prolog module qualification into one that is encoded in the functor name.Source
unqualify_model_term/3Source
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
clp_builtin/1Success if Goal is a builtin constraint predicate.Source
clp_interval/1Success if Goal is a builtin constraint predicate to extract interval limits.Source
prolog_builtin/1Success if Goal is a builtin prolog predicate (the compiler introduced its dual).Source
scasp_compiled/1True when Head is part of the transformed representation.Source
table_predicate/1Success if Goal is defined as a tabled predicate with the directive :- table pred/n..Source
user_predicate/1Success if Goal is a user predicate.Source
program.pl  -- Input program accessShow source
assert_nmr_check/1Assert the NMR check.Source
assert_program/1Get rules, initial query and called predicates and assert them for easy access.Source
assert_rule/1Assert a program rule.Source
defined_nmr_check/1Dynamic predicate for the list of NMR sub-checks.Source
defined_predicates/1Dynamic predicate for the list of predicate symbols defined in the input program.Source
defined_query/2Dynamic predicate for query.Source
defined_rule/4Dynamic predicate for asserted rules.Source
destroy_program/0Remove all asserted predicates to allow multiple funs with different programs.Source
replace_prefix/4Source
reserved_prefix/1Define reserved prefixes for predicates and compound terms.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
scasp_dynamic_clause_position/2True when Pos is the stream position is which the source code for the dynamic clause referenced by Ref was read.Source
stack.plShow source
justification_tree/3Process Stack as produced by solve/4 into a justification tree.Source
print_justification_tree/1Print the justification tree as returned by justification_tree/3 or scasp_justification/2.Source
print_justification_tree/2Print the justification tree as returned by justification_tree/3 or scasp_justification/2.Source
unqualify_justitication_tree/3Unqualify the nodes in TreeIn, turning the nodes qualified to module Module into plain nodes.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
verbose.pl  -- Print goal and stack in Ciao compatible formatShow source