Skip to content

jeongsoolee09/LLVM-Interval-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLVM-Interval-Analyzer

What is this?

This repo contains a toy interval (static) analyzer targeting the LLVM IR.

Installation and Usage

Install Stack

$ curl -sSL https://get.haskellstack.org/ | sh

Install LLVM 9

Mac

$ brew install llvm-hs/llvm/llvm-9

Ubuntu

$ apt-get install llvm-9-dev

Install packages

$ stack install llvm-hs optparse-applicative ieee754

Compile

$ stack ghc main.hs

Run

$ ./Main -i {your input .ll file}

Extension plan (TODOs)

Achieved

  1. Top-down interprocedural analysis

Not Yet Achieved

  1. Extending domain to include access paths

NOTE

.ll files compiled with Clang 12 emits a parse error. Make sure your Clang version is equal to or below 11.

About

An interval static analyzer targeting LLVM IR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published