Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/Mutate.cc

    r8688ce1 r145f1fc  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // Mutate.cc --
     7// Mutate.cc -- 
    88//
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug  4 11:39:08 2016
    13 // Update Count     : 9
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Jul 15 14:50:04 2015
     13// Update Count     : 7
    1414//
    1515
     
    2020
    2121#include "Mutate.h"
     22#include "ChooseMutator.h"
    2223#include "LabelFixer.h"
    2324#include "MLEMutator.h"
     25#include "CaseRangeMutator.h"
    2426#include "ForExprMutator.h"
    2527#include "LabelTypeChecker.h"
    2628//#include "ExceptMutator.h"
    2729
    28 #include "Common/utility.h"
     30#include "utility.h"
    2931
    3032#include "SynTree/Visitor.h"
     
    3739                ForExprMutator formut;
    3840
    39                 // normalizes label definitions and generates multi-level exit labels
     41                // normalizes label definitions and generates multi-level
     42                // exit labels
    4043                LabelFixer lfix;
     44
     45                // transform choose statements into switch statements
     46                ChooseMutator chmut;
     47
     48                // expand case ranges and turn fallthru into a null statement
     49                CaseRangeMutator ranges;  // has to run after ChooseMutator
    4150
    4251                //ExceptMutator exc;
     
    4554                mutateAll( translationUnit, formut );
    4655                acceptAll( translationUnit, lfix );
     56                mutateAll( translationUnit, chmut );
     57                mutateAll( translationUnit, ranges );
    4758                //mutateAll( translationUnit, exc );
    4859                //acceptAll( translationUnit, lbl );
Note: See TracChangeset for help on using the changeset viewer.