ryanphuang / llvmslicer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jirislaby/llvmslicer
Weiser Static Slicer for LLVM 3.9
This project forked from jirislaby/llvmslicer
Weiser Static Slicer for LLVM 3.9
+=========Original Repository==========+ LLVM slicer ----------- Introduction ============ This is a static slicer based on the Mark Weiser's algorithm in [1]. It is augmented to perform an inter-procedural analysis. The initial criteria considered here are all assert_fail function calls (which is effectively every place where an assert is in the code). HOWTO ===== Basically, what one needs to do to slice src.o LLVM code into dst.o is: $ opt -load LLVMSlicer.so -create-hammock-cfg -slice-inter src.o -o dst.o Both create-hammock-cfg and slice-inter are defined in this project. If you are having troubles with running opt, you are likely not loading the proper library. Of course, you have to make sure that the library is in a path where dynamic libraries are looked for (or add the path where the library is to LD_LIBRARY_PATH). Bug reports =========== Use github for reports and pull requests, please. Contacts ======== Jiri Slaby <[email protected]> https://github.com/jirislaby/LLVMSlicer References ========== [1] M. Weiser. "Program slicing". Proceedings of the 5th International Conference on Software Engineering, pages 439โ449, IEEE Computer Society Press, March 1981. +=========This Forked Branch==========+ Changes/enhancement made in the branch: * Port to LLVM make build system and LLVM 3.0 * The input of the slicer can now accept <filename, line number, variable> tuple as the slicing criterion. It will output the final slice. Example: opt -load Debug+Asserts/lib/LLVMSlicer.so -criterion-file="b.c" -criterion-line=13 -criterion-variable="sum" -slice-inter b.ll opt -load Debug+Asserts/lib/LLVMSlicer.so -criterion-file="d.c" -criterion-line=11 -criterion-variable="product" -forward-slice -slice-inter -output-line d.ll * add forward slicing * fix the calling context problems * provide more options * rewrite code Contact [email protected] for the specific changes above
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.