Code Monkey home page Code Monkey logo

loopdependency's Introduction

How to run the program

  1. swich to "105062551_HW1" directory
  2. $ make clean
  3. $ make
  4. $ opt -load ./HW.so -HW casex.ll (case1~4)
  • You can test other cases by using :
    $ clang -S -emit-llvm testname.c -o testname.ll
    to generate the .ll file and test them.

Describe the cases that you can handle

i + c & c*i + d style :

1. Output Dependency
2. Flow Dependency
3. Anti Dependency

#Example ####testcsae4 :

testcase4

####output :
output

####Analysis :

Output Dependency -

(i = 0, i = 1)
D : S2 ---> S3

i = 0 :
A[0] = C[0];
D[0] = A[-4];
D[-1] = C[0];
i = 1 :
A[1] = C[1];
D[1] = A[-1];
D[0] = C[2];


Flow Dependency -

(i = 2, i = 2)
A : S1 ---> S2

i = 2 :
A[2] = C[2];
D[2] = A[2];
D[1] = C[4];


Anti Dependency -

(i = 3, i = 5)
A : S2 ---> S1

i = 3 :
A[3] = C[3];
D[3] = A[5];
D[2] = C[6];
i = 5 :
A[5] = C[5];
D[5] = A[11];
D[4] = C[10];

loopdependency's People

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.