tests2/assign.R

library(R2llvm)
library(rstatic)
library(RTypeInference)

f =
function()
{
   x = 2L
   x
}


cfg = to_cfg(f)
types = infer_types(cfg)
#m = compile_cfg(f)
fc = compileFunction(f)
stopifnot(identical(.llvm(fc), 2L))
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.