First step: code adapted to Llvmocpez library.
No doubt it is buggy, especilaly regarding names collisions and
function arguments.