ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 134b86a was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
927 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | #include <algorithm> |
---|
| 2 | #include <iostream> |
---|
| 3 | #include <cassert> |
---|
| 4 | #include <list> |
---|
| 5 | |
---|
| 6 | #include "Mutate.h" |
---|
| 7 | #include "ChooseMutator.h" |
---|
| 8 | #include "LabelFixer.h" |
---|
| 9 | #include "MLEMutator.h" |
---|
| 10 | #include "CaseRangeMutator.h" |
---|
| 11 | #include "ForExprMutator.h" |
---|
| 12 | #include "LabelTypeChecker.h" |
---|
| 13 | //#include "ExceptMutator.h" |
---|
| 14 | |
---|
| 15 | #include "utility.h" |
---|
| 16 | |
---|
| 17 | #include "SynTree/Visitor.h" |
---|
| 18 | |
---|
| 19 | using namespace std; |
---|
| 20 | |
---|
| 21 | namespace ControlStruct { |
---|
| 22 | |
---|
| 23 | void mutate( std::list< Declaration * > translationUnit ) |
---|
| 24 | { |
---|
| 25 | ChooseMutator chmut; |
---|
| 26 | ForExprMutator formut; |
---|
| 27 | CaseRangeMutator ranges; // has to run after ChooseMutator |
---|
| 28 | LabelFixer lfix; |
---|
| 29 | //ExceptMutator exc; |
---|
| 30 | LabelTypeChecker lbl; |
---|
| 31 | |
---|
| 32 | mutateAll( translationUnit , formut ); |
---|
| 33 | acceptAll( translationUnit , lfix ); |
---|
| 34 | mutateAll( translationUnit , chmut ); |
---|
| 35 | mutateAll( translationUnit , ranges ); |
---|
| 36 | //mutateAll( translationUnit , exc ); |
---|
| 37 | //acceptAll( translationUnit , lbl ); |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | } // namespace CodeGen |
---|
| 41 | |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.