ROSE  0.11.17.0
sageGeneric.h
Go to the documentation of this file.
1 #ifndef _SAGEGENERIC_H
2 
3 #define _SAGEGENERIC_H 1
4 
11 
12 // note: the comments are right aligned to support code-blocks doxygen 1.3.X :)
13 
14 #include <stdexcept>
15 
16 #if __cplusplus >= 201103L
17 #include <type_traits>
18 #endif
19 
20 #if !defined(NDEBUG)
21 #include <typeinfo>
22 #include <iostream>
23 #include <sstream>
24 #endif /* NDEBUG */
25 
26 
27 #define WITH_BINARY_NODES 0
28 #define WITH_UNTYPED_NODES 0
29 
30 // #include "Cxx_Grammar.h"
31 
32 // DQ (10/5/2014): We can't include this here.
33 // #include "rose.h"
34 
35 #define SG_UNEXPECTED_NODE(X) (sg::unexpected_node(X, __FILE__, __LINE__))
36 #define SG_DEREF(X) (sg::deref(X, __FILE__, __LINE__))
37 #define SG_ASSERT_TYPE(SAGENODE, N) (sg::assert_sage_type<SAGENODE>(N, __FILE__, __LINE__))
38 #define SG_ERROR_IF(COND, MSG) (sg::report_error_if(COND, MSG, __FILE__, __LINE__))
39 
40 namespace sg
41 {
42  //
43  // non sage specific utilities
44 
47  template <class T>
48  static inline
49  void unused(const T&) {}
50 
52  template <class T1, class T2>
53  struct ConstLike
54  {
55  typedef T2 type;
56  };
57 
58  template <class T1, class T2>
59  struct ConstLike<const T1, T2>
60  {
61  typedef const T2 type;
62  };
63 
64  //
65  // error reporting
66 
68  template <class T, class E>
69  static inline
70  T conv(const E& el)
71  {
72  T res;
73 #if !defined(NDEBUG)
74  std::stringstream s;
75 
76  s << el;
77  s >> res;
78 #endif /* NDEBUG */
79  return res;
80  }
81 
82  static inline
83  void report_error(std::string desc, const char* file = 0, size_t ln = 0)
84  {
85  if (file)
86  {
87  const std::string at(" at ");
88  const std::string sep(" : ");
89  const std::string num(conv<std::string>(ln));
90 
91  desc = desc + at + file + sep + num;
92  }
93 
94  std::cerr << desc << std::endl;
95  throw std::logic_error(desc);
96  }
97 
98  static inline
99  void report_error_if(bool iserror, const std::string& desc, const char* file = 0, size_t ln = 0)
100  {
101  if (!iserror) return;
102 
103  report_error(desc, file, ln);
104  }
105 
107  template <class T>
108  T& deref(T* ptr, const char* file = 0, size_t ln = 0)
109  {
110  report_error_if(!ptr, "null dereference ", file, ln);
111  return *ptr;
112  }
113 
114  static inline
115  void unexpected_node(const SgNode& n, const char* file = 0, size_t ln = 0)
116  {
117  static const std::string msg = "unexpected node-type: ";
118 
119  report_error(msg + typeid(n).name(), file, ln);
120  }
121 
132  template <class _ReturnType>
134  {
135  typedef _ReturnType ReturnType;
137 
139  : res()
140  {}
141 
142  explicit
143  DispatchHandler(const ReturnType& defaultval)
144  : res(defaultval)
145  {}
146 
147  operator ReturnType() const { return res; }
148 
149  protected:
150  ReturnType res;
151  };
152 
153 
154  //
155  // Sage query functions
156 
158  template <class SageNode>
159  static inline
160  SageNode& assume_sage_type(SgNode& n)
161  {
162  return static_cast<SageNode&>(n);
163  }
164 
167  template <class SageNode>
168  static inline
169  const SageNode& assume_sage_type(const SgNode& n)
170  {
171  return static_cast<const SageNode&>(n);
172  }
173 
174 #define GEN_VISIT(X) \
175  void visit(X * n) { rv.handle(*n); }
176 
177  template <class RoseVisitor>
179  {
180 
181 #if __cplusplus >= 201103L
182  // rvalue ctor
183  VisitDispatcher(RoseVisitor&& rosevisitor, std::false_type)
184  : rv(std::move(rosevisitor))
185  {}
186 
187  // lvalue ctor
188  VisitDispatcher(const RoseVisitor& rosevisitor, std::true_type)
189  : rv(rosevisitor)
190  {}
191 #else
192  explicit
193  VisitDispatcher(const RoseVisitor& rosevisitor)
194  : rv(rosevisitor)
195  {}
196 #endif
197 
198  GEN_VISIT(SgAccessModifier)
199  GEN_VISIT(SgActualArgumentExpression)
200  GEN_VISIT(SgAbsOp)
201  GEN_VISIT(SgAdaAccessType)
202  GEN_VISIT(SgAdaAcceptStmt)
203  GEN_VISIT(SgAdaComponentClause)
204  GEN_VISIT(SgAdaDelayStmt)
205  GEN_VISIT(SgAdaEntryDecl)
206  GEN_VISIT(SgAdaExitStmt)
207  GEN_VISIT(SgAdaFloatType)
208  GEN_VISIT(SgAdaFloatVal)
209  GEN_VISIT(SgAdaFunctionRenamingDecl)
210  GEN_VISIT(SgAdaIndexConstraint)
211  GEN_VISIT(SgAdaLoopStmt)
212  GEN_VISIT(SgAdaModularType)
213  GEN_VISIT(SgAdaPackageBody)
214  GEN_VISIT(SgAdaPackageBodyDecl)
215  GEN_VISIT(SgAdaPackageSpec)
216  GEN_VISIT(SgAdaPackageSpecDecl)
217  GEN_VISIT(SgAdaPackageSymbol)
218  GEN_VISIT(SgAdaRangeConstraint)
220  GEN_VISIT(SgAdaRenamingDecl)
221  GEN_VISIT(SgAdaSelectStmt)
222  GEN_VISIT(SgAdaSelectAlternativeStmt)
223  GEN_VISIT(SgAdaSubtype)
224  GEN_VISIT(SgAdaTaskBody)
225  GEN_VISIT(SgAdaTaskBodyDecl)
226  GEN_VISIT(SgAdaTaskSpec)
227  GEN_VISIT(SgAdaTaskSpecDecl)
228  GEN_VISIT(SgAdaTaskSymbol)
229  GEN_VISIT(SgAdaTaskRefExp)
230  GEN_VISIT(SgAdaTaskType)
231  GEN_VISIT(SgAdaTaskTypeDecl)
232  GEN_VISIT(SgAdaTerminateStmt)
233  GEN_VISIT(SgAdaTypeConstraint)
234  GEN_VISIT(SgAddOp)
235  GEN_VISIT(SgAddressOfOp)
236  GEN_VISIT(SgAggregateInitializer)
237  GEN_VISIT(SgAliasSymbol)
238  GEN_VISIT(SgAllocateStatement)
239  GEN_VISIT(SgAndAssignOp)
240  GEN_VISIT(SgAndOp)
241  GEN_VISIT(SgArithmeticIfStatement)
242  GEN_VISIT(SgArrayType)
243  GEN_VISIT(SgArrowExp)
244  GEN_VISIT(SgArrowStarOp)
245 #if WITH_BINARY_NODES
246  GEN_VISIT(SgAsmA64AtOperand)
247  GEN_VISIT(SgAsmA64BarrierOperand)
248  GEN_VISIT(SgAsmA64CImmediateOperand)
249  GEN_VISIT(SgAsmA64Instruction)
250  GEN_VISIT(SgAsmA64PrefetchOperand)
251  GEN_VISIT(SgAsmA64SysMoveOperand)
252  GEN_VISIT(SgAsmBasicString)
253  GEN_VISIT(SgAsmBinaryAdd)
254  GEN_VISIT(SgAsmBinaryAddPostupdate)
255  GEN_VISIT(SgAsmBinaryAddPreupdate)
256  GEN_VISIT(SgAsmBinaryAsr)
257  GEN_VISIT(SgAsmBinaryDivide)
258  GEN_VISIT(SgAsmBinaryExpression)
259  GEN_VISIT(SgAsmBinaryLsl)
260  GEN_VISIT(SgAsmBinaryLsr)
261  GEN_VISIT(SgAsmBinaryMod)
262  GEN_VISIT(SgAsmBinaryMsl)
263  GEN_VISIT(SgAsmBinaryMultiply)
264  GEN_VISIT(SgAsmBinaryRor)
265  GEN_VISIT(SgAsmBinarySubtract)
268  GEN_VISIT(SgAsmBlock)
269  GEN_VISIT(SgAsmCoffStrtab)
270  GEN_VISIT(SgAsmCoffSymbol)
271  GEN_VISIT(SgAsmCoffSymbolList)
272  GEN_VISIT(SgAsmCoffSymbolTable)
273  GEN_VISIT(SgAsmCommonSubExpression)
274  GEN_VISIT(SgAsmControlFlagsExpression)
275  GEN_VISIT(SgAsmConstantExpression)
276  GEN_VISIT(SgAsmDOSExtendedHeader)
277  GEN_VISIT(SgAsmDOSFileHeader)
279  GEN_VISIT(SgAsmSynthesizedDeclaration)
281  GEN_VISIT(SgAsmDwarfAccessDeclaration)
282  GEN_VISIT(SgAsmDwarfArrayType)
283  GEN_VISIT(SgAsmDwarfBaseType)
284  GEN_VISIT(SgAsmDwarfCatchBlock)
285  GEN_VISIT(SgAsmDwarfClassTemplate)
286  GEN_VISIT(SgAsmDwarfClassType)
287  GEN_VISIT(SgAsmDwarfCommonBlock)
288  GEN_VISIT(SgAsmDwarfCommonInclusion)
289  GEN_VISIT(SgAsmDwarfCompilationUnit)
291  GEN_VISIT(SgAsmDwarfCondition)
292  GEN_VISIT(SgAsmDwarfConstType)
293  GEN_VISIT(SgAsmDwarfConstant)
294  GEN_VISIT(SgAsmDwarfConstruct)
295  GEN_VISIT(SgAsmDwarfConstructList)
296  GEN_VISIT(SgAsmDwarfDwarfProcedure)
297  GEN_VISIT(SgAsmDwarfEntryPoint)
298  GEN_VISIT(SgAsmDwarfEnumerationType)
299  GEN_VISIT(SgAsmDwarfEnumerator)
300  GEN_VISIT(SgAsmDwarfFileType)
301  GEN_VISIT(SgAsmDwarfFormalParameter)
302  GEN_VISIT(SgAsmDwarfFormatLabel)
303  GEN_VISIT(SgAsmDwarfFriend)
304  GEN_VISIT(SgAsmDwarfFunctionTemplate)
306  GEN_VISIT(SgAsmDwarfImportedModule)
307  GEN_VISIT(SgAsmDwarfImportedUnit)
308  GEN_VISIT(SgAsmDwarfInformation)
309  GEN_VISIT(SgAsmDwarfInheritance)
310  GEN_VISIT(SgAsmDwarfInlinedSubroutine)
311  GEN_VISIT(SgAsmDwarfInterfaceType)
312  GEN_VISIT(SgAsmDwarfLabel)
313  GEN_VISIT(SgAsmDwarfLexicalBlock)
314  GEN_VISIT(SgAsmDwarfLine)
315  GEN_VISIT(SgAsmDwarfLineList)
316  GEN_VISIT(SgAsmDwarfMacro)
317  GEN_VISIT(SgAsmDwarfMacroList)
318  GEN_VISIT(SgAsmDwarfMember)
319  GEN_VISIT(SgAsmDwarfModule)
320  GEN_VISIT(SgAsmDwarfMutableType)
321  GEN_VISIT(SgAsmDwarfNamelist)
322  GEN_VISIT(SgAsmDwarfNamelistItem)
323  GEN_VISIT(SgAsmDwarfNamespace)
324  GEN_VISIT(SgAsmDwarfPackedType)
325  GEN_VISIT(SgAsmDwarfPartialUnit)
326  GEN_VISIT(SgAsmDwarfPointerType)
327  GEN_VISIT(SgAsmDwarfPtrToMemberType)
328  GEN_VISIT(SgAsmDwarfReferenceType)
329  GEN_VISIT(SgAsmDwarfRestrictType)
330  GEN_VISIT(SgAsmDwarfSetType)
331  GEN_VISIT(SgAsmDwarfSharedType)
332  GEN_VISIT(SgAsmDwarfStringType)
333  GEN_VISIT(SgAsmDwarfStructureType)
334  GEN_VISIT(SgAsmDwarfSubprogram)
335  GEN_VISIT(SgAsmDwarfSubrangeType)
336  GEN_VISIT(SgAsmDwarfSubroutineType)
339  GEN_VISIT(SgAsmDwarfThrownType)
340  GEN_VISIT(SgAsmDwarfTryBlock)
341  GEN_VISIT(SgAsmDwarfTypedef)
342  GEN_VISIT(SgAsmDwarfUnionType)
343  GEN_VISIT(SgAsmDwarfUnknownConstruct)
345  GEN_VISIT(SgAsmDwarfUnspecifiedType)
346  GEN_VISIT(SgAsmDwarfUpcRelaxedType)
347  GEN_VISIT(SgAsmDwarfUpcSharedType)
348  GEN_VISIT(SgAsmDwarfUpcStrictType)
349  GEN_VISIT(SgAsmDwarfVariable)
350  GEN_VISIT(SgAsmDwarfVariant)
351  GEN_VISIT(SgAsmDwarfVariantPart)
352  GEN_VISIT(SgAsmDwarfVolatileType)
353  GEN_VISIT(SgAsmDwarfWithStmt)
354  GEN_VISIT(SgAsmElfDynamicEntry)
355  GEN_VISIT(SgAsmElfDynamicEntryList)
356  GEN_VISIT(SgAsmElfDynamicSection)
357  GEN_VISIT(SgAsmElfEHFrameEntryCI)
358  GEN_VISIT(SgAsmElfEHFrameEntryCIList)
359  GEN_VISIT(SgAsmElfEHFrameEntryFD)
360  GEN_VISIT(SgAsmElfEHFrameEntryFDList)
361  GEN_VISIT(SgAsmElfEHFrameSection)
362  GEN_VISIT(SgAsmElfFileHeader)
363  GEN_VISIT(SgAsmElfNoteEntry)
364  GEN_VISIT(SgAsmElfNoteEntryList)
365  GEN_VISIT(SgAsmElfNoteSection)
366  GEN_VISIT(SgAsmElfRelocEntry)
367  GEN_VISIT(SgAsmElfRelocEntryList)
368  GEN_VISIT(SgAsmElfRelocSection)
369  GEN_VISIT(SgAsmElfSection)
370  GEN_VISIT(SgAsmElfSectionTable)
371  GEN_VISIT(SgAsmElfSectionTableEntry)
372  GEN_VISIT(SgAsmElfSegmentTable)
373  GEN_VISIT(SgAsmElfSegmentTableEntry)
375  GEN_VISIT(SgAsmElfStringSection)
376  GEN_VISIT(SgAsmElfStrtab)
377  GEN_VISIT(SgAsmElfSymbol)
378  GEN_VISIT(SgAsmElfSymbolList)
379  GEN_VISIT(SgAsmElfSymbolSection)
380  GEN_VISIT(SgAsmElfSymverDefinedAux)
382  GEN_VISIT(SgAsmElfSymverDefinedEntry)
385  GEN_VISIT(SgAsmElfSymverEntry)
386  GEN_VISIT(SgAsmElfSymverEntryList)
387  GEN_VISIT(SgAsmElfSymverNeededAux)
388  GEN_VISIT(SgAsmElfSymverNeededAuxList)
389  GEN_VISIT(SgAsmElfSymverNeededEntry)
391  GEN_VISIT(SgAsmElfSymverNeededSection)
392  GEN_VISIT(SgAsmElfSymverSection)
393  GEN_VISIT(SgAsmExecutableFileFormat)
394  GEN_VISIT(SgAsmExprListExp)
395  GEN_VISIT(SgAsmExpression)
397  GEN_VISIT(SgAsmFloatType)
398  GEN_VISIT(SgAsmFloatValueExpression)
399  GEN_VISIT(SgAsmFunction)
400  GEN_VISIT(SgAsmGenericDLL)
401  GEN_VISIT(SgAsmGenericDLLList)
402  GEN_VISIT(SgAsmGenericFile)
403  GEN_VISIT(SgAsmGenericFileList)
404  GEN_VISIT(SgAsmGenericFormat)
405  GEN_VISIT(SgAsmGenericHeader)
406  GEN_VISIT(SgAsmGenericHeaderList)
407  GEN_VISIT(SgAsmGenericSection)
408  GEN_VISIT(SgAsmGenericSectionList)
409  GEN_VISIT(SgAsmGenericString)
410  GEN_VISIT(SgAsmGenericStrtab)
411  GEN_VISIT(SgAsmGenericSymbol)
412  GEN_VISIT(SgAsmGenericSymbolList)
414  GEN_VISIT(SgAsmInstruction)
415  GEN_VISIT(SgAsmIntegerValueExpression)
416  GEN_VISIT(SgAsmIntegerType)
417  GEN_VISIT(SgAsmInterpretation)
418  GEN_VISIT(SgAsmInterpretationList)
419  GEN_VISIT(SgAsmLEEntryPoint)
420  GEN_VISIT(SgAsmLEEntryTable)
421  GEN_VISIT(SgAsmLEFileHeader)
422  GEN_VISIT(SgAsmLENameTable)
423  GEN_VISIT(SgAsmLEPageTable)
424  GEN_VISIT(SgAsmLEPageTableEntry)
425  GEN_VISIT(SgAsmLERelocTable)
426  GEN_VISIT(SgAsmLESection)
427  GEN_VISIT(SgAsmLESectionTable)
428  GEN_VISIT(SgAsmLESectionTableEntry)
429  GEN_VISIT(SgAsmM68kInstruction)
431  GEN_VISIT(SgAsmMipsInstruction)
432  GEN_VISIT(SgAsmNEEntryPoint)
433  GEN_VISIT(SgAsmNEEntryTable)
434  GEN_VISIT(SgAsmNEFileHeader)
435  GEN_VISIT(SgAsmNEModuleTable)
436  GEN_VISIT(SgAsmNENameTable)
437  GEN_VISIT(SgAsmNERelocEntry)
438  GEN_VISIT(SgAsmNERelocTable)
439  GEN_VISIT(SgAsmNESection)
440  GEN_VISIT(SgAsmNESectionTable)
441  GEN_VISIT(SgAsmNESectionTableEntry)
442  GEN_VISIT(SgAsmNEStringTable)
443  GEN_VISIT(SgAsmNode)
444  GEN_VISIT(SgAsmOp)
445  GEN_VISIT(SgAsmOperandList)
446  GEN_VISIT(SgAsmPEExportDirectory)
447  GEN_VISIT(SgAsmPEExportEntry)
448  GEN_VISIT(SgAsmPEExportEntryList)
449  GEN_VISIT(SgAsmPEExportSection)
450  GEN_VISIT(SgAsmPEFileHeader)
451  GEN_VISIT(SgAsmPEImportDirectory)
452  GEN_VISIT(SgAsmPEImportDirectoryList)
453  GEN_VISIT(SgAsmPEImportItem)
454  GEN_VISIT(SgAsmPEImportItemList)
455  GEN_VISIT(SgAsmPEImportSection)
456  GEN_VISIT(SgAsmPERVASizePair)
457  GEN_VISIT(SgAsmPERVASizePairList)
458  GEN_VISIT(SgAsmPESection)
459  GEN_VISIT(SgAsmPESectionTable)
460  GEN_VISIT(SgAsmPESectionTableEntry)
461  GEN_VISIT(SgAsmPEStringSection)
462  GEN_VISIT(SgAsmPowerpcInstruction)
463  GEN_VISIT(SgAsmRegisterNames)
465  GEN_VISIT(SgAsmRiscOperation)
466  GEN_VISIT(SgAsmScalarType)
467  GEN_VISIT(SgAsmStatement)
468  GEN_VISIT(SgAsmStaticData)
469  GEN_VISIT(SgAsmStmt)
470  GEN_VISIT(SgAsmStoredString)
471  GEN_VISIT(SgAsmStringStorage)
472  GEN_VISIT(SgAsmType)
473  GEN_VISIT(SgAsmUnaryExpression)
474  GEN_VISIT(SgAsmUnaryMinus)
475  GEN_VISIT(SgAsmUnaryPlus)
476  GEN_VISIT(SgAsmUnaryRrx)
477  GEN_VISIT(SgAsmUnarySignedExtend)
478  GEN_VISIT(SgAsmUnaryUnsignedExtend)
479  GEN_VISIT(SgAsmUnaryTruncate)
480  GEN_VISIT(SgAsmValueExpression)
481  GEN_VISIT(SgAsmVectorType)
482  GEN_VISIT(SgAsmX86Instruction)
483  GEN_VISIT(SgAsmBinaryAddressSymbol)
484  GEN_VISIT(SgAsmBinaryDataSymbol)
485 #endif /* WITH_BINARY_NODES */
486  GEN_VISIT(SgAssertStmt)
487  GEN_VISIT(SgAssignInitializer)
488  GEN_VISIT(SgAssignOp)
489  GEN_VISIT(SgAssignStatement)
490  GEN_VISIT(SgAssignedGotoStatement)
491  GEN_VISIT(SgAssociateStatement)
492  GEN_VISIT(SgAsteriskShapeExp)
493  GEN_VISIT(SgAtOp)
494  GEN_VISIT(SgAttribute)
496  GEN_VISIT(SgAutoType)
497  GEN_VISIT(SgAwaitExpression)
498  GEN_VISIT(SgBackspaceStatement)
499  GEN_VISIT(SgBaseClass)
500  GEN_VISIT(SgExpBaseClass)
501  GEN_VISIT(SgBaseClassModifier)
502  GEN_VISIT(SgBasicBlock)
503  GEN_VISIT(SgBidirectionalGraph)
504  GEN_VISIT(SgBinaryOp)
505  GEN_VISIT(SgBitAndOp)
506  GEN_VISIT(SgBitAttribute)
507  GEN_VISIT(SgBitComplementOp)
508  GEN_VISIT(SgBitEqvOp)
509  GEN_VISIT(SgBitOrOp)
510  GEN_VISIT(SgBitXorOp)
511  GEN_VISIT(SgBlockDataStatement)
512  GEN_VISIT(SgBoolValExp)
513  GEN_VISIT(SgBreakStmt)
514  GEN_VISIT(SgBracedInitializer)
516  GEN_VISIT(SgCaseOptionStmt)
517  GEN_VISIT(SgCastExp)
518  GEN_VISIT(SgCatchOptionStmt)
519  GEN_VISIT(SgCatchStatementSeq)
520  GEN_VISIT(SgCharVal)
521  GEN_VISIT(SgChar16Val)
522  GEN_VISIT(SgChar32Val)
523  GEN_VISIT(SgChooseExpression)
524  GEN_VISIT(SgClassDecl_attr)
525  GEN_VISIT(SgClassDeclaration)
526  GEN_VISIT(SgClassDefinition)
527  GEN_VISIT(SgClassNameRefExp)
528  GEN_VISIT(SgClassSymbol)
529  GEN_VISIT(SgClassType)
531  GEN_VISIT(SgClinkageEndStatement)
532  GEN_VISIT(SgClinkageStartStatement)
533  GEN_VISIT(SgCloseStatement)
534  GEN_VISIT(SgColonShapeExp)
535  GEN_VISIT(SgCommaOpExp)
536  GEN_VISIT(SgCommonBlock)
537  GEN_VISIT(SgCommonBlockObject)
538  GEN_VISIT(SgCommonSymbol)
539  GEN_VISIT(SgComplexVal)
540  GEN_VISIT(SgComprehension)
541  GEN_VISIT(SgCompoundAssignOp)
542  GEN_VISIT(SgCompoundInitializer)
543  GEN_VISIT(SgCompoundLiteralExp)
544  GEN_VISIT(SgComputedGotoStatement)
545  GEN_VISIT(SgConcatenationOp)
546  GEN_VISIT(SgConditionalExp)
547  GEN_VISIT(SgConjugateOp)
548  GEN_VISIT(SgConstVolatileModifier)
549  GEN_VISIT(SgConstructorInitializer)
550  GEN_VISIT(SgContainsStatement)
551  GEN_VISIT(SgContinueStmt)
552  GEN_VISIT(SgCtorInitializerList)
553  GEN_VISIT(SgDataStatementGroup)
554  GEN_VISIT(SgDataStatementObject)
555  GEN_VISIT(SgDataStatementValue)
556  GEN_VISIT(SgDeadIfDirectiveStatement)
557  GEN_VISIT(SgDeallocateStatement)
558  GEN_VISIT(SgDeclarationModifier)
559  GEN_VISIT(SgDeclarationScope)
560  GEN_VISIT(SgDeclarationStatement)
561  GEN_VISIT(SgDeclType)
562  GEN_VISIT(SgDefaultOptionStmt)
563  GEN_VISIT(SgDefaultSymbol)
564  GEN_VISIT(SgDefineDirectiveStatement)
565  GEN_VISIT(SgDeleteExp)
566  GEN_VISIT(SgDerivedTypeStatement)
567  GEN_VISIT(SgDesignatedInitializer)
568  GEN_VISIT(SgDictionaryComprehension)
569  GEN_VISIT(SgDictionaryExp)
570  GEN_VISIT(SgDimensionObject)
571  GEN_VISIT(SgDirectory)
572  GEN_VISIT(SgDirectoryList)
573  GEN_VISIT(SgDivAssignOp)
574  GEN_VISIT(SgDivideOp)
575  GEN_VISIT(SgDoWhileStmt)
576  GEN_VISIT(SgDotExp)
577  GEN_VISIT(SgDotStarOp)
578  GEN_VISIT(SgDoubleVal)
579  GEN_VISIT(SgElaboratedTypeModifier)
580  GEN_VISIT(SgElementwiseOp)
581  GEN_VISIT(SgElementwiseAddOp)
582  GEN_VISIT(SgElementwiseDivideOp)
583  GEN_VISIT(SgElementwiseLeftDivideOp)
584  GEN_VISIT(SgElementwiseMultiplyOp)
585  GEN_VISIT(SgElementwisePowerOp)
586  GEN_VISIT(SgElementwiseSubtractOp)
587  GEN_VISIT(SgElseDirectiveStatement)
588  GEN_VISIT(SgElseWhereStatement)
589  GEN_VISIT(SgElseifDirectiveStatement)
590  GEN_VISIT(SgEmptyDeclaration)
591  GEN_VISIT(SgEmptyDirectiveStatement)
592  GEN_VISIT(SgEndfileStatement)
593  GEN_VISIT(SgEndifDirectiveStatement)
594  GEN_VISIT(SgEntryStatement)
595  GEN_VISIT(SgEnumDeclaration)
596  GEN_VISIT(SgEnumFieldSymbol)
597  GEN_VISIT(SgEnumSymbol)
598  GEN_VISIT(SgEnumType)
599  GEN_VISIT(SgEnumVal)
600  GEN_VISIT(SgEqualityOp)
601  GEN_VISIT(SgEquivalenceStatement)
602  GEN_VISIT(SgErrorDirectiveStatement)
603  GEN_VISIT(SgExecStatement)
604  GEN_VISIT(SgExponentiationOp)
605  GEN_VISIT(SgExponentiationAssignOp)
606  GEN_VISIT(SgExprListExp)
607  GEN_VISIT(SgExprStatement)
608  GEN_VISIT(SgExpression)
609  GEN_VISIT(SgExpressionRoot)
610  GEN_VISIT(SgFile)
611  GEN_VISIT(SgFileList)
612  GEN_VISIT(SgFloatVal)
613  GEN_VISIT(SgFloat128Val)
614  GEN_VISIT(SgFloat80Val)
615  GEN_VISIT(SgFoldExpression)
616  GEN_VISIT(SgFlushStatement)
617  GEN_VISIT(SgForAllStatement)
618  GEN_VISIT(SgForInitStatement)
619  GEN_VISIT(SgForStatement)
620  GEN_VISIT(SgFormatItem)
621  GEN_VISIT(SgFormatItemList)
622  GEN_VISIT(SgFormatStatement)
623  GEN_VISIT(SgFortranDo)
624  GEN_VISIT(SgFortranIncludeLine)
625  GEN_VISIT(SgFortranNonblockedDo)
626  GEN_VISIT(SgFuncDecl_attr)
627  GEN_VISIT(SgFunctionCallExp)
628  GEN_VISIT(SgFunctionDeclaration)
629  GEN_VISIT(SgFunctionDefinition)
630  GEN_VISIT(SgFunctionParameterScope)
631  GEN_VISIT(SgFunctionModifier)
632  GEN_VISIT(SgFunctionParameterList)
633  GEN_VISIT(SgFunctionParameterRefExp)
634  GEN_VISIT(SgFunctionParameterTypeList)
635  GEN_VISIT(SgFunctionRefExp)
636  GEN_VISIT(SgFunctionSymbol)
637  GEN_VISIT(SgFunctionType)
638  GEN_VISIT(SgFunctionTypeSymbol)
639  GEN_VISIT(SgFunctionTypeTable)
640  GEN_VISIT(SgTypeTable)
641  GEN_VISIT(SgGlobal)
642  GEN_VISIT(SgGotoStatement)
643  GEN_VISIT(SgGraph)
644  GEN_VISIT(SgGraphEdge)
645  GEN_VISIT(SgGraphEdgeList)
646  GEN_VISIT(SgGraphNode)
647  GEN_VISIT(SgGraphNodeList)
648  GEN_VISIT(SgGreaterOrEqualOp)
649  GEN_VISIT(SgGreaterThanOp)
650  GEN_VISIT(SgIOItemExpression)
651  GEN_VISIT(SgIOStatement)
652  GEN_VISIT(SgIdentDirectiveStatement)
653  GEN_VISIT(SgIfDirectiveStatement)
654  GEN_VISIT(SgIfStmt)
655  GEN_VISIT(SgIfdefDirectiveStatement)
656  GEN_VISIT(SgIfndefDirectiveStatement)
657  GEN_VISIT(SgImageControlStatement)
658  GEN_VISIT(SgImagPartOp)
659  GEN_VISIT(SgImplicitStatement)
660  GEN_VISIT(SgImpliedDo)
661  GEN_VISIT(SgImportStatement)
662  GEN_VISIT(SgIncidenceDirectedGraph)
663  GEN_VISIT(SgIncidenceUndirectedGraph)
664  GEN_VISIT(SgIncludeDirectiveStatement)
665  GEN_VISIT(SgIncludeFile)
667  GEN_VISIT(SgInitializedName)
668  GEN_VISIT(SgInitializer)
669  GEN_VISIT(SgInquireStatement)
671  GEN_VISIT(SgIntVal)
672  GEN_VISIT(SgIntegerDivideOp)
673  GEN_VISIT(SgIntegerDivideAssignOp)
674  GEN_VISIT(SgInterfaceBody)
675  GEN_VISIT(SgHeaderFileBody)
676  GEN_VISIT(SgHeaderFileReport)
677  GEN_VISIT(SgInterfaceStatement)
678  GEN_VISIT(SgInterfaceSymbol)
679  GEN_VISIT(SgIntrinsicSymbol)
680  GEN_VISIT(SgIsOp)
681  GEN_VISIT(SgIsNotOp)
682  GEN_VISIT(SgIorAssignOp)
683  GEN_VISIT(SgJovialBitType)
684  GEN_VISIT(SgJovialBitVal)
685  GEN_VISIT(SgJovialTableType)
686  GEN_VISIT(SgJovialCompoolStatement)
687  GEN_VISIT(SgJovialForThenStatement)
688  GEN_VISIT(SgJovialDefineDeclaration)
689  GEN_VISIT(SgJovialDirectiveStatement)
690  GEN_VISIT(SgJovialOverlayDeclaration)
691  GEN_VISIT(SgJovialTablePresetExp)
692  GEN_VISIT(SgJovialTableStatement)
693  GEN_VISIT(SgKeyDatumPair)
694  GEN_VISIT(SgCudaKernelExecConfig)
695  GEN_VISIT(SgCudaKernelCallExp)
696  GEN_VISIT(SgLabelRefExp)
697  GEN_VISIT(SgLabelStatement)
698  GEN_VISIT(SgJavaLabelStatement)
699  GEN_VISIT(SgLabelSymbol)
700  GEN_VISIT(SgJavaLabelSymbol)
701  GEN_VISIT(SgLambdaCapture)
702  GEN_VISIT(SgLambdaCaptureList)
703  GEN_VISIT(SgLambdaExp)
704  GEN_VISIT(SgLambdaRefExp)
705  GEN_VISIT(SgLeftDivideOp)
706  GEN_VISIT(SgLessOrEqualOp)
707  GEN_VISIT(SgLessThanOp)
708  GEN_VISIT(SgLineDirectiveStatement)
710  GEN_VISIT(SgLinkageModifier)
711  GEN_VISIT(SgListComprehension)
712  GEN_VISIT(SgListExp)
713  GEN_VISIT(SgLocatedNode)
714  GEN_VISIT(SgLocatedNodeSupport)
715  GEN_VISIT(SgLongDoubleVal)
716  GEN_VISIT(SgLongIntVal)
717  GEN_VISIT(SgLongLongIntVal)
718  GEN_VISIT(SgLshiftAssignOp)
719  GEN_VISIT(SgLshiftOp)
720  GEN_VISIT(SgMagicColonExp)
721  GEN_VISIT(SgMatrixExp)
722  GEN_VISIT(SgMatrixTransposeOp)
723  GEN_VISIT(SgMatlabForStatement)
724  GEN_VISIT(SgMemberFunctionDeclaration)
725  GEN_VISIT(SgMemberFunctionRefExp)
726  GEN_VISIT(SgMemberFunctionSymbol)
727  GEN_VISIT(SgMemberFunctionType)
728  GEN_VISIT(SgMembershipOp)
730  GEN_VISIT(SgMinusAssignOp)
731  GEN_VISIT(SgMinusMinusOp)
732  GEN_VISIT(SgMinusOp)
733  GEN_VISIT(SgModAssignOp)
734  GEN_VISIT(SgModOp)
735  GEN_VISIT(SgModifier)
736  GEN_VISIT(SgModifierNodes)
737  GEN_VISIT(SgModifierType)
738  GEN_VISIT(SgModuleStatement)
739  GEN_VISIT(SgModuleSymbol)
740  GEN_VISIT(SgMultAssignOp)
741  GEN_VISIT(SgMultiplyOp)
742  GEN_VISIT(SgName)
743  GEN_VISIT(SgNameGroup)
744  GEN_VISIT(SgNamedType)
745  GEN_VISIT(SgNamelistStatement)
749  GEN_VISIT(SgNamespaceSymbol)
750  GEN_VISIT(SgNaryOp)
751  GEN_VISIT(SgNaryBooleanOp)
752  GEN_VISIT(SgNaryComparisonOp)
753  GEN_VISIT(SgNewExp)
754  GEN_VISIT(SgNode)
755  GEN_VISIT(SgNoexceptOp)
756  GEN_VISIT(SgNotEqualOp)
757  GEN_VISIT(SgNotOp)
758  GEN_VISIT(SgNonMembershipOp)
759  GEN_VISIT(SgNonrealDecl)
760  GEN_VISIT(SgNonrealRefExp)
761  GEN_VISIT(SgNonrealSymbol)
762  GEN_VISIT(SgNonrealType)
763  GEN_VISIT(SgNonrealBaseClass)
764  GEN_VISIT(SgNullExpression)
765  GEN_VISIT(SgNullptrValExp)
766  GEN_VISIT(SgNullStatement)
767  GEN_VISIT(SgNullifyStatement)
768  GEN_VISIT(SgOmpAtomicStatement)
769  GEN_VISIT(SgOmpBarrierStatement)
770  GEN_VISIT(SgOmpCriticalStatement)
771  GEN_VISIT(SgOmpClauseBodyStatement)
772  GEN_VISIT(SgOmpBodyStatement)
773  GEN_VISIT(SgOmpDoStatement)
774  GEN_VISIT(SgOmpFlushStatement)
775  GEN_VISIT(SgOmpDeclareSimdStatement)
776  GEN_VISIT(SgOmpForStatement)
777  GEN_VISIT(SgOmpForSimdStatement)
778  GEN_VISIT(SgOmpMasterStatement)
779  GEN_VISIT(SgOmpOrderedStatement)
780  GEN_VISIT(SgOmpParallelStatement)
781  GEN_VISIT(SgOmpSectionStatement)
782  GEN_VISIT(SgOmpSectionsStatement)
783  GEN_VISIT(SgOmpSingleStatement)
784  GEN_VISIT(SgOmpTaskStatement)
785  GEN_VISIT(SgOmpTaskwaitStatement)
786  GEN_VISIT(SgOmpThreadprivateStatement)
787  GEN_VISIT(SgOmpWorkshareStatement)
788  GEN_VISIT(SgOmpTargetStatement)
789  GEN_VISIT(SgOmpTargetDataStatement)
790  GEN_VISIT(SgOmpSimdStatement)
791  GEN_VISIT(SgOmpClause)
792  GEN_VISIT(SgOmpBeginClause)
793  GEN_VISIT(SgOmpCollapseClause)
794  GEN_VISIT(SgOmpCopyinClause)
795  GEN_VISIT(SgOmpCopyprivateClause)
796  GEN_VISIT(SgOmpDefaultClause)
797  GEN_VISIT(SgOmpEndClause)
798  GEN_VISIT(SgOmpExpressionClause)
799  GEN_VISIT(SgOmpFirstprivateClause)
800  GEN_VISIT(SgOmpIfClause)
801  GEN_VISIT(SgOmpFinalClause)
802  GEN_VISIT(SgOmpPriorityClause)
803  GEN_VISIT(SgOmpDeviceClause)
804  GEN_VISIT(SgOmpLastprivateClause)
805  GEN_VISIT(SgOmpNowaitClause)
806  GEN_VISIT(SgOmpNumThreadsClause)
807  GEN_VISIT(SgOmpOrderedClause)
808  GEN_VISIT(SgOmpPrivateClause)
809  GEN_VISIT(SgOmpReductionClause)
810  GEN_VISIT(SgOmpScheduleClause)
811  GEN_VISIT(SgOmpSharedClause)
812  GEN_VISIT(SgOmpUntiedClause)
813  GEN_VISIT(SgOmpMergeableClause)
814  GEN_VISIT(SgOmpVariablesClause)
815  GEN_VISIT(SgOmpMapClause)
816  GEN_VISIT(SgOmpSafelenClause)
817  GEN_VISIT(SgOmpSimdlenClause)
818  GEN_VISIT(SgOmpLinearClause)
819  GEN_VISIT(SgOmpUniformClause)
820  GEN_VISIT(SgOmpAlignedClause)
821  GEN_VISIT(SgOmpProcBindClause)
822  GEN_VISIT(SgOmpAtomicClause)
823  GEN_VISIT(SgOmpInbranchClause)
824  GEN_VISIT(SgOmpNotinbranchClause)
825  GEN_VISIT(SgOmpDependClause)
826  GEN_VISIT(SgOpenclAccessModeModifier)
827  GEN_VISIT(SgOpenStatement)
828  GEN_VISIT(SgOptions)
829  GEN_VISIT(SgOrOp)
830  GEN_VISIT(SgParameterStatement)
832  GEN_VISIT(SgPartialFunctionType)
833  GEN_VISIT(SgPassStatement)
834  GEN_VISIT(SgPlusAssignOp)
835  GEN_VISIT(SgPlusPlusOp)
836  GEN_VISIT(SgPntrArrRefExp)
837  GEN_VISIT(SgPointerAssignOp)
838  GEN_VISIT(SgPointerDerefExp)
839  GEN_VISIT(SgPointerMemberType)
840  GEN_VISIT(SgPointerType)
841  GEN_VISIT(SgPowerOp)
842  GEN_VISIT(SgPragma)
843  GEN_VISIT(SgPragmaDeclaration)
844  GEN_VISIT(SgPrintStatement)
845  GEN_VISIT(SgProcedureHeaderStatement)
846  GEN_VISIT(SgProgramHeaderStatement)
847  GEN_VISIT(SgProject)
848  GEN_VISIT(SgPseudoDestructorRefExp)
849  GEN_VISIT(SgPythonGlobalStmt)
850  GEN_VISIT(SgPythonPrintStmt)
851  GEN_VISIT(SgQualifiedName)
852  GEN_VISIT(SgQualifiedNameType)
853  GEN_VISIT(SgRangeExp)
854  GEN_VISIT(SgRangeBasedForStatement)
855  GEN_VISIT(SgReadStatement)
856  GEN_VISIT(SgRealPartOp)
857  GEN_VISIT(SgRefExp)
858  GEN_VISIT(SgReferenceType)
859  GEN_VISIT(SgRemOp)
860  GEN_VISIT(SgRenamePair)
861  GEN_VISIT(SgRenameSymbol)
862  GEN_VISIT(SgReplicationOp)
863  GEN_VISIT(SgReturnStmt)
864  GEN_VISIT(SgRewindStatement)
865  GEN_VISIT(SgRshiftAssignOp)
866  GEN_VISIT(SgRshiftOp)
867  GEN_VISIT(SgRvalueReferenceType)
869  GEN_VISIT(SgJavaUnsignedRshiftOp)
870  GEN_VISIT(SgScopeOp)
871  GEN_VISIT(SgScopeStatement)
872  GEN_VISIT(SgSequenceStatement)
873  GEN_VISIT(SgSetComprehension)
874  GEN_VISIT(SgShortVal)
875  GEN_VISIT(SgSizeOfOp)
876  GEN_VISIT(SgAlignOfOp)
877  GEN_VISIT(SgJavaInstanceOfOp)
878  GEN_VISIT(SgSourceFile)
879  GEN_VISIT(SgSpaceshipOp)
880  GEN_VISIT(SgSpawnStmt)
881  GEN_VISIT(SgSyncAllStatement)
882  GEN_VISIT(SgSyncImagesStatement)
883  GEN_VISIT(SgSyncMemoryStatement)
884  GEN_VISIT(SgSyncTeamStatement)
885  GEN_VISIT(SgLockStatement)
886  GEN_VISIT(SgUnlockStatement)
887  GEN_VISIT(SgJavaThrowStatement)
888  GEN_VISIT(SgJavaForEachStatement)
889  GEN_VISIT(SgJavaSynchronizedStatement)
890  GEN_VISIT(SgJavaParameterizedType)
891  GEN_VISIT(SgJavaWildcardType)
892  GEN_VISIT(SgProcessControlStatement)
893  GEN_VISIT(SgSpecialFunctionModifier)
894  GEN_VISIT(SgStatement)
896  GEN_VISIT(SgStmtDeclarationStatement)
897  GEN_VISIT(SgStatementExpression)
899  GEN_VISIT(SgStorageModifier)
900  GEN_VISIT(SgStringConversion)
902  GEN_VISIT(SgStringVal)
903  GEN_VISIT(SgStructureModifier)
904  GEN_VISIT(SgSubscriptExpression)
905  GEN_VISIT(SgSubtractOp)
906  GEN_VISIT(SgSupport)
907  GEN_VISIT(SgSwitchStatement)
908  GEN_VISIT(SgSymbol)
909  GEN_VISIT(SgSymbolTable)
910  GEN_VISIT(SgTemplateArgument)
911  GEN_VISIT(SgTemplateArgumentList)
912  GEN_VISIT(SgTemplateDeclaration)
913  GEN_VISIT(SgTemplateClassDeclaration)
914  GEN_VISIT(SgTemplateClassSymbol)
916  GEN_VISIT(SgTemplateFunctionRefExp)
917  GEN_VISIT(SgTemplateFunctionSymbol)
922  GEN_VISIT(SgTemplateTypedefSymbol)
924  GEN_VISIT(SgTemplateVariableSymbol)
925  GEN_VISIT(SgTemplateClassDefinition)
927  GEN_VISIT(SgTemplateInstantiationDecl)
928  GEN_VISIT(SgTemplateInstantiationDefn)
933  GEN_VISIT(SgTemplateParameter)
934  GEN_VISIT(SgTemplateParameterVal)
935  GEN_VISIT(SgTemplateParameterList)
936  GEN_VISIT(SgTemplateSymbol)
937  GEN_VISIT(SgTemplateType)
938  GEN_VISIT(SgThisExp)
939  GEN_VISIT(SgTypeTraitBuiltinOperator)
940  GEN_VISIT(SgSuperExp)
941  GEN_VISIT(SgThrowOp)
942  GEN_VISIT(SgToken)
943  GEN_VISIT(SgTryStmt)
944  GEN_VISIT(SgTupleExp)
945  GEN_VISIT(SgType)
946  GEN_VISIT(SgTypeBool)
947  GEN_VISIT(SgTypeChar)
948  GEN_VISIT(SgTypeChar16)
949  GEN_VISIT(SgTypeChar32)
950  GEN_VISIT(SgTypeComplex)
951  GEN_VISIT(SgTypeDefault)
952  GEN_VISIT(SgTypeExpression)
953  GEN_VISIT(SgTypeLabel)
954  GEN_VISIT(SgTypeDouble)
955  GEN_VISIT(SgTypeEllipse)
956  GEN_VISIT(SgTypeFixed)
957  GEN_VISIT(SgTypeFloat)
958  GEN_VISIT(SgTypeFloat128)
959  GEN_VISIT(SgTypeFloat80)
960  GEN_VISIT(SgTypeGlobalVoid)
961  GEN_VISIT(SgTypeIdOp)
962  GEN_VISIT(SgTypeImaginary)
963  GEN_VISIT(SgTypeInt)
964  GEN_VISIT(SgTypeLong)
965  GEN_VISIT(SgTypeLongDouble)
966  GEN_VISIT(SgTypeLongLong)
967  GEN_VISIT(SgTypeModifier)
968  GEN_VISIT(SgTypeMatrix)
969  GEN_VISIT(SgTypeTuple)
970  GEN_VISIT(SgTypeNullptr)
971  GEN_VISIT(SgTypeOfType)
972  GEN_VISIT(SgTypeShort)
973  GEN_VISIT(SgTypeSigned128bitInteger)
974  GEN_VISIT(SgTypeSignedChar)
975  GEN_VISIT(SgTypeSignedInt)
976  GEN_VISIT(SgTypeSignedLong)
977  GEN_VISIT(SgTypeSignedLongLong)
978  GEN_VISIT(SgTypeSignedShort)
979  GEN_VISIT(SgTypeString)
980  GEN_VISIT(SgTypeUnknown)
981  GEN_VISIT(SgTypeUnsigned128bitInteger)
982  GEN_VISIT(SgTypeUnsignedChar)
983  GEN_VISIT(SgTypeUnsignedInt)
984  GEN_VISIT(SgTypeUnsignedLong)
985  GEN_VISIT(SgTypeUnsignedLongLong)
986  GEN_VISIT(SgTypeUnsignedShort)
987  GEN_VISIT(SgTypeVoid)
988  GEN_VISIT(SgTypeWchar)
989  GEN_VISIT(SgTypedefDeclaration)
990  GEN_VISIT(SgTypedefSeq)
991  GEN_VISIT(SgTypedefSymbol)
992  GEN_VISIT(SgTypedefType)
993  GEN_VISIT(SgUPC_AccessModifier)
994  GEN_VISIT(SgUnaryAddOp)
995  GEN_VISIT(SgUnaryOp)
996  GEN_VISIT(SgUndefDirectiveStatement)
997  GEN_VISIT(SgUndirectedGraphEdge)
999  GEN_VISIT(SgUnknownFile)
1000  GEN_VISIT(SgUnparse_Info)
1001  GEN_VISIT(SgUnsignedCharVal)
1002  GEN_VISIT(SgUnsignedIntVal)
1003  GEN_VISIT(SgUnsignedLongLongIntVal)
1004  GEN_VISIT(SgUnsignedLongVal)
1005  GEN_VISIT(SgUnsignedShortVal)
1006  GEN_VISIT(SgUpcBarrierStatement)
1007  GEN_VISIT(SgUpcBlocksizeofExpression)
1008  GEN_VISIT(SgUpcElemsizeofExpression)
1009  GEN_VISIT(SgUpcFenceStatement)
1010  GEN_VISIT(SgUpcForAllStatement)
1011  GEN_VISIT(SgUpcLocalsizeofExpression)
1012  GEN_VISIT(SgUpcMythread)
1013  GEN_VISIT(SgUpcNotifyStatement)
1014  GEN_VISIT(SgUpcThreads)
1015  GEN_VISIT(SgUpcWaitStatement)
1016  GEN_VISIT(SgUseStatement)
1017  GEN_VISIT(SgUserDefinedBinaryOp)
1018  GEN_VISIT(SgUserDefinedUnaryOp)
1019  GEN_VISIT(SgUsingDeclarationStatement)
1020  GEN_VISIT(SgUsingDirectiveStatement)
1021  GEN_VISIT(SgValueExp)
1022  GEN_VISIT(SgVarArgCopyOp)
1023  GEN_VISIT(SgVarArgEndOp)
1024  GEN_VISIT(SgVarArgOp)
1025  GEN_VISIT(SgVarArgStartOneOperandOp)
1026  GEN_VISIT(SgVarArgStartOp)
1027  GEN_VISIT(SgVarRefExp)
1028  GEN_VISIT(SgVariableDeclaration)
1029  GEN_VISIT(SgVariableDefinition)
1030  GEN_VISIT(SgVariableSymbol)
1031  GEN_VISIT(SgVariantExpression)
1032  GEN_VISIT(SgVariantStatement)
1033  GEN_VISIT(SgVoidVal)
1034  GEN_VISIT(SgWaitStatement)
1035  GEN_VISIT(SgWarningDirectiveStatement)
1036  GEN_VISIT(SgWithStatement)
1037  GEN_VISIT(SgWcharVal)
1038  GEN_VISIT(SgWhereStatement)
1039  GEN_VISIT(SgWhileStmt)
1040  GEN_VISIT(SgWriteStatement)
1041  GEN_VISIT(SgXorAssignOp)
1042  GEN_VISIT(SgYieldExpression)
1043  GEN_VISIT(Sg_File_Info)
1044  GEN_VISIT(SgTypeCAFTeam)
1045  GEN_VISIT(SgCAFWithTeamStatement)
1046  GEN_VISIT(SgCAFCoExpression)
1047  GEN_VISIT(SgCallExpression)
1048  GEN_VISIT(SgTypeCrayPointer)
1049  GEN_VISIT(SgJavaImportStatement)
1050  GEN_VISIT(SgJavaPackageDeclaration)
1051  GEN_VISIT(SgJavaPackageStatement)
1052  GEN_VISIT(SgJavaImportStatementList)
1053  GEN_VISIT(SgJavaClassDeclarationList)
1054  GEN_VISIT(SgJavaMemberValuePair)
1055  GEN_VISIT(SgJavaAnnotation)
1056  GEN_VISIT(SgJavaMarkerAnnotation)
1057  GEN_VISIT(SgJavaSingleMemberAnnotation)
1058  GEN_VISIT(SgJavaNormalAnnotation)
1059  GEN_VISIT(SgJavaTypeExpression)
1060  GEN_VISIT(SgJavaQualifiedType)
1061  GEN_VISIT(SgClassExp)
1062  GEN_VISIT(SgJavaUnionType)
1063  GEN_VISIT(SgJavaParameterType)
1064  GEN_VISIT(SgAsyncStmt)
1065  GEN_VISIT(SgFinishStmt)
1066  GEN_VISIT(SgAtStmt)
1067  GEN_VISIT(SgAtomicStmt)
1068 // GEN_VISIT(SgClassPropertyList)
1069  GEN_VISIT(SgWhenStmt)
1070  GEN_VISIT(SgAtExp)
1071  GEN_VISIT(SgFinishExp)
1072  GEN_VISIT(SgHereExp)
1073  GEN_VISIT(SgDotDotExp)
1074 #if WITH_BINARY_NODES
1075  GEN_VISIT(SgAsmNullInstruction)
1076 #endif /* WITH_BINARY_NODES */
1077 
1078 /*
1079  GEN_VISIT(SgBinaryComposite)
1080  GEN_VISIT(SgComprehensionList)
1081  *
1082  GEN_VISIT(SgDirectedGraph)
1083  GEN_VISIT(SgDirectedGraphEdge)
1084  GEN_VISIT(SgDirectedGraphNode)
1085 
1086  GEN_VISIT(SgUnknownMemberFunctionType)
1087 */
1088 
1089  RoseVisitor rv;
1090  };
1091 
1092 #undef GEN_VISIT
1093 
1094 
1095 
1096 #if __cplusplus >= 201103L
1097  template <class RoseVisitor>
1098  inline
1099  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1100  _dispatch(RoseVisitor&& rv, SgNode* n)
1101  {
1102  typedef typename std::remove_reference<RoseVisitor>::type RoseVisitorNoref;
1103  typedef typename std::remove_const<RoseVisitorNoref>::type RoseHandler;
1104 
1105  ROSE_ASSERT(n);
1106 
1107  VisitDispatcher<RoseHandler> vis( std::forward<RoseVisitor>(rv),
1108  std::is_lvalue_reference<RoseVisitor>()
1109  );
1110 
1111  n->accept(vis);
1112  return std::move(vis).rv;
1113  }
1114 #else
1115  template <class RoseVisitor>
1116  inline
1117  RoseVisitor
1118  _dispatch(const RoseVisitor& rv, SgNode* n)
1119  {
1120  ROSE_ASSERT(n);
1121 
1122  VisitDispatcher<RoseVisitor> vis(rv);
1123 
1124  n->accept(vis);
1125  return vis.rv;
1126  }
1127 #endif
1128 
1129 
1185 #if 0
1186 #endif
1197 
1198 #if __cplusplus >= 201103L
1199  template <class RoseVisitor>
1200  inline
1201  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1202  dispatch(RoseVisitor&& rv, SgNode* n)
1203  {
1204  //~ return std::move(rv);
1205  return _dispatch(std::forward<RoseVisitor>(rv), n);
1206  }
1207 
1208  template <class RoseVisitor>
1209  inline
1210  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1211  dispatch(RoseVisitor&& rv, const SgNode* n)
1212  {
1213  //~ return std::move(rv);
1214  return _dispatch(std::forward<RoseVisitor>(rv), const_cast<SgNode*>(n));
1215  }
1216 #else
1217  template <class RoseVisitor>
1218  inline
1219  RoseVisitor
1220  dispatch(const RoseVisitor& rv, SgNode* n)
1221  {
1222  return _dispatch(rv, n);
1223  }
1224 
1226  template <class RoseVisitor>
1227  inline
1228  RoseVisitor
1229  dispatch(const RoseVisitor& rv, const SgNode* n)
1230  {
1231  return _dispatch(rv, const_cast<SgNode*>(n));
1232  }
1233 #endif /* c++11 */
1234 
1244  template <class SageNode>
1246  {
1247  void handle(SageNode&) {}
1248  };
1249 
1257  template <class AncestorNode, class QualSgNode>
1258  struct AncestorTypeFinder : DefaultHandler<const SgProject>
1259  {
1261  typedef std::pair<AncestorNode*, QualSgNode*> Pair;
1262 
1263  Pair res;
1264 
1266  : Base(), res(NULL, NULL)
1267  {}
1268 
1269  // handling of const SgProject is outsourced to DefaultHandler
1270  // thus, AncestorNode = const SgProject does not cause conflicts
1271  using Base::handle;
1272 
1273  void handle(QualSgNode& n) { res.second = n.get_parent(); }
1274  void handle(AncestorNode& n) { res.first = &n; }
1275 
1276  operator Pair() const { return res; }
1277  };
1278 
1281  template <class AncestorNode, class QualSgNode>
1282  AncestorNode* _ancestor(QualSgNode& n)
1283  {
1284  typedef AncestorTypeFinder<AncestorNode, QualSgNode> AncestorFinder;
1285 
1286  typename AncestorFinder::Pair res(NULL, n.get_parent());
1287 
1288  while (res.second != NULL)
1289  {
1290  res = (typename AncestorFinder::Pair) sg::dispatch(AncestorFinder(), res.second);
1291  }
1292 
1293  return res.first;
1294  }
1295 
1307  template <class AncestorNode>
1308  AncestorNode* ancestor(SgNode* n)
1309  {
1310  if (n == NULL) return NULL;
1311 
1312  return _ancestor<AncestorNode>(*n);
1313  }
1314 
1316  template <class AncestorNode>
1317  const AncestorNode* ancestor(const SgNode* n)
1318  {
1319  if (n == NULL) return NULL;
1320 
1321  return _ancestor<const AncestorNode>(*n);
1322  }
1323 
1325  template <class AncestorNode>
1326  AncestorNode& ancestor(SgNode& n)
1327  {
1328  AncestorNode* res = _ancestor<AncestorNode>(n);
1329 
1330  ROSE_ASSERT(res);
1331  return *res;
1332  }
1333 
1335  template <class AncestorNode>
1336  const AncestorNode& ancestor(const SgNode& n)
1337  {
1338  const AncestorNode* res = _ancestor<const AncestorNode>(n);
1339 
1340  ROSE_ASSERT(res);
1341  return *res;
1342  }
1343 
1345  template <class SageNode>
1346  struct TypeRecoveryHandler
1347  {
1348  typedef typename ConstLike<SageNode, SgNode>::type SgBaseNode;
1349 
1350  TypeRecoveryHandler(const char* f = 0, size_t ln = 0)
1351  : res(NULL), loc(f), loc_ln(ln)
1352  {}
1353 
1354 #if __cplusplus >= 201103L
1355  TypeRecoveryHandler(TypeRecoveryHandler&&) = default;
1356 
1357  TypeRecoveryHandler() = delete;
1358  TypeRecoveryHandler(const TypeRecoveryHandler&) = delete;
1359  TypeRecoveryHandler& operator=(const TypeRecoveryHandler&) = delete;
1360  TypeRecoveryHandler& operator=(TypeRecoveryHandler&&) = delete;
1361 
1362  operator SageNode* ()&& { return res; }
1363 #else
1364  operator SageNode* () { return res; }
1365 #endif /* C++ */
1366 
1367  void handle(SgBaseNode& n) { unexpected_node(n, loc, loc_ln); }
1368  void handle(SageNode& n) { res = &n; }
1369 
1370  SageNode* res;
1371  const char* loc;
1372  size_t loc_ln;
1373  };
1374 
1375 
1384  template <class SageNode>
1385  SageNode* assert_sage_type(SgNode* n, const char* f = 0, size_t ln = 0)
1386  {
1387  return sg::dispatch(TypeRecoveryHandler<SageNode>(f, ln), n);
1388  }
1389 
1390  template <class SageNode>
1391  const SageNode* assert_sage_type(const SgNode* n, const char* f = 0, size_t ln = 0)
1392  {
1393  return sg::dispatch(TypeRecoveryHandler<const SageNode>(f, ln), n);
1394  }
1395 
1396  template <class SageNode>
1397  SageNode& assert_sage_type(SgNode& n, const char* f = 0, size_t ln = 0)
1398  {
1399  return *sg::dispatch(TypeRecoveryHandler<SageNode>(f, ln), &n);
1400  }
1401 
1402  template <class SageNode>
1403  const SageNode& assert_sage_type(const SgNode& n, const char* f = 0, size_t ln = 0)
1404  {
1405  return *sg::dispatch(TypeRecoveryHandler<const SageNode>(f, ln), &n);
1406  }
1408 
1411  static inline
1412  void swap_parent(SgNode* lhs, SgNode* rhs)
1413  {
1414  SgNode* tmp = lhs->get_parent();
1415 
1416  lhs->set_parent(rhs->get_parent());
1417  rhs->set_parent(tmp);
1418  }
1419 
1423  static inline
1424  void swap_parent(void*, void*) {}
1425 
1433  template <class SageNode, class SageChild>
1434  void swap_child(SageNode& lhs, SageNode& rhs, SageChild* (SageNode::*getter) () const, void (SageNode::*setter) (SageChild*))
1435  {
1436  SageChild* lhs_child = (lhs.*getter)();
1437  SageChild* rhs_child = (rhs.*getter)();
1438  ROSE_ASSERT(lhs_child && rhs_child);
1439 
1440  (lhs.*setter)(rhs_child);
1441  (rhs.*setter)(lhs_child);
1442 
1443  swap_parent(lhs_child, rhs_child);
1444  }
1445 
1446 
1449  template <class SageNode>
1451  {
1452  typedef void (*TransformHandlerFn)(SageNode*);
1453 
1454  explicit
1455  TraversalFunction(TransformHandlerFn fun)
1456  : fn(fun)
1457  {}
1458 
1459  void handle(SgNode&) { /* ignore */ }
1460  void handle(SageNode& n) { fn(&n); }
1461 
1462  TransformHandlerFn fn;
1463  };
1464 
1467  template <class SageNode>
1468  static inline
1470  createTraversalFunction(void (* fn)(SageNode*))
1471  {
1472  return TraversalFunction<SageNode>(fn);
1473  }
1474 
1475  //
1476  // function type extractor
1477  // see https://stackoverflow.com/questions/28033251/can-you-extract-types-from-template-parameter-function-signature
1478 
1479 
1480  template <class GVisitor>
1482  {
1483  explicit
1484  TraversalClass(GVisitor gv)
1485  : gvisitor(gv)
1486  //~ : gvisitor(std::move(gv))
1487  {}
1488 
1489  void visit(SgNode* n)
1490  {
1491  gvisitor = sg::dispatch(gvisitor, n);
1492  }
1493 
1494  // GVisitor&& visitor() { return std::move(gvisitor); }
1495  GVisitor visitor() { return gvisitor; }
1496 
1497  GVisitor gvisitor;
1498  };
1499 
1500 
1501 
1508  template <class F>
1509  static inline
1510  F
1511  forAllNodes(F fn, SgNode* root, AstSimpleProcessing::Order order = postorder)
1512  {
1513  ROSE_ASSERT(root);
1514 
1515  TraversalClass<F> tt(fn);
1516  //~ TraversalClass<F> tt(std::move(fn));
1517 
1518  tt.traverse(root, order);
1519  return tt.visitor();
1520  }
1521 
1522  template <class SageNode>
1523  static inline
1524  void
1525  forAllNodes(void (*fn)(SageNode*), SgNode* root, AstSimpleProcessing::Order order = postorder)
1526  {
1527  forAllNodes(createTransformExecutor(fn), root, order);
1528  }
1529 
1530 #if !defined(NDEBUG)
1531  static inline
1532  std::string nodeType(const SgNode& n)
1533  {
1534  return typeid(n).name();
1535  }
1536 
1537  static inline
1538  std::string nodeType(const SgNode* n)
1539  {
1540  if (n == NULL) return "<null>";
1541 
1542  return nodeType(*n);
1543  }
1544 #endif
1545 
1546  template <class GVisitor>
1548  {
1549 #if __cplusplus >= 201103L
1550  explicit
1551  DispatchHelper(GVisitor gv, SgNode* p)
1552  : gvisitor(std::move(gv)), parent(p), cnt(0)
1553  {}
1554 #else
1555  explicit
1556  DispatchHelper(GVisitor gv, SgNode* p)
1557  : gvisitor(gv), parent(p), cnt(0)
1558  {}
1559 #endif /* C++11 */
1560 
1561  void operator()(SgNode* n)
1562  {
1563  ++cnt;
1564 
1565 #if 0
1566  if (n == NULL)
1567  {
1568  std::cerr << "succ(" << nodeType(parent) << ", " << cnt << ") is null" << std::endl;
1569  return;
1570  }
1571 #endif
1572 
1573 #if __cplusplus >= 201103L
1574  if (n != NULL) gvisitor = sg::dispatch(std::move(gvisitor), n);
1575 #else
1576  if (n != NULL) gvisitor = sg::dispatch(gvisitor, n);
1577 #endif /* C++11 */
1578  }
1579 
1580 #if __cplusplus >= 201103L
1581  operator GVisitor()&& { return std::move(gvisitor); }
1582 #else
1583  operator GVisitor() { return gvisitor; }
1584 #endif /* C++11 */
1585 
1586  GVisitor gvisitor;
1587  SgNode* parent;
1588  size_t cnt;
1589  };
1590 
1591 
1592  template <class GVisitor>
1593  static inline
1595  dispatchHelper(GVisitor gv, SgNode* parent = NULL)
1596  {
1597 #if __cplusplus >= 201103L
1598  return DispatchHelper<GVisitor>(std::move(gv), parent);
1599 #else
1600  return DispatchHelper<GVisitor>(gv, parent);
1601 #endif /* C++11 */
1602  }
1603 
1604 
1605  template <class GVisitor>
1606  static inline
1607  GVisitor traverseChildren(GVisitor gv, SgNode& n)
1608  {
1609  std::vector<SgNode*> successors = n.get_traversalSuccessorContainer();
1610 
1611 #if __cplusplus >= 201103L
1612  return std::for_each(successors.begin(), successors.end(), dispatchHelper(std::move(gv), &n));
1613 #else
1614  return std::for_each(successors.begin(), successors.end(), dispatchHelper(gv, &n));
1615 #endif /* C++11 */
1616  }
1617 
1618  template <class GVisitor>
1619  static inline
1620  GVisitor traverseChildren(GVisitor gv, SgNode* n)
1621  {
1622  return traverseChildren(gv, sg::deref(n));
1623  }
1624 
1625  template <class SageParent, class SageChild>
1626  void linkParentChild(SageParent& parent, SageChild& child, void (SageParent::*setter)(SageChild*))
1627  {
1628  (parent.*setter)(&child);
1629  child.set_parent(&parent);
1630  }
1631 }
1632 #endif /* _SAGEGENERIC_H */
This class represents modifiers for SgDeclaration (declaration statements).
List of pointers to file sections.
This class represents the notion of an initializer for a variable declaration or expression in a func...
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
The GNU symbol version definitions.
This class represents the concept of a C++ template instantiation directive.
This class represents the concept of an instantiation of member function template or a member functio...
This class represents the concept of a class declaration statement. It includes the concept of an ins...
This class represents the concept of a declaration list.
This class represents a boolean value (expression value).
One entry of the ELF symbol version needed table.
This class represents a OLD concept of the structure require for qualified names when they were in th...
This class represents the notion of an n-ary comparison operation. This node is intended for use with...
String associated with a binary file.
Expression that adds two operands.
This class represents the concept of an instantiated class template.
This class represents the notion of an value (expression value).
This class represents the concept of a C or C++ goto statement.
List of dynamic linking section entries.
Contiguous region of a file.
This class represents the concept of the dynamic execution of a string, file, or code object...
This class represents the concept of a C or C++ statement which contains a expression.
Expression that performs a post-increment operation.
Expression representing a (no-op) unary plus operation.
Base class for references to a machine register.
This class represents the notion of a binary operator. It is derived from a SgExpression because oper...
Expression that performs a right rotate.
Auxiliary info for needed symbol version.
Instruction basic block.
Base class for all binary analysis IR nodes.
This class represents a source file for a project (which may contian many source files and or directo...
List of entries for the ELF symbol version definition table.
This class represents the variable declaration or variable initialization withn a for loop...
One entry of an ELF relocation table.
This class represents the concept of a C++ sequence of catch statements.
This class represents the notion of a unary operator. It is derived from a SgExpression because opera...
Represents the file header of an ELF binary container.
This class represents the GNU extension "statement expression" (thus is non-standard C and C++)...
Class for traversing the AST.
This class represents the C++ throw expression (handled as a unary operator).
Expression that performs a post-decrement operation.
This class represents the rhs of a variable declaration which includes an optional assignment (e...
Portable Executable Import Section.
This class represents the concept of a C++ using directive.
This class represents the base class for all types.
List of generic file headers.
List of binary interpretations.
Base class for machine instructions.
This class represents the concept of a do-while statement.
This class represents a Fortran pointer assignment. It is not some weird compound assignment operator...
Section table entry.
This class represents the concept of a class name within the compiler.
This class represents the location of the code associated with the IR node in the original source cod...
This class represents the concept of an enum declaration.
Base class for scalar types.
List of expression nodes.
This class represents the "this" operator (can be applied to any member data).
Expression that performs an arithmetic, sign-bit preserving right shift.
void set_parent(SgNode *parent)
All nodes in the AST contain a reference to a parent node.
This class represents a string type used for SgStringVal IR node.
This class represents the notion of an n-ary boolean operation. This node is intended for use with Py...
Expression that performs a logical, sign-bit non-preserving right shift.
This class represents the concept of a C style extern "C" declaration. But such information (linkage)...
This class represents the notion of a declared variable.
Strings stored in an ELF or PE container.
This class represents the concept of a member function declaration statement.
Expression that returns the remainder when dividing the first operand by the second.
This class represents the concept of a C and C++ case option (used within a switch statement)...
This class represents the concept of a function declaration statement.
Node to hold a list of symbol node pointers.
Base class for ELF file sections.
This class represents the concept of a C Assembler statement (untested).
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
This class represents the notion of an n-ary operator. This node is intended for use with Python...
Expression representing truncation.
Base class for PE sections.
Represents a synthesized function.
This class represents the concept of a C and C++ expression list.
This class represents the "sizeof()" operator (applied to any type).
Expression that divides the first operand by the second.
Hods a list of symbol version aux entries.
COFF symbol string table.
Basic information about an executable container.
This class represents the concept of a C++ namespace alias declaration statement. ...
This class is not used in ROSE, but is intended to represent a list of SgModifierTypes (similar to th...
This class represents the base class of a numbr of IR nodes that don't otherwise fit into the existin...
Entry in an ELF symbol version table.
This class represents a directory within a projects file structure of files and directories.
This class represents the notion of an value (expression value).
ELF error handling frame entry frame description entry.
This class represents the concept of a C trinary conditional expression (e.g. "test ...
Represents an ELF relocation section.
This class represents the notion of an expression. Expressions are derived from SgLocatedNodes, since similar to statement, expressions have a concrete location within the user's source code.
One import directory per library.
void visit(SgNode *n)
this method is called at every traversed node.
Definition: sageGeneric.h:1489
GNU symbol version requirements table.
List of ELF relocation entries.
This class represents the notion of a break statement (typically used in a switch statment)...
List of AST file node pointers.
This class represents the concept of a name within the compiler.
ELF section containing dynamic linking information.
executes a functor for a specific node type
Definition: sageGeneric.h:1450
Represents the file header for DOS executables.
List of ELF EH frame CI entries.
struct DefaultHandler
Definition: sageGeneric.h:1245
Represents an ELF EH frame section.
One entry of an ELF notes table.
ELF string table section.
This class represents the concept of a class definition in C++.
This class represents strings within the IR nodes.
Reference to memory locations.
projects the constness of T1 on T2
Definition: sageGeneric.h:53
This class is intended to be a wrapper around SgStatements, allowing them to exist in scopes that onl...
struct DispatchHandler
Definition: sageGeneric.h:133
An ordered list of registers.
This class represents the concept of a contructor initializer list (used in constructor (member funct...
Base class for container file headers.
Expression represting negation.
List of pointers to other AST nodes.
Expression representing a machine register.
Base class for integer values.
This class represents the concept of a namespace name within the compiler.
This class represents the notion of a typedef declaration.
ELF file section containing symbols.
This class represents the notion of an value (expression value).
This class represents the base class for all IR nodes within Sage III.
Definition: Cxx_Grammar.h:9407
List of operands for an instruction.
This class represents the concept of a catch within a try-catch construct used in C++ exception handl...
Base class for dynamically linked library information.
This class represents the notion of an value (expression value).
This class represents the concept of a variable name within the compiler (a shared container for the ...
This class represents a lambda expression.
This class represents the concept of an instantiation of function template.
Expression that performs a pre-decrement operation.
This class represents the physical disequality (often called pointer disequality) operator for langua...
Expression that performs a pre-increment operation.
This class represents the "&" operator (applied to any lvalue).
A single imported object.
This class represents the conversion of an arbitrary expression to a string. This node is intended fo...
Represents one PowerPC machine instruction.
One entry from an ELF symbol version definition table.
Represents a single ELF symbol.
This class represents the base class of a number of IR nodes define modifiers within the C++ grammar...
This class represents the concept of a block (not a basic block from control flow analysis)...
This class represents the concept of a C++ namespace declaration.
This class represents a list display.
This class represents the notion of a statement.
Base class for strings related to binary specimens.
This class represents the concept of a namespace definition.
This class represents the concept of a for loop.
DOS exteded header.
List of COFF symbols.
Represents static data in an executable.
This class represents the physical equality (often called pointer equality) operator for languages th...
Base class for unary expressions.
Base class for many binary analysis nodes.
Represents one Intel x86 machine instruction.
This class represents the concept of a C++ using declaration.
This class represents a C99 complex type.
Base class for statement-like subclasses.
This class represents a tuple display.
This class represents a type for all functions.
This class represents the concept of a namespace definition.
This class represents the numeric negation of a value. Not to be confused with SgSubtractOp.
This class represents the concept of a C Assembler statement (untested).
Represents one entry of a segment table.
This class represents the concept of a C or C++ default case within a switch statement.
Expression representing sign extending.
Base class for expressions.
This class represents a default type used for some IR nodes (see below).
This class represents the concept of an "if" construct.
virtual std::vector< SgNode * > get_traversalSuccessorContainer()
container of pointers to AST successor nodes used in the traversal overridden in every class by gener...
This class represents the concept of a template declaration.
Expression that performs a logical left shift operation.
List of pointers to other nodes.
This class represents the notion of an expression or statement which has a position within the source...
Expression that multiplies two operands.
This class represents template argument within the use of a template to build an instantiation.
Expression that performs a logical left shift operation filling low-order bits with one...
This class represents the variable refernece in expressions.
Represents one MIPS machine instruction.
Node to hold list of ELF note entries.
This class represents the concept of a do-while statement.
This class represents a OLD concept of the structure require for qualified names when they were in th...
List of entries from a symbol version table.
List of SgAsmPERVASizePair AST nodes.
Expression representing unsigned extending.
Base class for binary types.
This class represents the definition (initialization) of a variable.
This class represents the concept of a class definition in C++.
This class represents the concept of a C++ call to the delete operator.
Export file section.
virtual void accept(ROSE_VisitorPattern &visitor)
support for the classic visitor pattern done in GoF
helper class for _ancestor
Definition: sageGeneric.h:1258
Registers accessed indirectly.
This class represents the concept of a C++ call to the new operator.
This class represents the concept of a C or C++ continue statement.
This class represents an object used to initialize the unparsing.
Base class for values.
Floating-point value.
This class represents the member function being called and must be assembled in the SgFunctionCall wi...
Windows PE file header.
This class represents modifiers specific to storage.
This class represents the symbol tables used in both SgScopeStatement and the SgFunctionTypeSymbolTab...
Expression that subtracts the second operand from the first.
SgNode * get_parent() const
Access function for parent node.
This class represents the function being called and must be assembled in the SgFunctionCall with the ...
This class represents the concept of try statement within the try-catch support for exception handlin...
Base class for synthesized declarations.
This class represents the concept of a C Assembler statement.
This class represents the concept of a name and a type. It may be renamed in the future to SgTypeSymb...
This class represents a list of associated typedefs for the SgType IR nodes which reference this list...
One entry from the dynamic linking table.
This class represents a source project, with a list of SgFile objects and global information about th...
This class represents the concept of a 'global' stmt in Python.
This class represents the function type table (stores all function types so that they can be shared i...
Integer types.
This class represents a C99 complex type.
This class represents the concept of a C or C++ variable declaration.
This class represents the notion of an initializer for a variable declaration or expression in a func...
The ELF symbol version table.
Represents one entry in an ELF section table.
Represents an ELF segment table.
Strings stored in an ELF or PE container.
Represents an ELF section table.
ELF string table.
A list of imported items.
Represents an interpretation of a binary container.
This class represents the concept of a C or C++ label statement.
List of symbol version needed entries.
Floating point types.
This class is part of the older CC++ concept. It is not a part of C or C++ (this IR node is not used ...
This class represents the concept of a C++ function call (which is an expression).
Base class for binary files.
Base class for binary expressions.
Declaration-like nodes that encapsulate multiple instructions.
Base class for vector types.
This class was part of CC++ support from a long time ago.
Base class for constants.
List of symbol version aux entries.
This class represents the concept of a declaration statement.
This class represents the concept of a generic call expression.
This class represents the concept of a switch.
This class represents the concept of a C++ expression built from a class name.
Static representation of instruction semantics.
A list of PE Import Directories.
ELF error handling frame entry, common information entry.
COFF symbol table.