Index: c/ArgTweak/FunctionFixer.cc
===================================================================
--- src/ArgTweak/FunctionFixer.cc	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ 	(revision )
@@ -1,122 +1,0 @@
-//
-// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
-//
-// The contents of this file are covered under the licence agreement in the
-// file "LICENCE" distributed with Cforall.
-//
-// FunctionFixer.cc --
-//
-// Author           : Rodolfo G. Esteves
-// Created On       : Sat May 16 08:12:38 2015
-// Last Modified By : Peter A. Buhr
-// Last Modified On : Thu May 21 21:11:45 2015
-// Update Count     : 7
-//
-
-#include <list>
-#include <vector>
-#include <cassert>
-#include <algorithm>
-
-#include "FunctionFixer.h"
-#include "SynTree/Expression.h"
-#include "SynTree/Declaration.h"
-#include "SynTree/Type.h"
-
-namespace ArgTweak {
-	FunctionFixer::FunctionFixer( SymTab::Indexer *ind ) : index( ind ) {
-		if ( index == 0 ) index = new SymTab::Indexer();
-	}
-
-	FunctionFixer::~FunctionFixer() {
-		delete index;
-	}
-
-	DeclarationWithType *FunctionFixer::mutate( FunctionDecl *functionDecl ) {
-		index->visit( functionDecl );
-		/* check for duplicate named parameters here?  It might not be an error if they're never used, on the other hand, it
-		   might be to costly to check for duplicates every time we try a match */
-		return Parent::mutate( functionDecl );
-	}
-
-	Expression *FunctionFixer::mutate( UntypedExpr *untypedExpr ) throw ( SemanticError ) {
-		assert( untypedExpr != 0 );
-
-		if ( NameExpr * function = dynamic_cast< NameExpr *>(untypedExpr->get_function() ) ) {
-			std::list < DeclarationWithType * > options;
-			index->lookupId ( function->get_name(), options );
-			for ( std::list < DeclarationWithType * >::iterator i = options.begin(); i != options.end(); i++ ) {
-				if ( FunctionType * f = dynamic_cast< FunctionType * > ( (*i)->get_type() ) )	{
-					std::list < DeclarationWithType * > &pars = f->get_parameters();
-					bool candidateExists ;
-					for ( std::list < DeclarationWithType * >::iterator p = pars.begin(); p != pars.end(); p++ ) {
-						if ( ( candidateExists = align( f->get_parameters(), untypedExpr->get_args(), Matcher() ) ) ) break;
-					}
-					if ( ! candidateExists ) throw SemanticError("Error in function call");
-				} // if
-			} // for
-		} // if
-		return untypedExpr;
-	}
-
-	template < class L1, class L2, class Helper >
-	bool align( L1 &pattern, L2 &possible_permutation, Helper help ) {
-		std::map < typename Helper::key, int > positions;
-		int p = 0;
-
-		for ( typename L1::iterator i = pattern.begin(); i != pattern.end(); i++, p++ )
-			if ( help.extract_key( *i ) != Helper::null_key )
-				positions[ help.extract_key( *i ) ] = p;
-
-		L2 copy_pp( possible_permutation );
-
-		std::vector< typename L2::value_type > temp(copy_pp.size(), Helper::null_value );
-		for ( typename L2::iterator i = copy_pp.begin(); i != copy_pp.end(); i++ )
-			if ( positions.find( help.extract_key( *i ) ) != positions.end() ) {
-				temp [ positions [ help.extract_key( *i ) ] ] = *i;
-				*i = Helper::null_value;
-			} // if
-
-		// rest of the arguments
-		int a = 0;
-		bool goAhead = true;							// go ahead and change the list
-		for ( typename L2::iterator i = copy_pp.begin(); i != copy_pp.end(); i++, a++ ) {
-			if (  *i != Helper::null_value )
-				if ( temp[a] == Helper::null_value )
-					temp[a] = *i;
-				else
-					{ goAhead = false; /* there's something there already */; break; }
-			else
-				if ( temp[a] == Helper::null_value )
-					{ goAhead = false; /* can't leave empty spaces */ break; }
-				else
-					;									// all good, this was filled during the first pass
-			assert ( temp[a] != Helper::null_value );
-		} // for
-
-		// Change the original list
-		if ( goAhead ) std::copy( temp.begin(), temp.end(), possible_permutation.begin() );
-
-		return goAhead;
-	}
-
-	std::string FunctionFixer::Matcher::null_key("");
-	Expression *FunctionFixer::Matcher::null_value = 0;
-
-	std::string FunctionFixer::Matcher::extract_key ( DeclarationWithType *decl ) {
-		return decl->get_name();
-	}
-
-	std::string FunctionFixer::Matcher::extract_key ( Expression *expression ) {
-		if ( expression->get_argName() == 0 )
-			return std::string("");
-		else
-			return *(expression->get_argName());
-	}
-} // namespace ArgTweak
-
-// Local Variables: //
-// tab-width: 4 //
-// mode: c++ //
-// compile-command: "make install" //
-// End: //
Index: c/ArgTweak/FunctionFixer.h
===================================================================
--- src/ArgTweak/FunctionFixer.h	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ 	(revision )
@@ -1,60 +1,0 @@
-//
-// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
-//
-// The contents of this file are covered under the licence agreement in the
-// file "LICENCE" distributed with Cforall.
-//
-// FunctionFixer.h -- 
-//
-// Author           : Rodolfo G. Esteves
-// Created On       : Mon May 18 07:44:20 2015
-// Last Modified By : Peter A. Buhr
-// Last Modified On : Mon May 18 23:31:58 2015
-// Update Count     : 3
-//
-
-#ifndef _FUNCTION_FIXER_H_
-#define _FUNCTION_FIXER_H_
-
-#include "SynTree/Mutator.h"
-#include "SymTab/Indexer.h"
-
-#include "SynTree/Expression.h"
-
-namespace ArgTweak {
-	class FunctionFixer : public Mutator {
-		typedef Mutator Parent;
-	  public:
-		FunctionFixer(SymTab::Indexer *ind = 0);
-		~FunctionFixer();
-
-		virtual DeclarationWithType *mutate( FunctionDecl *functionDecl );
-		virtual Expression *mutate( UntypedExpr *untypedExpr ) throw ( SemanticError );
-	  private:
-		class Matcher {
-			typedef std::string key;
-			typedef DeclarationWithType * pattern_type;
-			typedef Expression * permutation_type;
-		  public:
-			static key null_key;
-			static permutation_type null_value;
-
-			std::string extract_key( DeclarationWithType * );
-			std::string extract_key( Expression * );
-
-			bool operator()( DeclarationWithType *, Expression * ) { return true; }
-		};
-
-		SymTab::Indexer *index;
-	};
-
-	template < class L1, class L2, class Predicate > bool align( L1 &pattern, L2 &possible_permutation, Predicate pred ); 
-} // namespace ArgTweak
-
-#endif // _FUNCTION_FIXER_H_
-
-// Local Variables: //
-// tab-width: 4 //
-// mode: c++ //
-// compile-command: "make install" //
-// End: //
Index: c/ArgTweak/Mutate.cc
===================================================================
--- src/ArgTweak/Mutate.cc	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ 	(revision )
@@ -1,33 +1,0 @@
-//
-// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
-//
-// The contents of this file are covered under the licence agreement in the
-// file "LICENCE" distributed with Cforall.
-//
-// Mutate.cc -- 
-//
-// Author           : Rodolfo G. Esteves
-// Created On       : Mon May 18 07:44:20 2015
-// Last Modified By : Peter A. Buhr
-// Last Modified On : Mon May 18 23:32:23 2015
-// Update Count     : 1
-//
-
-#include "SynTree/Mutator.h"
-
-#include "Mutate.h"
-#include "FunctionFixer.h"
-
-namespace ArgTweak {
-	void mutate( std::list< Declaration * > translationUnit ) {
-		FunctionFixer ff;
-
-		mutateAll( translationUnit, ff );
-	}
-} // namespace ArgTweak
-
-// Local Variables: //
-// tab-width: 4 //
-// mode: c++ //
-// compile-command: "make install" //
-// End: //
Index: c/ArgTweak/Mutate.h
===================================================================
--- src/ArgTweak/Mutate.h	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ 	(revision )
@@ -1,34 +1,0 @@
-//
-// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
-//
-// The contents of this file are covered under the licence agreement in the
-// file "LICENCE" distributed with Cforall.
-//
-// Mutate.h -- 
-//
-// Author           : Rodolfo G. Esteves
-// Created On       : Mon May 18 07:44:20 2015
-// Last Modified By : Peter A. Buhr
-// Last Modified On : Mon May 18 23:33:04 2015
-// Update Count     : 2
-//
-
-#ifndef _MUTATE_H
-#define _MUTATE_H
-
-#include <list>
-#include <iostream>
-
-#include "SynTree/Declaration.h"
-
-namespace ArgTweak {
-	void mutate( std::list< Declaration* > translationUnit );
-} // namespace ArgTweak
-
-#endif // _MUTATE_H
-
-// Local Variables: //
-// tab-width: 4 //
-// mode: c++ //
-// compile-command: "make install" //
-// End: //
Index: c/ArgTweak/module.mk
===================================================================
--- src/ArgTweak/module.mk	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ 	(revision )
@@ -1,18 +1,0 @@
-######################### -*- Mode: Makefile-Gmake -*- ########################
-##
-## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
-##
-## The contents of this file are covered under the licence agreement in the
-## file "LICENCE" distributed with Cforall.
-##
-## module.mk -- 
-##
-## Author           : Richard C. Bilson
-## Created On       : Mon Jun  1 17:49:17 2015
-## Last Modified By : Peter A. Buhr
-## Last Modified On : Mon Jun  1 17:50:11 2015
-## Update Count     : 1
-###############################################################################
-
-#SRC +=  ArgTweak/Rewriter.cc \
-#	ArgTweak/Mutate.cc
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ src/Makefile.am	(revision 25bd4e2de787230780442f4d3e55e31e98479844)
@@ -25,5 +25,4 @@
 # Is there a way to use a variable for the directory names?
 
