.. index:: single: asp_problem_protocol
.. _asp_problem_protocol/0:

.. rst-class:: right

**protocol**

``asp_problem_protocol``
========================

Protocol for ordered, ground ASP statement providers.

| **Availability:** 
|    ``logtalk_load(asp(loader))``

| **Author:** Paulo Moura
| **Version:** 1:0:0
| **Date:** 2026-11-09

| **Compilation flags:**
|    ``static``


| **Dependencies:**
|   (none)


| **Remarks:**
|    (none)

| **Inherited public predicates:**
|    (none)

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

.. index:: asp_statement/2
.. _asp_problem_protocol/0::asp_statement/2:

``asp_statement/2``
^^^^^^^^^^^^^^^^^^^

Enumerates, by backtracking, canonical ASP statements in source order and their origins.

| **Compilation flags:**
|    ``static``

| **Template:**
|    ``asp_statement(Statement,Origin)``
| **Mode and number of proofs:**
|    ``asp_statement(-compound,-term)`` - ``zero_or_more``

| **Remarks:**

    - Origin: Either ``source(File, Start, End)`` or ``unknown``.


------------

Protected predicates
--------------------

(none)

Private predicates
------------------

(none)

Operators
---------

(none)

