Code Monkey home page Code Monkey logo

pmgen's People

Contributors

roselone avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

carismoses

pmgen's Issues

Installation of pmGen

Hello, I'm trying to install pmGen and use it to generate .pml from C files compiled. Maybe is a silly question but I cannot understand how to install it. Is there a tutorial to do this?

Kind regards

SlotTracker and Helper Functions

Hi @roselone. I am working at upgrading pmGen to work with llvm 5.0 and I am stuck on something. I know you haven't worked on this in a while, but I was hoping you would me able to answer a question of mine.

I noticed that the SlotTracker and the Helper classes are already classes in the llvm libraries (Helper is called AsmWriter in llvm). I was wondering why you made your own versions of them? Are you using the framework of AsmWriter and making it a PROMELA code writer? I am getting errors since a lot of the functions already exist:

g++ -fno-rtti -O0 -g -o bin/pmGen build/main.o build/IO.o build/TypeGen.o build/TypeFinder.o build/SlotTracker.o build/Helper.o '/home/build/llvm/bin/llvm-config --ldflags --libs --system-libs'

/home/build/llvm/lib/libLLVMCore.a(AsmWriter.cpp.o): In function 'llvm::SlotTracker::getLocalSlot(llvm::Value const*)': /home/llvm/lib/IR/AsmWriter.cpp:996: multiple definition of 'llvm::SlotTracker::getLocalSlot(llvm::Value const*)' build/SlotTracker.o:/home/pmGen/lib/Helper/SlotTracker.cpp:162: first defined here

/home/build/llvm/lib/libLLVMCore.a(AsmWriter.cpp.o): In function 'llvm::SlotTracker::getGlobalSlot(llvm::GlobalValue const*)': /home/llvm/lib/IR/AsmWriter.cpp:976: multiple definition of 'llvm::SlotTracker::getGlobalSlot(llvm::GlobalValue const*)' build/SlotTracker.o:/home/pmGen/lib/Helper/SlotTracker.cpp:142: first defined here

/home/build/llvm/lib/libLLVMCore.a(AsmWriter.cpp.o): In function 'llvm::SlotTracker::getMetadataSlot(llvm::MDNode const*)': /home/llvm/lib/IR/AsmWriter.cpp:986: multiple definition of 'llvm::SlotTracker::getMetadataSlot(llvm::MDNode const*)' build/SlotTracker.o:/home/pmGen/lib/Helper/SlotTracker.cpp:152: first defined here collect2: error: ld returned 1 exit status

make: *** [bin/pmGen] Error 1

Also I moved the SlotTracker code into its own header and .cpp files. I could probably figure out which flag is loading the AsmWriter lib, but I still have my question of why you made your own version of AsmWriter and SlotTracker. Thank you!

Help

Hi would you please help me to implement your compiler, I want to use it, but I can't find how.
My request may be silly, but would you please help
Thank you

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.