search for: str3

Displaying 20 results from an estimated 49 matches for "str3".

Did you mean: str
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
...lves a data set 'u', with dimension (i x j), I need to assign values to 'u1', 'u2', ..., 'ui' via defineVar(install(...)). I tried the following: double feval(double x, double *u, int d, double v, SEXP f, SEXP rho) { int i; char *str1="u", str2[1001], *str3; defineVar(install("x"), mkans(x), rho); defineVar(install("y"), mkans(v), rho); for(i=0;i<d;i++) { sprintf(str2,"%d",i+1); str3 = (char *)malloc((strlen(str1)+strlen(str2)+1)*sizeof(char)); strcpy(str3,str1); strcat(str3,str2); defineVar(i...
2007 Mar 27
3
Use of 'defineVar' and 'install' in .Call
...lves a data set 'u', with dimension (i x j), I need to assign values to 'u1', 'u2', ..., 'ui' via defineVar(install(...)). I tried the following: double feval(double x, double *u, int d, double v, SEXP f, SEXP rho) { int i; char *str1="u", str2[1001], *str3; defineVar(install("x"), mkans(x), rho); defineVar(install("y"), mkans(v), rho); for(i=0;i<d;i++) { sprintf(str2,"%d",i+1); str3 = (char *)malloc((strlen(str1)+strlen(str2)+1)*sizeof(char)); strcpy(str3,str1); strcat(str3,str2); defineVar(i...
2008 Jan 06
0
[LLVMdev] Another memory fun
...; <[7 x i8]*> [#uses=1] @.str8 = internal global [8 x i8] c"mother \00" ; <[8 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare i32 @strlen(i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %str3 = getelementptr [7 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=2] %str4 = getelementptr [6 x i8]* @.str1, i64 0, i64 0 ; <i8*> [#uses=1] call i8* @strcat( i8* %str3, i8* %str4 ) ; <i8*>:0 [#uses=0] %tmp6 = call i32 @puts(...
2008 Jan 06
4
[LLVMdev] Another memory fun
Yes, I agree with you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080106/efb1c465/attachment.html>
2008 Jan 06
4
[LLVMdev] Another memory fun
...; <[8 x i8]*> [#uses=1] @.str7 = internal global [21 x i8] c"welcome to out hall!\00" ; <[21 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %.str3 = getelementptr [8 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=1] %.str4 = getelementptr [8 x i8]* @.str1, i64 0, i64 0 ; <i8*> [#uses=1] %tmp5 = call i8* @strcat( i8* %.str3, i8* %.str4 ) ; <i8*> [#uses=1] %tmp6 = call i32 @...
2008 Jan 06
0
[LLVMdev] Another memory fun
...global [21 x i8] c"welcome to out hall!\00" > ; <[21 x i8]*> [#uses=1] > > declare i32 @puts(i8*) > > declare i8* @strcat(i8*, i8*) > > declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) > > define i32 @main() { > mainBlock: > %.str3 = getelementptr [8 x i8]* @.str2, i64 0, i64 0 > ; <i8*> [#uses=1] > %.str4 = getelementptr [8 x i8]* @.str1, i64 0, i64 0 > ; <i8*> [#uses=1] > %tmp5 = call i8* @strcat( i8* %.str3, i8* %.str4 ) > ; <i8*> [#uses=1...
2013 Jul 08
2
Re: deadlock on connection loosing
On 07.07.2013 01:53, Александр wrote: > В письме от Воскресенье, 30-июн-2013 03:41:37 пользователь Александр написал: >> В письме от Вторник, 25-июн-2013 11:47:10 пользователь Michal Privoznik .... > > i have found source of problem, my code looks like this: > > int count = virConnectListAllDomains(connection, NULL, 0); > .... > domain = virDomainDefineXML(connection,
2008 Jan 06
4
[LLVMdev] Another memory fun
...; <[7 x i8]*> [#uses=1] @.str8 = internal global [8 x i8] c"mother \00" ; <[8 x i8]*> [#uses=1] declare i32 @puts(i8*) declare i8* @strcat(i8*, i8*) declare i32 @strlen(i8*) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) define i32 @main() { mainBlock: %str3 = getelementptr [7 x i8]* @.str2, i64 0, i64 0 ; <i8*> [#uses=2] %str4 = getelementptr [6 x i8]* @.str1, i64 0, i64 0 ; <i8*> [#uses=1] call i8* @strcat( i8* %str3, i8* %str4 ) ; <i8*>:0 [#uses=0] %tmp6 = call i32 @puts(...
2010 Mar 16
3
How to parse a string (by a "new" markup) with R ?
Hello all, For some work I am doing on RNA, I want to use R to do string parsing that (I think) is like a simplistic HTML parsing. For example, let's say we have the following two variables: Seq <- "GCCTCGATAGCTCAGTTGGGAGAGCGTACGACTGAAGATCGTAAGGtCACCAGTTCGATCCTGGTTCGGGGCA" Str <-
2009 Sep 27
5
[LLVMdev] A basicblock iterator bug in llvm
...alias getelementptr ([42 x i8]* @.str1, i32 0, i32 0)) nounwind ; <i32> [#uses=0] %2 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([40 x i8]* @.str2, i32 0, i32 0)) nounwind ; <i32> [#uses=0] %3 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([40 x i8]* @.str3, i32 0, i32 0)) nounwind ; <i32> [#uses=0] %4 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([42 x i8]* @.str, i32 0, i32 0)) nounwind ; <i32> [#uses=0] br label %bb1 The code slice in verify-fixrace.cpp in attachment: cerr << "IsFirst Current Inst: "...
2013 Jul 08
0
Re: deadlock on connection loosing
...t; Domain: %d\n", err->domain); fprintf(stderr, " Message: %s\n", err->message); fprintf(stderr, " Level: %d\n", err->level); fprintf(stderr, " str1: %s\n", err->str1); fprintf(stderr, " str2: %s\n", err->str2); fprintf(stderr, " str3: %s\n", err->str3); fprintf(stderr, " int1: %d\n", err->int1); fprintf(stderr, " int2: %d\n", err->int2); } int init_libvirt() { virSetErrorFunc(NULL, libvirt_error_handler); libvirt_connection = virConnectOpen("qemu:///system"); ..... i will also...
2008 Jan 06
0
[LLVMdev] Another memory fun
...al global [21 x i8] c"welcome to out hall! > \00" ; <[21 x i8]*> [#uses=1] > > declare i32 @puts(i8*) > > declare i8* @strcat(i8*, i8*) > > declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) > > define i32 @main() { > mainBlock: > %.str3 = getelementptr [8 x i8]* @.str2, i64 0, i64 > 0 ; <i8*> [#uses=1] > %.str4 = getelementptr [8 x i8]* @.str1, i64 0, i64 > 0 ; <i8*> [#uses=1] > %tmp5 = call i8* @strcat( i8* %.str3, i8* > %.str4 ) ; <i8*> [#use...
2013 Feb 07
0
There seems a deadlock in libvirt
...tserverprogram.c:416 ret = 0x7f6998000c20 "" rv = -1 i = <optimized out> arg = 0x7f6998027950 "\360e\n\230i\177" dispatcher = 0x73de40 rerr = {code = 0, domain = 0, message = 0x0, level = 0, dom = 0x0, str1 = 0x0, str2 = 0x0, str3 = 0x0, int1 = 0, int2 = 0, net = 0x0} #10 virNetServerProgramDispatch (prog=0x15825d0, server=0x1577c90, client=0x157e730, msg=0x1689cc0) at rpc/virnetserverprogram.c:289 ret = -1 rerr = {code = 0, domain = 0, message = 0x0, level = 0, dom = 0x0, str1 = 0x0, str2 = 0x0, str3 = 0x0,...
2016 Feb 09
2
Modified LLVM IR
..., align 4 %1 = load i32* %ivar2.addr, align 4 %call1 = call i32 @one_11(i32 %0, i32 %1) store i32 %call1, i32* %isum, align 4 %2 = load i32* %isum, align 4 ret i32 %2 } Modified LLVM IR file, @.str2 = private unnamed_addr constant [17 x i8] c"\0AI am in one_11\0A\00", align 1 @.str3 = private unnamed_addr constant [17 x i8] c"\0AI am in one_12\0A\00", align 1 ; Function Attrs: nounwind define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 { entry: %ivar1.addr = alloca i32, align 4 %ivar2.addr = alloca i32, align 4 %isum = alloca i32, align 4 store i32 %ivar1, i32* %i...
2010 Mar 16
0
FW: How to parse a string (by a "new" markup) with R ?
...You can modify this yourself to take into account the actual rules > whatever they are. > > We first calculate, k, the number of leading >'s using strapply. > > Then we replace the leading k >'s with }'s and the trailing k <'s with > {'s giving us Str3: > > > "}}}}}}}..>>>>........<<<<.>>>>>.......<<<<<.....>>>>>.......<<<<<{{{{ > { > {{." > > We again use strapply, this time to get the lengths of the runs. Note > that zero l...
2009 Jul 24
4
[LLVMdev] llvm-as regression
...; target triple = "x86-unknown-unknown" @foo = constant [4 x [0 x i8]*] [ [0 x i8]* bitcast( [5 x i8]* getelementptr( [5 x i8]* @.str1 ) to [0 x i8]* ), [0 x i8]* bitcast( [4 x i8]* getelementptr( [4 x i8]* @.str2 ) to [0 x i8]* ), [0 x i8]* bitcast( [4 x i8]* getelementptr( [4 x i8]* @.str3 ) to [0 x i8]* ), [0 x i8]* bitcast( [6 x i8]* getelementptr( [6 x i8]* @.str4 ) to [0 x i8]* ) ] @.str1 = internal constant [5 x i8] c"zero\00" @.str2 = internal constant [4 x i8] c"one\00" @.str3 = internal constant [4 x i8] c"two\00" @.str4 = internal constant [6...
2013 Dec 05
1
Using Java bindings to event callback
...he following error message: libvirt: Remote Driver error : adding cb to list exception caught:org.libvirt.LibvirtException: adding cb to list level:VIR_ERR_ERROR code:VIR_ERR_RPC domain:VIR_FROM_REMOTE hasConn:false hasDom:false hasNet:false message:adding cb to list str1:%s str2:adding cb to list str3:null int1:-1 int2:-1 By the way I also trace the mail list *[libvirt] [PATCH] Java bindings for domain events* (2008 Nov 07) *[libvirt] [PATCH 1/2] Java bindings for domain events**[libvirt] [PATCH 2/2] Java bindings for domain events* (2008 Nov 18) --> Reject patch*Re: [libvirt] [PATCH 1/2] J...
2013 Nov 23
2
[LLVMdev] bugpoint question
...other way. *** Debugging code generator crash! Checking to see if we can delete global inits: <llc> - Removing all global inits hides problem! *** Attempting to reduce the number of global variables in the testcase Checking for crash with only these global variables: .str .str1 .str2 .str3 .str4 .str5 .str6 .str7 .str8 .str9... <40 total>: <llc> Checking for crash with only these blocks: entry cond.true cond.false cond.end cond.true9 cond.false12 cond.end13 cond.true20 cond.false24 cond.end25... <20 total>: Cannot find `opt' in PATH! simplifycfg failed! On 1...
2016 Feb 10
2
Modified LLVM IR
...%0, i32 %1) >> store i32 %call1, i32* %isum, align 4 >> %2 = load i32* %isum, align 4 >> ret i32 %2 >> } >> >> Modified LLVM IR file, >> @.str2 = private unnamed_addr constant [17 x i8] c"\0AI am in >> one_11\0A\00", align 1 >> @.str3 = private unnamed_addr constant [17 x i8] c"\0AI am in >> one_12\0A\00", align 1 >> >> ; Function Attrs: nounwind >> define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 { >> entry: >> %ivar1.addr = alloca i32, align 4 >> %ivar2.addr = alloca i32, ali...
2009 Sep 27
0
[LLVMdev] A basicblock iterator bug in llvm
...)) nounwind            ; <i32> [#uses=0] >         %2 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([40 x   > i8]* @.str2, i32 0, i32 0)) nounwind            ; <i32> [#uses=0] >         %3 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([40 x   > i8]* @.str3, i32 0, i32 0)) nounwind            ; <i32> [#uses=0] >         %4 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([42 x   > i8]* @.str, i32 0, i32 0)) nounwind             ; <i32> [#uses=0] >         br label %bb1 > > The code slice in verify-fixrace.cpp in att...