@@ -443,7 +443,7 @@ predicate hasTranslatedSyntheticTemporaryObject(Expr expr) {
443443 * necessary for automatic local variables, or for static local variables with dynamic
444444 * initialization.
445445 */
446- private predicate translateDeclarationEntry ( PseudoDeclarationEntry entry ) {
446+ private predicate translateDeclarationEntry ( IRDeclarationEntry entry ) {
447447 exists ( DeclStmt declStmt , LocalVariable var |
448448 translateStmt ( declStmt ) and
449449 declStmt = entry .getStmt ( ) and
@@ -458,8 +458,8 @@ private predicate translateDeclarationEntry(PseudoDeclarationEntry entry) {
458458 )
459459}
460460
461- private module PseudoDeclarationEntries {
462- private newtype TPseudoDeclarationEntry =
461+ private module IRDeclarationEntries {
462+ private newtype TIRDeclarationEntry =
463463 TPresentDeclarationEntry ( DeclarationEntry entry ) or
464464 TMissingDeclarationEntry ( DeclStmt stmt , Declaration d , int index ) {
465465 not exists ( stmt .getDeclarationEntry ( index ) ) and
@@ -472,31 +472,31 @@ private module PseudoDeclarationEntries {
472472 * This class exists to work around the fact that `DeclStmt`s in
473473 * template instantiations do not have `DeclarationEntry`s.
474474 *
475- * So instead, the IR works with `PseudoDeclarationEntry `s that synthesize
476- * missing `DeclarationEntry`s when there is no result for `DeclStmt::getDeclarationEntry`.
475+ * So instead, the IR works with `IRDeclarationEntry `s that synthesize missing
476+ * `DeclarationEntry`s when there is no result for `DeclStmt::getDeclarationEntry`.
477477 */
478- abstract class PseudoDeclarationEntry extends TPseudoDeclarationEntry {
479- /** Gets a string representation of this `PseudoDeclarationEntry `. */
478+ abstract class IRDeclarationEntry extends TIRDeclarationEntry {
479+ /** Gets a string representation of this `IRDeclarationEntry `. */
480480 abstract string toString ( ) ;
481481
482- /** Gets the `DeclStmt` that this `PseudoDeclarationEntry ` belongs to. */
482+ /** Gets the `DeclStmt` that this `IRDeclarationEntry ` belongs to. */
483483 abstract DeclStmt getStmt ( ) ;
484484
485- /** Gets the `Declaration` declared by this `PseudoDeclarationEntry `. */
485+ /** Gets the `Declaration` declared by this `IRDeclarationEntry `. */
486486 abstract Declaration getDeclaration ( ) ;
487487
488- /** Gets the AST represented by this `PseudoDeclarationEntry `. */
488+ /** Gets the AST represented by this `IRDeclarationEntry `. */
489489 abstract Locatable getAst ( ) ;
490490
491491 /**
492- * Holds if this `PseudoDeclarationEntry ` is the `index`'th entry
492+ * Holds if this `IRDeclarationEntry ` is the `index`'th entry
493493 * declared by the enclosing `DeclStmt`.
494494 */
495495 abstract predicate hasIndex ( int index ) ;
496496 }
497497
498- /** A `PseudoDeclarationEntry ` for an existing `DeclarationEntry`. */
499- private class PresentDeclarationEntry extends PseudoDeclarationEntry , TPresentDeclarationEntry {
498+ /** A `IRDeclarationEntry ` for an existing `DeclarationEntry`. */
499+ private class PresentDeclarationEntry extends IRDeclarationEntry , TPresentDeclarationEntry {
500500 DeclarationEntry entry ;
501501
502502 PresentDeclarationEntry ( ) { this = TPresentDeclarationEntry ( entry ) }
@@ -516,7 +516,7 @@ private module PseudoDeclarationEntries {
516516 * A synthesized `DeclarationEntry` that is created when a `DeclStmt` is missing a
517517 * result for `DeclStmt::getDeclarationEntry`
518518 */
519- private class MissingDeclarationEntry extends PseudoDeclarationEntry , TMissingDeclarationEntry {
519+ private class MissingDeclarationEntry extends IRDeclarationEntry , TMissingDeclarationEntry {
520520 DeclStmt stmt ;
521521 Declaration d ;
522522 int index ;
@@ -534,11 +534,11 @@ private module PseudoDeclarationEntries {
534534 override predicate hasIndex ( int idx ) { idx = index }
535535 }
536536
537- /** A `PseudoDeclarationEntry ` that represents an entry for a `Variable`. */
538- class PseudoVariableDeclarationEntry instanceof PseudoDeclarationEntry {
537+ /** A `IRDeclarationEntry ` that represents an entry for a `Variable`. */
538+ class IRVariableDeclarationEntry instanceof IRDeclarationEntry {
539539 Variable v ;
540540
541- PseudoVariableDeclarationEntry ( ) { super .getDeclaration ( ) = v }
541+ IRVariableDeclarationEntry ( ) { super .getDeclaration ( ) = v }
542542
543543 Variable getDeclaration ( ) { result = v }
544544
@@ -550,7 +550,7 @@ private module PseudoDeclarationEntries {
550550 }
551551}
552552
553- import PseudoDeclarationEntries
553+ import IRDeclarationEntries
554554
555555newtype TTranslatedElement =
556556 // An expression that is not being consumed as a condition
@@ -707,10 +707,10 @@ newtype TTranslatedElement =
707707 )
708708 } or
709709 // A local declaration
710- TTranslatedDeclarationEntry ( PseudoDeclarationEntry entry ) { translateDeclarationEntry ( entry ) } or
710+ TTranslatedDeclarationEntry ( IRDeclarationEntry entry ) { translateDeclarationEntry ( entry ) } or
711711 // The dynamic initialization of a static local variable. This is a separate object from the
712712 // declaration entry.
713- TTranslatedStaticLocalVariableInitialization ( PseudoDeclarationEntry entry ) {
713+ TTranslatedStaticLocalVariableInitialization ( IRDeclarationEntry entry ) {
714714 translateDeclarationEntry ( entry ) and
715715 entry .getDeclaration ( ) instanceof StaticLocalVariable
716716 } or
0 commit comments