ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
|
Last change
on this file since c8ffe20b was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
927 bytes
|
| Line | |
|---|
| 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.