llvm2c
llvm2c copied to clipboard
Decompiler of LLVM bitcode to C
Hello I've been trying to get this project working for a couple hours, this is the current error that I'm stuck at: CMake Error at test/CMakeLists.txt:28 (message): clang: version compatible...
 I met problem when building llvm2c It seems that some function is miss in newer llvm version
These global variables are arrays of functions to be called on program startup/exit. llvm2c currently supports neither ctors nor dtors. See documentation here: https://llvm.org/docs/LangRef.html#the-llvm-global-ctors-global-variable
We need this for scalar as well as aggregate type of undef value. It would be nice to have a choice: 1. The default behavior could be to crash with...
We should clarify which version of LLVM the tests are supposed to run with. Expected output differs under different versions of LLVM. Programs are equivalent.
For example, in this snippet: ```c if (condition) { return; } else { /* some long computation */ } ``` The "positive" branch of if statement always returns, so there...
(Just tracking the ideas for the future...) ```C // struct declarations // anonymous struct declarations // type definitions // struct definitions // function declarations int main(); void test_assert(unsigned int var0);...
Currently, each argument for function gets 2 stack-allocated variables. For example: ```c int main(int argc, char** argv) { int var0; char** var1; var0 = argc; var1 = argv; } ```...
If a variable is cast to e.g. `int` everywhere in the program, we may declare it `int` instead of `unsigned int` (and the casts visitor then removes useless casts). The...