The Ciao Preprocessor
A Program Analysis, Verification, Debugging, and Optimization ToolThe Computational logic, Languages,
Implementation, and Parallelism (CLIP) Lab
http://www.cliplab.org/
<webmaster@clip.dia.fi.upm.es>
School of CS, T. U. of Madrid (UPM)
IMDEA Software Institute
Implementation, and Parallelism (CLIP) Lab
http://www.cliplab.org/
<webmaster@clip.dia.fi.upm.es>
School of CS, T. U. of Madrid (UPM)
IMDEA Software Institute
REFERENCE MANUAL
The Ciao Documentation Series
http://www.ciaohome.org/
Generated/Printed on: 2017/10/20
Technical Report CLIP 1/06 (first version 8/95).
The Ciao Documentation Series
http://www.ciaohome.org/
Generated/Printed on: 2017/10/20
Technical Report CLIP 1/06 (first version 8/95).
Summary
CiaoPP is the abstract interpretation-based preprocessor of the Ciao multi-paradigm program development environment. CiaoPP can perform a number of program debugging, analysis, and source-to-source transformation tasks on (Ciao) Prolog programs. These tasks include:- Inference of properties of the predicates and literals of the program, including types, modes and other variable instantiation properties, non-failure, determinacy, bounds on computational cost, bounds on sizes of terms in the program, etc.
- Certain kinds of static debugging and verification, finding errors before running the program. This includes checking how programs call system library predicates and also checking the assertions present in the program or in other modules used by the program. Such assertions represent essentially partial specifications of the program.
- Several kinds of source to source program transformations such as program specialization, slicing, partial evaluation of a program, program parallelization (taking granularity control into account), inclusion of run-time tests for assertions which cannot be checked completely at compile-time, etc.
- The abstract model of the program inferred by the analyzers is used in the system to certify that an untrusted mobile code is safe w.r.t. the given policy (i.e., an abstraction-carrying code approach to mobile code safety).
The information generated by analysis, the assertions in the system specifications are all written in the same assertion language, which is in turn also used by the Ciao system documentation generator, lpdoc.
CiaoPP is distributed under the GNU general public license.