/swish/pack/sCASP/prolog/scasp/common.pl
AllApplicationManualNameSummaryHelp

  • prolog
    • scasp
      • embed.pl -- Embed sCASP programs in Prolog sources
      • ops.pl
      • input.pl -- Read SASP source code
      • common.pl -- Common predicates used in multiple files
        • predicate/3
        • c_rule/3
        • rule/4
        • negate_functor/2
        • is_dual/1
        • is_global_constraint/2
        • split_functor/3
        • join_functor/3
        • create_unique_functor/3
        • raise_negation/2
        • intern_negation/2
        • operator/3
      • program.pl -- Input program access
      • variables.pl -- Variable storage and access
      • source_ref.pl -- s(CASP) source references
      • compile.pl -- s(ASP) Ungrounded Stable Models Solver
      • predicates.pl -- Basic information about sCASP predicates
      • comp_duals.pl -- Dual rule computation
      • options.pl -- (Command line) option handling for sCASP
      • nmr_check.pl -- Detect OLON rules and construct nmr_check
      • call_graph.pl -- Build the call graph used for NMR check construction and indexing.
      • pr_rules.pl -- Output formatting and printing.
      • modules.pl -- Encode modules
      • solve.pl -- The sCASP solver
      • verbose.pl -- Print goal and stack in Ciao compatible format
      • model.pl -- sCASP model handling
      • output.pl -- Emit sCASP terms
      • stack.pl
      • listing.pl
      • human.pl -- Print s(CASP) output in human language
      • html.pl -- Render s(CASP) justification as HTML
      • html_text.pl -- Switch between HTML and plain text output
      • messages.pl
      • dyncall.pl --
      • swish.pl -- s(CASP) adapter for SWISH
 rule(?Rule:compound, ?Head:compound, ?ID:int, ?Body:list) is det
Convert a rule structure with an id into its head, ID and body, or vice-versa.
Arguments:
Rule- Rule struct.
Head- Rule head.
ID- Rule ID.
Body- Rule body.