Coder Social home page Coder Social logo

flowistry's Introduction

Flowistry

ci

Flowistry is an IDE extension that helps developers understand Rust programs. Flowistry uses dataflow analysis to analyze Rust programs at a deeper semantic level than just types can offer. Flowistry's capabilities are:

Backward slicing

A backward slice identifies every piece of code that affects a value of interest. For example, this screenshot shows the slice of input on line 14:

Screen Shot 2021-03-22 at 2 00 43 PM

The value of buffer affects the value of input, so stdin.read_buffer(..) and buffer.clear() are highlighted. The variable count does not affect the value of input, so let mut count = 0 and count += 1 are not highlighted.

Forward slicing

TODO

Installation

Flowistry server

From Cargo

rustup toolchain install nightly -c rust-src,rustc-dev,llvm-tools-preview
cargo +nightly install flowistry

From source

git clone https://github.com/willcrichton/flowistry
cd flowistry
cargo install --path .

VSCode extension

From source

cd ide
npm run vscode:prepublish
ln -s $(pwd) ~/.vscode/extensions/flowistry

Usage

Flowistry contains two components: a program analyzer, and a VSCode extension that bridges the analyzer to a code editor. To try slicing a program, open a Rust project in VSCode and go to a Rust file. Select an expression you want to slice, then press โŒ˜+โ‡ง+P, type "Slice", and hit enter.

flowistry's People

Contributors

willcrichton avatar vakaras avatar

Watchers

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.