<commit_before>#include <verilog_parser.hpp>

#include <boost/config/warning_disable.hpp>
#include <boost/spirit/home/x3.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <boost/spirit/include/support_istream_iterator.hpp>


int teste(std::string s)
{
	verilog::ast::Verilog v;
	using boost::spirit::istream_iterator;
	
	std::ifstream input(s);
	input.unsetf(std::ios::skipws);
	
	istream_iterator begin(input);
	istream_iterator end;
	return verilog::parser::parse_verilog(v, begin, end);
}

int main()
{
	std::vector<std::string> s = {"../testcases/TEST/cir1.v", "../testcases/TEST/cir2.v"};
	for(int i = 0; i < s.size(); i++)
		teste(s[i]);
	
	return 0;
}

<commit_msg>Fixed: argumento do teste nao estava sendo usado<commit_after>#include <verilog_parser.hpp>

#include <boost/config/warning_disable.hpp>
#include <boost/spirit/home/x3.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <boost/spirit/include/support_istream_iterator.hpp>

int
main(int nargs, char** argv)
{
  verilog::ast::Verilog v;
  using boost::spirit::istream_iterator;

  std::ifstream input(argv[1]);
  input.unsetf(std::ios::skipws);

  istream_iterator begin(input);
  istream_iterator end;
  return verilog::parser::parse_verilog(v, begin, end);
}
{'fraction_non_alphanumeric': 0.1638591117917305, 'fraction_numerical': 0.005359877488514548, 'mean_word_length': 6.220994475138122, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6682126', 'n_tokens_mistral': 512, 'n_tokens_neox': 492, 'n_words': 92}