public ProgramRewriter(ArrayList<HopRewriteRule> hRewrites,ArrayList<StatementBlockRewriteRule> sbRewrites){
  _dagRuleSet=new ArrayList<HopRewriteRule>();
  _dagRuleSet.addAll(hRewrites);
  _sbRuleSet=new ArrayList<StatementBlockRewriteRule>();
  _sbRuleSet.addAll(sbRewrites);
}

public ProgramRewriter ( ArrayList < HopRewriteRule > hRewrites , ArrayList < StatementBlockRewriteRule > sbRewrites ) { _dagRuleSet = new ArrayList < HopRewriteRule > ( ) ; _dagRuleSet . addAll ( hRewrites ) ; _sbRuleSet = new ArrayList < StatementBlockRewriteRule > ( ) ; _sbRuleSet . addAll ( sbRewrites ) ; }
construct a program rewriter for the given rewrite sets which are passed from outside .
