object

smt_program

Canonical SMT-LIB 2 statement validation, source generation, and response-producing statement classification.

Availability:
logtalk_load(smt(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-11-14
Compilation flags:
static, context_switching_calls
Uses:
Remarks:
(none)
Inherited public predicates:
(none)

Public predicates

serialize/2

Serializes ground canonical SMT-LIB 2 statements to character codes, auto-declaring :produce-models and :produce-unsat-cores options when required and not already set by the caller.

Compilation flags:
static
Template:
serialize(Statements,Codes)
Mode and number of proofs:
serialize(+list,-list(code)) - one_or_error
Exceptions:
Statements is a partial list or a list with an element Statement which is a variable:
instantiation_error
Statements is neither a partial list nor a list:
type_error(list,Statements)
An element Statement of the list Statements is not a valid statement:
domain_error(smt_statement,Statement)

serialize/4

Serializes statements with origins and returns line(Start, End, Origin) source-map entries; auto-declared option statements use the unknown origin.

Compilation flags:
static
Template:
serialize(Statements,Origins,Codes,SourceMap)
Mode and number of proofs:
serialize(+list,+list,-list(code),-list(compound)) - one_or_error
Exceptions:
Statements is a partial list or a list with an element Statement which is a variable:
instantiation_error
Statements is neither a partial list nor a list:
type_error(list,Statements)
An element Statement of the list Statements is not a valid statement:
domain_error(smt_statement,Statement)
Origins is a partial list or a list with an element Origin which is a variable:
instantiation_error
Origins is neither a partial list nor a list:
type_error(list,Origins)
An element of the list Origins is neither unknown nor a valid source(File, Start, End) term, or its length differs from Statements:
domain_error(smt_origins,Origins)

response_producing/1

Succeeds when Statement is a response-producing command, including get-objectives.

Compilation flags:
static
Template:
response_producing(Statement)
Mode and number of proofs:
response_producing(+compound) - zero_or_one

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)