-include ArgTweak/module.mk
 include CodeGen/module.mk
 include Common/module.mk
Index: src/Makefile.in
===================================================================
--- src/Makefile.in	(revision 31468a2b995c7c930b775e67316f1d4ea96aaa2c)
+++ src/Makefile.in	(revision 25bd4e2de787230780442f4d3e55e31e98479844)
@@ -17,7 +17,4 @@
 
 ######################## -*- Mode: Makefile-Automake -*- ######################
-###############################################################################
-
-######################### -*- Mode: Makefile-Gmake -*- ########################
 ###############################################################################
 
@@ -72,12 +69,11 @@
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
-DIST_COMMON = $(srcdir)/ArgTweak/module.mk $(srcdir)/CodeGen/module.mk \
-	$(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk \
-	$(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk \
-	$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
-	$(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk \
-	$(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk \
-	$(srcdir)/Tuples/module.mk Parser/lex.cc Parser/parser.cc \
-	Parser/parser.h
+DIST_COMMON = $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk \
+	$(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk \
+	$(srcdir)/InitTweak/module.mk $(srcdir)/Makefile.am \
+	$(srcdir)/Makefile.in $(srcdir)/Parser/module.mk \
+	$(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk \
+	$(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk \
+	Parser/lex.cc Parser/parser.cc Parser/parser.h
 cfa_cpplib_PROGRAMS = driver/cfa-cpp$(EXEEXT)
 subdir = src
@@ -429,5 +425,5 @@
 .SUFFIXES:
 .SUFFIXES: .cc .ll .o .obj .yy
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/ArgTweak/module.mk $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk $(am__configure_deps)
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
@@ -450,5 +446,5 @@
 	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
 	esac;
-$(srcdir)/ArgTweak/module.mk $(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk:
+$(srcdir)/CodeGen/module.mk $(srcdir)/Common/module.mk $(srcdir)/ControlStruct/module.mk $(srcdir)/GenPoly/module.mk $(srcdir)/InitTweak/module.mk $(srcdir)/Parser/module.mk $(srcdir)/ResolvExpr/module.mk $(srcdir)/SymTab/module.mk $(srcdir)/SynTree/module.mk $(srcdir)/Tuples/module.mk:
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
@@ -2735,7 +2731,4 @@
 
 
-#SRC +=  ArgTweak/Rewriter.cc \
-#	ArgTweak/Mutate.cc
-
 #	Tuples/MultipleAssign.cc \
 #	Tuples/FlattenTuple.cc \
