Add the _runs parameter.

This commit is contained in:
chriseth 2016-12-01 11:44:13 +01:00
parent 4c15c465ef
commit f1907bbb12
2 changed files with 3 additions and 3 deletions

View File

@ -242,9 +242,9 @@ bool CompilerStack::compile(bool _optimize, unsigned _runs, map<string, h160> co
return true; return true;
} }
bool CompilerStack::compile(string const& _sourceCode, bool _optimize) bool CompilerStack::compile(string const& _sourceCode, bool _optimize, unsigned _runs)
{ {
return parse(_sourceCode) && compile(_optimize); return parse(_sourceCode) && compile(_optimize, _runs);
} }
void CompilerStack::link() void CompilerStack::link()

View File

@ -120,7 +120,7 @@ public:
); );
/// Parses and compiles the given source code. /// Parses and compiles the given source code.
/// @returns false on error. /// @returns false on error.
bool compile(std::string const& _sourceCode, bool _optimize = false); bool compile(std::string const& _sourceCode, bool _optimize = false, unsigned _runs = 200);
/// Tries to translate all source files into a language suitable for formal analysis. /// Tries to translate all source files into a language suitable for formal analysis.
/// @param _errors list to store errors - defaults to the internal error list. /// @param _errors list to store errors - defaults to the internal error list.