search for: testfoo

Displaying 7 results from an estimated 7 matches for "testfoo".

2010 May 28
1
Does Sweave run in the global environment ?
..._sweave.Rnw file |% \documentclass[a4paper]{article} \usepackage[OT1]{fontenc} \usepackage{Sweave} \begin{document} \title{Test Sweave Document} \author{Paul Hurley} \maketitle <<>>= if(exists("foo")){print(foo)} ls() Sys.time() @ \end{document} | If I run this code; |testFoo<-function(){ foo<-"My Test String" Sweave("test_sweave.Rnw") require(tools) texi2dvi(file = "test_sweave.tex", pdf = TRUE) } rm(foo) testFoo() | my resulting file does NOT contain the contents of the string foo. |> if (exists(&quo...
2013 Nov 12
7
Hook into Exception Chain
Hi there, I''m using Log4r in my rails projects. On log.error an email is sent using the EmailOutputter. I know changed the EmailOutputter to include a global var in the subject (MDC) since the subject is normally static. I want to set this var to the exception message, so it is sent as the subject. Can anyone tell me how to do this in rails? Basically: raise e or some other cause
2012 Jun 27
2
a problem of approach
...R? - alternatively, should I go for a C implementation? (actually, I did create a C implementation, but it doesn't bring any more speed... it is actually a bit slower). A real-life pet example, using the function findSubsets() from the QCA package (our foo function above): #### library(QCA) testfoo <- function(x, y) { index <- 0 while((index <- index + 1) < length(x)) { x <- setdiff(x, findSubsets(y, x[index], max(x))) } return(x) } nofl <- rep(3, 14) set.seed(12345) numbers <- sort(sample(seq(prod(nofl)), 1000000)) system.time(result <- testf...
2013 Jan 22
2
[LLVMdev] Utility function to identify user defined function
Hi, I would like to ask if LLVM provides a utility function like 'isMallocCall' to check if the 'call' instruction is calling some 'foo' user defined function? If there is no such utility function then I am thinking to do this in the following way: bool testFoo(CallInst *CI) { Function *Callee = CI->getCalledFunction(); if (Callee->getName() == "foo") return true; return false; } Thanks. Cheers, Ahmad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2005 May 08
3
1.0-test69
http://dovecot.org/test/ - Several mbox fixes, upgrade recommended for test68 mbox users - Possibly fixes some IMAP hangs where Dovecot just stopped replying - Fixed delay-newmail workaround. It was badly broken before. And somewhat off topic advertisement: I got a bit distracted from Dovecot a week ago when a guy started mailing me about wanting to write an irssi2 client as a project to
2013 Jan 22
0
[LLVMdev] Utility function to identify user defined function
...ike to ask if LLVM provides a utility function like > 'isMallocCall' to check if the 'call' instruction is calling some > 'foo' user defined function? > > If there is no such utility function then I am thinking to do this in > the following way: > > bool testFoo(CallInst *CI) { > Function *Callee = CI->getCalledFunction(); > if (Callee->getName() == "foo") > return true; > return false; > } Depending on the exact meaning of "user defined function" you can check if the function contains any BasicBlock. The metho...
2016 Feb 20
2
[VSXFMAMutate] OldFMAReg may be wrongly rewritten
Example: target triple = "powerpc64le-unknown-linux-gnu" define void @TestFoo() { entry_bb: br label %loop_bb loop_bb: %tmp = load float, float* undef %tmp1 = fmul float %tmp, 0x401F25E360000000 %tmp2 = fadd float %tmp1, 0x3FC1A7B960000000 %tmp3 = select i1 undef, float 0x401F25E360000000, float %tmp2 store float %tmp3, float* undef br label %loop_bb } The co...