GithubHelp home page GithubHelp logo

Comments (2)

kumarak avatar kumarak commented on July 22, 2024

Attached specification include function with indirect control flow instruction and the target list. Anvill lift the complete list of targets with switch intrinsics:

...
991:                                              ; preds = %983
  %992 = zext i8 %984 to i32
  %993 = shl nuw nsw i32 %992, 2
  %994 = add i32 %993, add (i32 ptrtoint (i32* @var_835a000_i to i32), i32 -763272)
  %995 = inttoptr i32 %994 to i32*
  %996 = load i32, i32* %995, align 4
  %997 = add i32 %996, ptrtoint (i32* @var_835a000_i to i32)
  %998 = call i32 (i32, ...) @__anvill_complete_switch(i32 %997, i32 134522973, i32 136578775, i32 136578784, i32 136578793, i32 136578809, i32 136578818)
  %999 = add i32 %996, add (i32 ptrtoint (i32* @var_835a000_i to i32), i32 9)
  switch i32 %998, label %1000 [
    i32 0, label %449
    i32 1, label %1001
    i32 2, label %1004
    i32 3, label %1007
    i32 4, label %1010
    i32 5, label %1014
  ]

spec.json.zip

from anvill.

pgoodman avatar pgoodman commented on July 22, 2024

Done in #261.

from anvill.

Related Issues (20)

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.