tests/ifTernary.R

library(RLLVMCompile)

f =
function(n)
{
  x = if(n > 10) 3L else 100L
  x
}

fixIfAssign(f)
fixIfAssign(f, addPragma = TRUE)
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.