daikon - Daikon Invariant Detector User Manual Daikon...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Daikon Invariant Detector User Manual Daikon version 4.6.4 June 23, 2010 Copyright c 1998-2010 i Table of Contents 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 Mailing lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Installing Daikon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.1 Simple installation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2 Complete installation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2.1 Requirements for running Daikon . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2.1.1 Optional requirements for running Daikon . . . . . . . . . . . . 3 2.2.2 Unix/Linux/MacOS installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2.3 Windows installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2.4 Running Daikon under Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.4.1 Windows command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.4.2 Cygwin shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 Example usage for Java, C/C++, Perl, and Eiffel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1 Detecting invariants in Java programs . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1.1 StackAr example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1.2 Using DynComp with Java programs . . . . . . . . . . . . . . . . . . . . . . 8 3.1.3 Understanding the invariants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.4 Understanding DynComp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.5 A second Java example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 Detecting invariants in C/C++ programs . . . . . . . . . . . . . . . . . . . . . . 11 3.2.1 C examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2.2 Using DynComp with C programs . . . . . . . . . . . . . . . . . . . . . . . . 12 3.2.3 Dealing with large examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3 Detecting invariants in Perl programs . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.1 Instrumenting Perl programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.2 Perl examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.4 Detecting invariants in Eiffel programs . . . . . . . . . . . . . . . . . . . . . . . . 15 4 Running Daikon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1 Options to control Daikon output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2 Options to control invariant detection . . . . . . . . . . . . . . . . . . . . . . . . .....
View Full 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 / 179

daikon - Daikon Invariant Detector User Manual Daikon...

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

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