For example:
int x=0;
int y=0;
where x and y are global variables, and in main() function we do the following:
x++;
y++;
How to get the newest value of global variables x and y in llvm.
when I try to do errs()<<g;
they give the initial value as @BB0 = global i32
but I need to get the actual value like x=1
, by using llvm.