Ignore:
Timestamp:
Jul 12, 2016, 6:34:10 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
e4d3ceb
Parents:
6e4b913
Message:

changes for switch and choose statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/Mutate.cc

    r6e4b913 r4e06c1e  
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Jul 15 14:50:04 2015
    13 // Update Count     : 7
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue Jul 12 17:37:45 2016
     13// Update Count     : 8
    1414//
    1515
     
    2020
    2121#include "Mutate.h"
    22 #include "ChooseMutator.h"
    2322#include "LabelFixer.h"
    2423#include "MLEMutator.h"
     
    3938                ForExprMutator formut;
    4039
    41                 // transform choose statements into switch statements
    42                 ChooseMutator chmut;
    43 
    44                 // normalizes label definitions and generates multi-level
    45                 // exit labels
     40                // normalizes label definitions and generates multi-level exit labels
    4641                LabelFixer lfix;
    4742
    4843                // expand case ranges and turn fallthru into a null statement
    49                 CaseRangeMutator ranges;  // has to run after ChooseMutator
     44                CaseRangeMutator ranges;
    5045
    5146                //ExceptMutator exc;
     
    5348
    5449                mutateAll( translationUnit, formut );
    55                 mutateAll( translationUnit, chmut );
    5650                acceptAll( translationUnit, lfix );
    5751                mutateAll( translationUnit, ranges );
Note: See TracChangeset for help on using the changeset viewer.