object
minizinc_program
Canonical MiniZinc statement validation and source generation.
Availability:
logtalk_load(minizinc(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-11-15
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
(none)
Public predicates
serialize/2
Serializes ground canonical MiniZinc statements to character codes.
Compilation flags:
staticTemplate:
serialize(Statements,Codes)Mode and number of proofs:
serialize(+list(compound),-list(integer)) - one_or_errorExceptions:
Statements is a variable:instantiation_errorAn element
Statement of the list Statements is a variable:instantiation_errorStatements is neither a variable nor a list:type_error(list,Statements)An element
Statement of the list Statements is not a valid statement:domain_error(minizinc_statement,Statement)serialize/4
Serializes statements with origins and returns line(Start, End, Origin) source-map entries.
Compilation flags:
staticTemplate:
serialize(Statements,Origins,Codes,SourceMap)Mode and number of proofs:
serialize(+list(compound),+list,-list(integer),-list(compound)) - one_or_errorExceptions:
Statements or Origins is a variable:instantiation_errorAn element
Statement of the list Statements is a variable:instantiation_errorAn element
Origin of the list Origins is a variable:instantiation_errorStatements is neither a variable nor a list:type_error(list,Statements)Origins is neither a variable nor a list:type_error(list,Origins)An element
Statement of the list Statements is not a valid statement:domain_error(minizinc_statement,Statement)Origins has an element that is neither unknown nor a valid source(File, Start, End) term, or its length differs from Statements:domain_error(minizinc_origins,Origins)valid_identifier/1
True if the argument is a supported, non-reserved MiniZinc identifier atom.
Compilation flags:
staticTemplate:
valid_identifier(Name)Mode and number of proofs:
valid_identifier(@term) - zero_or_oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)