/usr/local/lib/swipl/library/predicate_options.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
      • apply.pl -- Apply predicates on a list
      • lists.pl -- List Manipulation
      • broadcast.pl -- Event service
      • shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
      • option.pl -- Option list processing
      • thread_pool.pl -- Resource bounded thread management
      • gensym.pl -- Generate unique symbols
      • settings.pl -- Setting management
      • arithmetic.pl -- Extensible arithmetic
      • main.pl -- Provide entry point for scripts
      • readutil.pl -- Read utilities
      • operators.pl -- Manage operators
      • pairs.pl -- Operations on key-value lists
      • prolog_source.pl -- Examine Prolog source-files
      • record.pl -- Access compound arguments by name
      • quasi_quotations.pl -- Define Quasi Quotation syntax
      • pure_input.pl -- Pure Input from files and streams
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl -- Ordered set manipulation
      • random.pl -- Random numbers
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl -- Aggregation operators on backtrackable predicates
      • yall.pl -- Lambda expressions
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl -- Binary associations
      • prolog_format.pl -- Analyse format specifications
      • predicate_options.pl -- Access and analyse predicate options
        • predicate_options/3
        • assert_predicate_options/4
        • current_option_arg/2
        • current_predicate_option/3
        • check_predicate_option/3
        • current_predicate_options/3
        • derived_predicate_options/3
        • derived_predicate_options/1
        • retractall_predicate_options/0
        • check_predicate_options/0
        • derive_predicate_options/0
        • check_predicate_options/1
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • pprint.pl -- Pretty Print Prolog terms
      • atom.pl -- Operations on atoms
      • modules.pl -- Module utility predicates
      • occurs.pl -- Finding and counting sub-terms
      • prolog_xref.pl -- Prolog cross-referencer data collection
      • prolog_colour.pl -- Prolog syntax colouring support.
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl -- Graph manipulation library
      • url.pl
      • www_browser.pl -- Open a URL in the users browser
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl -- Run GIT commands
      • rbtrees.pl -- Red black trees
      • dif.pl -- The dif/2 constraint
      • charsio.pl -- I/O on Lists of Character Codes
      • prolog_stack.pl -- Examine the Prolog stack
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl -- Well Founded Semantics interface
      • dialect.pl -- Support multiple Prolog dialects
      • prolog_code.pl -- Utilities for reasoning about code
      • sort.pl
      • iostream.pl -- Utilities to deal with streams
      • dicts.pl -- Dict utilities
      • varnumbers.pl -- Utilities for numbered terms
      • base32.pl -- Base32 encoding and decoding
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl -- Co-Logic Programming
      • date.pl
      • heaps.pl -- heaps/priority queues
      • statistics.pl
      • terms.pl -- Term manipulation
      • utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
      • when.pl -- Conditional coroutining
      • backcomp.pl -- Backward compatibility
      • thread.pl
      • optparse.pl -- command line parsing
      • listing.pl -- List programs and pretty print clauses
      • threadutil.pl -- Interactive thread utilities
      • hashtable.pl
      • portray_text.pl
      • prolog_debug.pl -- User level debugging tools
      • rwlocks.pl -- Read/write locks
      • writef.pl -- Old-style formatted write
      • prolog_autoload.pl -- Autoload all dependencies
      • check.pl -- Consistency checking
      • shell.pl
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • system.pl
      • strings.pl -- String utilities
      • ctypes.pl -- Character code classification
      • exceptions.pl
      • edit.pl -- Editor interface
      • ansi_term.pl
      • prolog_wrap.pl -- Wrapping predicates
      • make.pl
      • prolog_codewalk.pl -- Prolog code walker
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • persistency.pl
      • prolog_coverage.pl -- Coverage analysis tool
      • quintus.pl
      • zip.pl -- Access resource ZIP archives
      • qsave.pl
      • help.pl
      • files.pl
      • nb_set.pl -- Non-backtrackable sets
      • explain.pl -- Describe Prolog Terms
      • prolog_trace.pl
      • streams.pl -- Manage Prolog streams
      • fastrw.pl
      • prolog_metainference.pl
      • increval.pl
      • tables.pl
      • prolog_history.pl -- Per-directory persistent commandline history
      • prolog_config.pl
      • oset.pl
      • macros.pl
      • prolog_profile.pl -- Execution profiler
      • intercept.pl
 check_predicate_options is det
Analyse loaded program for erroneous options. This predicate decompiles the current program and searches for calls to predicates that process options. For each option list, it validates whether the provided options are supported and validates the argument type. This predicate performs partial dataflow analysis to track option-lists inside a clause.
See also
- derive_predicate_options/0 can be used to derive declarations for predicates that pass options. This predicate should normally be called before check_predicate_options/0.