The Daikon Invariant Detector User Manual_ 5. Daikon output

The Daikon Invariant Detector User Manual_ 5. Daikon output...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
[ < ] [ > ] [ << ] [ Up ] [ >> ] [ Top ] [ Contents ] [ Index ] [ ? ] 5. Daikon output Daikon outputs the invariants that it discovers in textual form to your terminal. This chapter describes how to interpret those invariants — in other words, what do they mean? Daikon also creates a ‘ .inv ’ file that contains the invariants in serialized (binary) form. You can use the .inv ’ file to print the invariants (see section Printing invariants ) in a variety of formats, to insert the invariants in your source code (see section Annotate ), to perform run-time checking of the invariants (see Runtime-check instrumenter (runtimechecker) , and InvariantChecker ), and to do various other operations. See Tools for use with Daikon , for descriptions of such tools. If you wish to write your own tools for processing invariants, you have two general options. You can parse Daikon's textual output, or you can write Java code that processes the ‘ .inv ’ file. The ‘ .inv ’ file is simply a serialized PptMap object. In addition to reading the Javadoc, you can examine how the other tools use this data structure. 5.1 Invariant syntax 5.2 Program points 5.3 Variable names 5.4 Interpreting Daikon output 5.5 Invariant list 5.6 Invariant filters [ < ] [ > << ] [ ] [ >> ] [ Contents ] [ Index ] [ ? ] 5.1 Invariant syntax Daikon can produce output in a variety of formats. Each of the format names can be specified as an argument to the ‘ --format ’ argument of Daikon (see section Options to control Daikon output ), PrintInvariants (see section Printing invariants ), and Annotate (see section Annotate ). When passed on the command line, the format names are case-insensitive: ‘ --format JML ’ and ‘ --format jml ’ have the same effect. You can enhance Daikon to produce output in other formats. See (./developer)New formatting for invariants section `New formatting for invariants' in Daikon Developer Manual Daikon format Daikon's default format is a mix of Java, mathematical logic, and some additional extensions. It is intended to concisely convey meaning to programmers. DBC format This format produces output in the design-by-contract (DBC) format expected by Parasoft's Jtest tool ( ). ESC/Java format ESC format The Daikon Invariant Detector User Manual: 5. Daikon output file:///C:/Users/tyalanf/AppData/Local/Temp/ .. 2/24/2012 12:16 PM You created this PDF from an application that is not licensed to print to novaPDF printer ( )
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Extended Static Checker for Java (ESC/Java) is a programming tool for finding errors in Java programs by checking annotations that are inserted in source code; for more details, see . Daikon's ESC/Java format (which can also be specified as ESC format) is intended for use with the original ESC/Java tool. Use Daikon's JML format for use with the ESC/Java2 tool.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/24/2012 for the course CSE 503 taught by Professor Davidnotikin during the Spring '11 term at University of Washington.

Page1 / 34

The Daikon Invariant Detector User Manual_ 5. Daikon output...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online