GithubHelp home page GithubHelp logo

ttsiodras / detectglobals Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 91 KB

TEC-SWT's model checker depends on knowledge of the variables in global storage; so I coded a utility that uses libclang to provide this information.

License: GNU General Public License v3.0

Makefile 2.40% Python 7.44% C 90.16%

detectglobals's Introduction

Build and Test Status of DetectGlobals on Circle CI

Maxime's work on creating a model checker depends on knowledge of variables in global storage. This little utility uses libclang to provide that information.

If you run...

$ make
...
===== 7 passed in 0.14s ====

...you will then execute the static analysis tests on this utility's Python source; and you will also run actual C source code processing tests.

To verify the coverage achieved, issue this:

$ make coverage
...
Coverage achieved: 100%

You can "feed" C source code to this script, with an invocation like this:

$ ./detect_globals.py /path/to/*.c

The script will then report the globals it finds (including function-level statics). For usage information in library form, see the test code (in test_detector.py).

detectglobals's People

Contributors

ttsiodras avatar

Watchers

 avatar James Cloos avatar  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.