Displaying 3 results from an estimated 3 matches for "sleep2".
Did you mean:
sleep
2009 Feb 03
0
lm function
...rmation about the notation in the "lm" function, but havent understand
exactly what does the ":" do. Can some one give me an explenation of the
models below so I can replicate the results in other program.
#common intercept
mod2<-lm(TS~log(BodyWt)+log(BodyWt):factor(D),data=sleep2)
#paralell lines
mod3<-lm(TS~factor(D)+log(BodyWt)-1,data=sleep2)
#general
mod4<-lm(TS~factor(D)+log(BodyWt):factor(D)-1,data=sleep2)
TS is the dependent variable, log(bodyWt) is a covariate and D is either 1
or 2, depending in the case.
Thanks
--
View this message in context: http://www.n...
2011 Nov 20
1
[LLVMdev] call different function while running
Hello every, I am new to LLVM, using it to create a system
Now I have a problem
code below:
int main(int argc, char **argv)
{
symbolic(2);//symbolic(int a)
sleep(1,2);//sleep(int a, int b)
}
two definations of sleep
int sleep(int a, int b)
{
return a+b;
}
int sleep(int a, int b)
{
return a-b;
}
can I choose different sleep() by the result of symbolic(),
if symbolic(5)
2011 Nov 21
0
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
...rst sleep
> if symbolic(2) calling the second sleep
I'm not sure exactly what you are asking. If symbolic returns a boolean
value, and you want to call different sleep functions depending on the
result, then:
(1) make sure the different sleep functions have different names, say sleep1
and sleep2.
(2) create a CallInst (call this CI) which calls symbolic.
(3) create a conditional Branch instruction which uses CI as the condition,
and branches either to basic block B1 or B2 depending on the condition.
You will need to create B1 and B2 and insert them into your function.
(4) in B1, create a c...