tests/ifTernary.R

library(RLLVMCompile)

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

fixIfAssign(f)
fixIfAssign(f, addPragma = TRUE)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.