From 61fae129f2f1ae7ed73603edf06b48f5e8c8582f Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 22 May 2015 10:48:54 +0200 Subject: Functional gas estimator. --- CommandLineInterface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'CommandLineInterface.cpp') diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 944c8f68..b81fcad1 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -42,7 +42,7 @@ #include #include #include -#include +#include using namespace std; namespace po = boost::program_options; @@ -465,14 +465,13 @@ void CommandLineInterface::handleAst(string const& _argStr) // do we need AST output? if (m_args.count(_argStr)) { - StructuralGasEstimator gasEstimator; vector asts; for (auto const& sourceCode: m_sourceCodes) asts.push_back(&m_compiler->getAST(sourceCode.first)); map gasCosts; if (m_compiler->getRuntimeAssemblyItems()) - gasCosts = gasEstimator.breakToStatementLevel( - gasEstimator.performEstimation(*m_compiler->getRuntimeAssemblyItems(), asts), + gasCosts = GasEstimator::breakToStatementLevel( + GasEstimator::structuralEstimation(*m_compiler->getRuntimeAssemblyItems(), asts), asts ); -- cgit v1.2.3