GithubHelp home page GithubHelp logo

pep8analysis's Introduction

Pep/8 Analysis has moved!

The Pep/8 Analysis tool has been merged in the official Nit repository under the /contrib/pep8analysis/ folder.

Link: https://github.com/privat/nit/tree/master/contrib/pep8analysis

This repository is left available for historical purposes and redirection. Latest and future updates will be made available there, or in my fork at: https://github.com/xymus/nit/tree/master/contrib/pep8analysis


Pep/8 Analysis

This project provides tools to statically analyze Pep/8 programs in order to detect bugs or bad programming practices.

For more information about the Pep/8 assembly language visit http://code.google.com/p/pep8-1/.

Installation

Make sure you have a Nit compiler installed (http://nitlanguage.org) and the environment variable NIT_DIR correctly set to the Nit installation directory.

Clone the source from http://github.com/xymus/pep8analysis.git and compile with make.

Usage

For basic results, execute on the Pep/8 program prog.pep with bin/pep8analyzer prog.pep.

Call bin/pep8analyer --help for a description of the available (and up to date) options.

The tools provides its results in two ways, the final report and an annotated CFG (usually created in the out directory).

Analyses

Dead code and possible execution of data

The tools analyses statically the program according to possbile branches and function calls to find wrongfully placed instructions and directives. It reports dead code blocks and possibly executed data blocks.

Range analysis

The range analysis reports the value of registers and memory on the annotated CFG.

Reaching definitions

The reaching definitions analysis tracks what lines may have assigned values to register and memory. Its results are on the anotated CFG. They can be used to better understand a program.

Types analysis

The types analysis detects wrongful use of types or of uninitialized data. It reports possible errors in the final report.

pep8analysis's People

Contributors

xymus avatar

Stargazers

Jean Privat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.