Changeset 4e06c1e for src/GenPoly
- Timestamp:
- Jul 12, 2016, 6:34:10 PM (8 years ago)
- 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
- Location:
- src/GenPoly
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/DeclMutator.cc
r6e4b913 r4e06c1e 9 9 // Author : Aaron B. Moss 10 10 // Created On : Fri Nov 27 14:44:00 2015 11 // Last Modified By : Aaron B. Moss12 // Last Modified On : Fri Nov 27 14:44:00 201513 // Update Count : 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:38:46 2016 13 // Update Count : 2 14 14 // 15 15 … … 167 167 } 168 168 169 Statement* DeclMutator::mutate(ChooseStmt *chooseStmt) {170 chooseStmt->set_condition( maybeMutate( chooseStmt->get_condition(), *this ) );171 mutateAll( chooseStmt->get_branches(), *this );172 return chooseStmt;173 }174 175 169 Statement* DeclMutator::mutate(CaseStmt *caseStmt) { 176 170 caseStmt->set_condition( maybeMutate( caseStmt->get_condition(), *this ) ); -
src/GenPoly/DeclMutator.h
r6e4b913 r4e06c1e 9 9 // Author : Aaron B. Moss 10 10 // Created On : Fri Nov 27 14:44:00 2015 11 // Last Modified By : Aaron B. Moss12 // Last Modified On : Fri Nov 27 14:44:00 201513 // Update Count : 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:39:01 2016 13 // Update Count : 2 14 14 // 15 15 … … 36 36 virtual Statement* mutate(ForStmt *forStmt); 37 37 virtual Statement* mutate(SwitchStmt *switchStmt); 38 virtual Statement* mutate(ChooseStmt *chooseStmt);39 38 virtual Statement* mutate(CaseStmt *caseStmt); 40 39 virtual Statement* mutate(TryStmt *tryStmt); -
src/GenPoly/PolyMutator.cc
r6e4b913 r4e06c1e 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Mon May 02 14:50:58201613 // Update Count : 1 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:39:32 2016 13 // Update Count : 12 14 14 // 15 15 … … 104 104 } 105 105 106 Statement * PolyMutator::mutate(ChooseStmt *switchStmt) {107 mutateStatementList( switchStmt->get_branches() );108 switchStmt->set_condition( mutateExpression( switchStmt->get_condition() ) );109 return switchStmt;110 }111 112 106 Statement * PolyMutator::mutate(CaseStmt *caseStmt) { 113 107 mutateStatementList( caseStmt->get_statements() ); -
src/GenPoly/PolyMutator.h
r6e4b913 r4e06c1e 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Tue Dec 08 15:19:05 201513 // Update Count : 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:39:41 2016 13 // Update Count : 6 14 14 // 15 15 … … 37 37 virtual Statement* mutate(ForStmt *forStmt); 38 38 virtual Statement* mutate(SwitchStmt *switchStmt); 39 virtual Statement* mutate(ChooseStmt *chooseStmt);40 39 virtual Statement* mutate(CaseStmt *caseStmt); 41 40 virtual Statement* mutate(TryStmt *returnStmt);
Note: See TracChangeset
for help on using the changeset viewer.