Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.h

    re39aa0f rd3b7937  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // MLEMutator.h --
     7// MLEMutator.h -- 
    88//
    99// Author           : Rodolfo G. Esteves
     
    2323#include "SynTree/SynTree.h"
    2424#include "SynTree/Mutator.h"
    25 #include "SynTree/Label.h"
    2625
    2726#include "LabelGenerator.h"
     
    3938                Statement *mutate( BranchStmt *branchStmt ) throw ( SemanticError );
    4039
    41                 Statement *mutate( CaseStmt *caseStmt );
     40                Statement *mutate( CaseStmt *caseStmt ); 
    4241                Statement *mutate( SwitchStmt *switchStmt );
    4342                Statement *mutate( ChooseStmt *switchStmt );
     
    5655                        bool operator!=( const Statement *stmt ) { return ( loop != stmt ); }
    5756
    58                         bool operator==( const Entry &other ) { return ( loop == other.get_controlStructure() ); }
     57                        bool operator==( const Entry &other ) { return ( loop == other.get_loop() ); }
    5958
    60                         Statement *get_controlStructure() const { return loop; }
     59                        Statement *get_loop() const { return loop; }
    6160
    6261                        Label useContExit() { contUsed = true; return contExit; }
     
    7372
    7473                std::map< Label, Statement * > *targetTable;
    75                 std::list< Entry > enclosingControlStructures;
     74                std::list< Entry > enclosingBlocks, enclosingLoops, enclosingSwitches;
    7675                Label breakLabel;
    7776                LabelGenerator *generator;
     
    8079                Statement *handleLoopStmt( LoopClass *loopStmt );
    8180
    82                 template< typename SwitchClass >
     81                template< typename SwitchClass > 
    8382                Statement *handleSwitchStmt( SwitchClass *switchStmt );
    8483
Note: See TracChangeset for help on using the changeset viewer.