search for: thenod

Displaying 4 results from an estimated 4 matches for "thenod".

Did you mean: thenode
2001 Oct 02
2
Avoiding deep copies
...p copy on my own when the memory manager doesnt do it for me :) ) I was considering writing code in R that would need the internal representation of complex graph structures where several nodes in the graph point to the same huge array of data. Now, obviously one cannot just do something like attr(thenode,"mydatavec")<-thedatavec or thenode$mydatavec<-thedatavec since all the data in thedatavec will be copied with this assignment. Are there commonly accepted/used workarounds? Johann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing li...
2002 Nov 28
2
[LLVMdev] Breakage in CVS?
The following function produces a segv when the begin() is taken from vmap, the ScalarMap... bool StaticMemAnalysis::isSingleMalloc(DSGraph* theGraph,DSNode* theNode) { int count = 0; std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap(); for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i != vmap.end(); ++i) { if(i->second.getNode() == theNode) { if(isa<MallocInst>(i->first)) count++; } } if...
2002 Nov 28
0
[LLVMdev] Breakage in CVS?
...0; > std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap(); Are you sure "theGraph" is not null at this point? -Chris > for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i > != vmap.end(); ++i) { > if(i->second.getNode() == theNode) { > if(isa<MallocInst>(i->first)) count++; > } > } > if(count == 1) return true; > return false; > } > > This code used to work... Has something changed or is our code wrong? I > rebuilt two days ago... > > Dave > > _______________________...
2002 Nov 28
2
[LLVMdev] Breakage in CVS?
...ure "theGraph" is not null at this point? yes... that call returns sucessfully. the segfault occurs after... > > -Chris > > > for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i > > != vmap.end(); ++i) { > > if(i->second.getNode() == theNode) { > > if(isa<MallocInst>(i->first)) count++; > > } > > } > > if(count == 1) return true; > > return false; > > } > > > > This code used to work... Has something changed or is our code wrong? I > > rebuilt two days ago... &gt...