1#ifndef ROSE_sageContainer_H
2#define ROSE_sageContainer_H
5#include <Cxx_GrammarDeclarations.h>
6#include <Cxx_GrammarVariants.h>
8#include <Rose/BinaryAnalysis/RelativeVirtualAddress.h>
21typedef Rose_STL_Container<SgInitializedName*> SgInitializedNamePtrList;
22typedef SgInitializedNamePtrList* SgInitializedNamePtrListPtr;
30typedef Rose_STL_Container<SgDeclarationStatement*> SgDeclarationStatementPtrList;
35typedef SgDeclarationStatementPtrList* SgDeclarationStatementPtrListPtr;
37#ifdef ROSE_ENABLE_BINARY_ANALYSIS
42typedef Rose_STL_Container<SgAsmBlock*> SgAsmBlockPtrList;
45typedef SgAsmBlockPtrList* SgAsmBlockPtrListPtr;
48typedef Rose_STL_Container<SgAsmInterpretation*> SgAsmInterpretationPtrList;
51typedef Rose_STL_Container<SgAsmGenericSection*> SgAsmGenericSectionPtrList;
52typedef SgAsmGenericSectionPtrList* SgAsmGenericSectionPtrListPtr;
54typedef Rose_STL_Container<SgAsmGenericFile*> SgAsmGenericFilePtrList;
55typedef SgAsmGenericSectionPtrList* SgAsmGenericFilePtrListPtr;
65typedef Rose_STL_Container<SgAsmPEImportItem*> SgAsmPEImportItemPtrList;
66typedef SgAsmPEImportItemPtrList* SgAsmPEImportItemPtrListPtr;
68typedef Rose_STL_Container<SgAsmPEImportDirectory*> SgAsmPEImportDirectoryPtrList;
69typedef SgAsmPEImportDirectoryPtrList* SgAsmPEImportDirectoryPtrListPtr;
71typedef Rose_STL_Container<SgAsmPEImportItem*> SgAsmPEImportItemPtrList;
72typedef SgAsmPEImportItemPtrList* SgAsmPEImportItemPtrListPtr;
75typedef Rose_STL_Container<SgAsmElfSymbol*> SgAsmElfSymbolPtrList;
76typedef SgAsmElfSymbolPtrList* SgAsmElfSymbolPtrListPtr;
79typedef Rose_STL_Container<SgAsmCoffSymbol*> SgAsmCoffSymbolPtrList;
80typedef SgAsmCoffSymbolPtrList* SgAsmCoffSymbolPtrListPtr;
83typedef Rose_STL_Container<SgAsmGenericSymbol*> SgAsmGenericSymbolPtrList;
84typedef SgAsmGenericSymbolPtrList* SgAsmGenericSymbolPtrListPtr;
88typedef Rose_STL_Container<SgStatement*> SgStatementPtrList;
89typedef SgStatementPtrList* SgStatementPtrListPtr;
93typedef Rose_STL_Container<SgBaseClass*> SgBaseClassPtrList;
94typedef SgBaseClassPtrList* SgBaseClassPtrListPtr;
97typedef Rose_STL_Container<SgNode*> SgNodePtrList;
98typedef SgNodePtrList* SgNodePtrListPtr;
101typedef Rose_STL_Container<SgType*> SgTypePtrList;
102typedef SgTypePtrList* SgTypePtrListPtr;
105typedef Rose_STL_Container<SgExpression*> SgExpressionPtrList;
106typedef SgExpressionPtrList* SgExpressionPtrListPtr;
109typedef Rose_STL_Container<SgKeyDatumPair*> SgKeyDatumPairPtrList;
112typedef Rose_STL_Container<SgComprehension*> SgComprehensionPtrList;
114typedef Rose_STL_Container<VariantT> VariantTList;
118typedef Rose_STL_Container<SgVarRefExp*> SgVarRefExpPtrList;
119typedef SgVarRefExpPtrList* SgVarRefExpPtrListPtr;
122typedef Rose_STL_Container<SgAttribute*> SgAttributePtrList;
123typedef SgAttributePtrList* SgAttributePtrListPtr;
128typedef Rose_STL_Container<unsigned char> SgCharList;
129typedef SgCharList* SgCharListPtr;
137typedef std::vector<SgFile*> SgFilePtrList;
138typedef SgFilePtrList* SgFilePtrListPtr;
146typedef std::vector<SgFileId> SgFileIdList;
149typedef int SgFileLineNumber;
150typedef std::vector<SgFileLineNumber> SgFileLineNumberList;
154typedef Rose_STL_Container<std::string> SgStringList;
155typedef SgStringList* SgStringListPtr;
162typedef std::set<SgNode*> SgNodeSet;
163typedef SgNodeSet* SgNodeSetPtr;
177typedef std::vector<SgModifierType*> SgModifierTypePtrVector;
183typedef std::vector<bool> SgBitVector;
187typedef Rose_STL_Container<SgTemplateParameter*> SgTemplateParameterPtrList;
188typedef SgTemplateParameterPtrList* SgTemplateParameterPtrListPtr;
192typedef Rose_STL_Container<SgTemplateArgument*> SgTemplateArgumentPtrList;
193typedef SgTemplateArgumentPtrList* SgTemplateArgumentPtrListPtr;
203typedef std::vector<SgDirectory*> SgDirectoryPtrList;
204typedef SgDirectoryPtrList* SgDirectoryPtrListPtr;
208typedef Rose_STL_Container<SgQualifiedName*> SgQualifiedNamePtrList;
209typedef SgQualifiedNamePtrList* SgQualifiedNamePtrListPtr;
218typedef std::vector<SgBasicBlockPtr> SgBasicBlockPtrList;
219typedef SgBasicBlockPtrList* SgBasicBlockPtrListPtr;
221#ifdef ROSE_ENABLE_BINARY_ANALYSIS
223typedef Rose_STL_Container<SgAsmStatement*> SgAsmStatementPtrList;
224typedef SgAsmStatementPtrList* SgAsmStatementPtrListPtr;
226typedef Rose_STL_Container<SgAsmInstruction*> SgAsmInstructionPtrList;
227typedef SgAsmInstructionPtrList* SgAsmInstructionPtrListPtr;
230typedef Rose_STL_Container<SgAsmExpression*> SgAsmExpressionPtrList;
231typedef SgAsmExpressionPtrList* SgAsmExpressionPtrListPtr;
233typedef Rose_STL_Container<SgAsmIntegerValueExpression*> SgAsmIntegerValuePtrList;
234typedef SgAsmIntegerValuePtrList* SgAsmIntegerValuePtrListPtr;
237typedef Rose_STL_Container<SgAsmSynthesizedDeclaration*> SgAsmSynthesizedDeclarationPtrList;
238typedef SgAsmSynthesizedDeclarationPtrList* SgAsmSynthesizedDeclarationPtrListPtr;
240typedef Rose_STL_Container<SgAsmX86Instruction*> SgAsmX86InstructionPtrList;
241#ifdef ROSE_ENABLE_ASM_AARCH64
242typedef Rose_STL_Container<SgAsmAarch64Instruction*> SgAsmAarch64InstructionPtrList;
247typedef Rose_STL_Container<SgNameGroup*> SgNameGroupPtrList;
248typedef SgNameGroupPtrList* SgNameGroupPtrListPtr;
251typedef Rose_STL_Container<SgDataStatementGroup*> SgDataStatementGroupPtrList;
252typedef SgDataStatementGroupPtrList* SgDataStatementGroupPtrListPtr;
255typedef Rose_STL_Container<SgDataStatementObject*> SgDataStatementObjectPtrList;
256typedef SgDataStatementObjectPtrList* SgDataStatementObjectPtrListPtr;
259typedef Rose_STL_Container<SgDataStatementValue*> SgDataStatementValuePtrList;
260typedef SgDataStatementValuePtrList* SgDataStatementValuePtrListPtr;
263typedef Rose_STL_Container<SgCommonBlockObject*> SgCommonBlockObjectPtrList;
264typedef SgCommonBlockObjectPtrList* SgCommonBlockObjectPtrListPtr;
267typedef Rose_STL_Container<SgDimensionObject*> SgDimensionObjectPtrList;
268typedef SgDimensionObjectPtrList* SgDimensionObjectPtrListPtr;
271typedef Rose_STL_Container<SgLabelSymbol*> SgLabelSymbolPtrList;
272typedef SgLabelSymbolPtrList* SgLabelSymbolPtrListPtr;
275typedef Rose_STL_Container<SgFormatItem*> SgFormatItemPtrList;
276typedef SgFormatItemPtrList* SgFormatItemPtrListPtr;
282typedef Rose_STL_Container<rose_addr_t> SgAddressList;
283typedef SgAddressList* SgAddressListPtr;
285#ifdef ROSE_ENABLE_BINARY_ANALYSIS
286typedef Rose_STL_Container<rose_rva_t> SgRVAList;
287typedef SgRVAList* SgRVAListPtr;
289typedef Rose_STL_Container<SgAsmPEExportEntry*> SgAsmPEExportEntryPtrList;
290typedef SgAsmPEExportEntryPtrList* SgAsmPEExportEntryPtrListPtr;
293typedef Rose_STL_Container<uint16_t> SgUnsigned16List;
294typedef SgUnsigned16List* SgUnsigned16ListPtr;
296typedef Rose_STL_Container<unsigned> SgUnsignedList;
297typedef SgUnsignedList* SgUnsignedListPtr;
300typedef Rose_STL_Container<size_t> SgSizeTList;
301typedef SgSizeTList* SgSizeTListPtr;
303#ifdef ROSE_ENABLE_BINARY_ANALYSIS
304typedef Rose_STL_Container<SgAsmNEEntryPoint*> SgAsmNEEntryPointPtrList;
305typedef SgAsmNEEntryPointPtrList* SgAsmNEEntryPointPtrListPtr;
307typedef Rose_STL_Container<SgAsmNERelocEntry*> SgAsmNERelocEntryPtrList;
308typedef SgAsmNERelocEntryPtrList* SgAsmNERelocEntryPtrListPtr;
310typedef Rose_STL_Container<SgAsmLEPageTableEntry*> SgAsmLEPageTableEntryPtrList;
311typedef SgAsmLEPageTableEntryPtrList* SgAsmLEPageTableEntryPtrListPtr;
313typedef Rose_STL_Container<SgAsmLEEntryPoint*> SgAsmLEEntryPointPtrList;
314typedef SgAsmLEEntryPointPtrList* SgAsmLEEntryPointPtrListPtr;
318typedef Rose_STL_Container<SgAsmLERelocEntry*> SgAsmLERelocEntryPtrList;
319typedef SgAsmLERelocEntryPtrList* SgAsmLERelocEntryPtrListPtr;
321typedef Rose_STL_Container<SgAsmGenericHeader*> SgAsmGenericHeaderPtrList;
322typedef SgAsmGenericHeaderPtrList* SgAsmGenericHeaderPtrListPtr;
324typedef Rose_STL_Container<SgAsmGenericDLL*> SgAsmGenericDLLPtrList;
325typedef SgAsmGenericDLLPtrList* SgAsmGenericDLLPtrListPtr;
328typedef Rose_STL_Container<unsigned char> SgUnsignedCharList;
329typedef SgUnsignedCharList* SgUnsignedCharListPtr;
334typedef Rose_STL_Container<SgModuleStatement*> SgModuleStatementPtrList;
335typedef SgModuleStatementPtrList* SgModuleStatementPtrListPtr;
338typedef Rose_STL_Container<SgJavaPackageDeclaration*> SgJavaPackageDeclarationPtrList;
341typedef Rose_STL_Container<SgJavaImportStatement*> SgJavaImportStatementPtrList;
344typedef Rose_STL_Container<SgClassDeclaration*> SgClassDeclarationPtrList;
347typedef Rose_STL_Container<SgRenamePair*> SgRenamePairPtrList;
348typedef SgRenamePairPtrList* SgRenamePairPtrListPtr;
351typedef Rose_STL_Container<SgInterfaceBody*> SgInterfaceBodyPtrList;
352typedef SgInterfaceBodyPtrList* SgInterfaceBodyPtrListPtr;
354#ifdef ROSE_ENABLE_BINARY_ANALYSIS
356typedef Rose_STL_Container<SgAsmDwarfLine*> SgAsmDwarfLinePtrList;
357typedef SgAsmDwarfLinePtrList* SgAsmDwarfLinePtrListPtr;
359typedef Rose_STL_Container<SgAsmDwarfMacro*> SgAsmDwarfMacroPtrList;
360typedef SgAsmDwarfMacroPtrList* SgAsmDwarfMacroPtrListPtr;
362typedef Rose_STL_Container<SgAsmDwarfConstruct*> SgAsmDwarfConstructPtrList;
363typedef SgAsmDwarfConstructPtrList* SgAsmDwarfConstructPtrListPtr;
365typedef Rose_STL_Container<SgAsmDwarfCompilationUnit*> SgAsmDwarfCompilationUnitPtrList;
366typedef SgAsmDwarfCompilationUnitPtrList* SgAsmDwarfCompilationUnitPtrListPtr;
372typedef Rose_STL_Container<SgOmpClause*> SgOmpClausePtrList;
373typedef SgOmpClausePtrList* SgOmpClausePtrListPtr;
375typedef Rose_STL_Container<SgOmpSectionStatement*> SgOmpSectionStatementPtrList;
376typedef SgOmpSectionStatementPtrList* SgOmpSectionStatementPtrListPtr;
379typedef Rose_STL_Container<SgJavaMemberValuePair*> SgJavaMemberValuePairPtrList;
380typedef SgJavaMemberValuePairPtrList* SgJavaMemberValuePairPtrListPtr;
388#ifdef ROSE_ENABLE_BINARY_ANALYSIS
390typedef Rose_STL_Container<SgAsmRegisterReferenceExpression*> SgAsmRegisterReferenceExpressionPtrList;
391typedef SgAsmRegisterReferenceExpressionPtrList* SgAsmRegisterReferenceExpressionPtrListPtr;
395typedef Rose_STL_Container<SgLambdaCapture*> SgLambdaCapturePtrList;
396typedef SgLambdaCapturePtrList* SgLambdaCapturePtrListPtr;
400typedef Rose_STL_Container<SgSourceFile*> SgSourceFilePtrList;
401typedef SgSourceFilePtrList* SgSourceFilePtrListPtr;
405typedef Rose_STL_Container<SgIncludeFile*> SgIncludeFilePtrList;
406typedef SgIncludeFilePtrList* SgIncludeFilePtrListPtr;
410typedef Rose_STL_Container<SgAdaComponentClause*> SgAdaComponentClausePtrList;
411typedef SgAdaComponentClausePtrList* SgAdaComponentClausePtrListPtr;
414class TokenStreamSequenceToNodeMapping;
416class PreviousAndNextNodeData;
421#ifdef ROSE_ENABLE_BINARY_ANALYSIS
422#include <SgSharedVector.h>
427typedef Rose_STL_Container<SgAsmElfRelocEntry*> SgAsmElfRelocEntryPtrList;
428typedef SgAsmElfRelocEntryPtrList* SgAsmElfRelocEntryPtrListPtr;
430typedef Rose_STL_Container<SgAsmElfNoteEntry*> SgAsmElfNoteEntryPtrList;
431typedef SgAsmElfNoteEntryPtrList* SgAsmElfNoteEntryPtrListPtr;
433typedef Rose_STL_Container<SgAsmElfDynamicEntry*> SgAsmElfDynamicEntryPtrList;
434typedef SgAsmElfDynamicEntryPtrList* SgAsmElfDynamicEntryPtrListPtr;
436typedef Rose_STL_Container<SgAsmElfEHFrameEntryCI*> SgAsmElfEHFrameEntryCIPtrList;
437typedef SgAsmElfEHFrameEntryCIPtrList* SgAsmElfEHFrameEntryCIPtrListPtr;
439typedef Rose_STL_Container<SgAsmElfEHFrameEntryFD*> SgAsmElfEHFrameEntryFDPtrList;
440typedef SgAsmElfEHFrameEntryFDPtrList* SgAsmElfEHFrameEntryFDPtrListPtr;
442typedef Rose_STL_Container<SgAsmElfSegmentTableEntry*> SgAsmElfSegmentTableEntryPtrList;
443typedef SgAsmElfSegmentTableEntryPtrList* SgAsmElfSegmentTableEntryPtrListPtr;
445typedef Rose_STL_Container<SgAsmElfSymverEntry*> SgAsmElfSymverEntryPtrList;
446typedef SgAsmElfSymverEntryPtrList* SgAsmElfSymverEntryPtrListPtr;
448typedef Rose_STL_Container<SgAsmElfSymverDefinedEntry*> SgAsmElfSymverDefinedEntryPtrList;
449typedef SgAsmElfSymverDefinedEntryPtrList* SgAsmElfSymverDefinedEntryPtrListPtr;
451typedef Rose_STL_Container<SgAsmElfSymverDefinedAux*> SgAsmElfSymverDefinedAuxPtrList;
452typedef SgAsmElfSymverDefinedAuxPtrList* SgAsmElfSymverDefinedAuxPtrListPtr;
454typedef Rose_STL_Container<SgAsmElfSymverNeededEntry*> SgAsmElfSymverNeededEntryPtrList;
455typedef SgAsmElfSymverNeededEntryPtrList* SgAsmElfSymverNeededEntryPtrListPtr;
457typedef Rose_STL_Container<SgAsmElfSymverNeededAux*> SgAsmElfSymverNeededAuxPtrList;
458typedef SgAsmElfSymverNeededAuxPtrList* SgAsmElfSymverNeededAuxPtrListPtr;
460typedef Rose_STL_Container<SgAsmJvmAttribute*> SgAsmJvmAttributePtrList;
461typedef SgAsmJvmAttributePtrList* SgAsmJvmAttributePtrListPtr;
463typedef Rose_STL_Container<SgAsmJvmBootstrapMethod*> SgAsmJvmBootstrapMethodPtrList;
464typedef SgAsmJvmBootstrapMethodPtrList* SgAsmJvmBootstrapMethodPtrListPtr;
466typedef Rose_STL_Container<SgAsmJvmInnerClassesEntry*> SgAsmJvmInnerClassesEntryPtrList;
467typedef SgAsmJvmInnerClassesEntryPtrList* SgAsmJvmInnerClassesEntryPtrListPtr;
469typedef Rose_STL_Container<SgAsmJvmConstantPoolEntry*> SgAsmJvmConstantPoolEntryPtrList;
470typedef SgAsmJvmConstantPoolEntryPtrList* SgAsmJvmConstantPoolEntryPtrListPtr;
472typedef Rose_STL_Container<SgAsmJvmExceptionHandler*> SgAsmJvmExceptionHandlerPtrList;
473typedef SgAsmJvmExceptionHandlerPtrList* SgAsmJvmExceptionHandlerPtrListPtr;
475typedef Rose_STL_Container<SgAsmJvmField*> SgAsmJvmFieldPtrList;
476typedef SgAsmJvmFieldPtrList* SgAsmJvmFieldPtrListPtr;
478typedef Rose_STL_Container<SgAsmJvmMethodParametersEntry*> SgAsmJvmMethodParametersEntryPtrList;
479typedef SgAsmJvmMethodParametersEntryPtrList* SgAsmJvmMethodParametersEntryPtrListPtr;
481typedef Rose_STL_Container<SgAsmJvmLineNumberEntry*> SgAsmJvmLineNumberEntryPtrList;
482typedef SgAsmJvmLineNumberEntryPtrList* SgAsmJvmLineNumberEntryPtrListPtr;
484typedef Rose_STL_Container<SgAsmJvmLocalVariableEntry*> SgAsmJvmLocalVariableEntryPtrList;
485typedef SgAsmJvmLocalVariableEntryPtrList* SgAsmJvmLocalVariableEntryPtrListPtr;
487typedef Rose_STL_Container<SgAsmJvmLocalVariableTypeEntry*> SgAsmJvmLocalVariableTypeEntryPtrList;
488typedef SgAsmJvmLocalVariableTypeEntryPtrList* SgAsmJvmLocalVariableTypeEntryPtrListPtr;
490typedef Rose_STL_Container<SgAsmJvmMethod*> SgAsmJvmMethodPtrList;
491typedef SgAsmJvmMethodPtrList* SgAsmJvmMethodPtrListPtr;
493typedef Rose_STL_Container<SgAsmJvmStackMapFrame*> SgAsmJvmStackMapFramePtrList;
494typedef SgAsmJvmStackMapFramePtrList* SgAsmJvmStackMapFramePtrListPtr;
496typedef Rose_STL_Container<SgAsmJvmStackMapVerificationType*> SgAsmJvmStackMapVerificationTypePtrList;
497typedef SgAsmJvmStackMapVerificationTypePtrList* SgAsmJvmStackMapVerificationTypePtrListPtr;
499typedef Rose_STL_Container<SgAsmPERVASizePair*> SgAsmPERVASizePairPtrList;
500typedef SgAsmPERVASizePairPtrList* SgAsmPERVASizePairPtrListPtr;
505typedef Rose_STL_Container<SgToken*> SgTokenPtrList;
506typedef SgTokenPtrList* SgTokenPtrListPtr;
513typedef std::pair<int,int> LineColumnFilePosition;
514typedef std::pair<int,LineColumnFilePosition> FileIdLineColumnFilePosition;
516typedef std::pair<uint64_t,FileIdLineColumnFilePosition> AddressFileIdLineColumnFilePositionPair;
517typedef std::pair<FileIdLineColumnFilePosition,uint64_t> FileIdLineColumnFilePositionAddressPair;
521typedef std::multimap<uint64_t,FileIdLineColumnFilePosition> SgInstructionAddressSourcePositionMapPtrList;
522typedef std::multimap<FileIdLineColumnFilePosition,uint64_t> SgSourcePositionInstructionAddressMapPtrList;
524typedef std::pair<SgInstructionAddressSourcePositionMapPtrList*,SgSourcePositionInstructionAddressMapPtrList*> DwarfInstructionSourceMapReturnType;
526ROSE_DLL_API std::ostream& operator<<(std::ostream&,
const SgName&);
529std::ostream& operator<<(std::ostream&,
const std::vector<bool>&);
532std::ostream& operator<<(std::ostream&,
const std::set<int>&);
535std::ostream& operator<<(std::ostream&,
const std::map<SgNode*,int>&);
538std::ostream& operator<<(std::ostream&,
const std::map<SgNode*,std::string>&);
540#ifdef ROSE_ENABLE_BINARY_ANALYSIS
541std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgAsmStatement*>&);
542std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgAsmExpression*>&);
546std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgDataStatementObject*>&);
547std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgDataStatementValue*>&);
548std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgCommonBlockObject*>&);
549std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgDimensionObject*>&);
550std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgLabelSymbol*>&);
551std::ostream& operator<<(std::ostream&,
const Rose_STL_Container<SgFormatItem*>&);
560std::ostream & operator<< ( std::ostream & os,
const Rose_STL_Container<std::string> & l );
565std::ostream & operator<< ( std::ostream & os,
const std::multimap<rose_addr_t, rose_addr_t> & m );
566std::ostream & operator<< ( std::ostream & os,
const std::vector<std::pair<rose_addr_t, rose_addr_t> > & l );
569std::ostream & operator<< ( std::ostream & os,
const struct stat & sb );
574#ifdef ROSE_ENABLE_BINARY_ANALYSIS
576std::ostream & operator<< ( std::ostream & os,
const Rose_STL_Container<SgAsmStatement*> & l );
580std::ostream & operator<< ( std::ostream & os,
const std::set<SgSymbol*> & l );
Base class for references to a machine register.
This class represents the concept of a block (not a basic block from control flow analysis).
This class represents the concept of a declaration statement.
This class represents a directory within a projects file structure of files and directories.
This class represents the notion of an expression. Expressions are derived from SgLocatedNodes,...
This class represents a source file for a project (which may contian many source files and or directo...
This class represents the notion of a declared variable.
This class represents strings within the IR nodes.
This class represents the base class for all IR nodes within Sage III.
This class represents a OLD concept of the structure require for qualified names when they were in th...
This class represents the notion of a statement.
This class represents template argument within the use of a template to build an instantiation.
This class represents the base class for all types.
This class represents the variable refernece in expressions.