Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions experiments/experiments.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* mockturtle: C++ logic network library
* Copyright (C) 2018-2019 EPFL
* Copyright (C) 2018-2021 EPFL
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down Expand Up @@ -506,10 +506,10 @@ std::string benchmark_path( std::string const& benchmark_name )
}

template<class Ntk>
bool abc_cec( Ntk const& ntk, std::string const& benchmark )
inline bool abc_cec_impl( Ntk const& ntk, std::string const& benchmark_fullpath )
{
mockturtle::write_bench( ntk, "/tmp/test.bench" );
std::string command = fmt::format( "abc -q \"cec -n {} /tmp/test.bench\"", benchmark_path( benchmark ) );
std::string command = fmt::format( "abc -q \"cec -n {} /tmp/test.bench\"", benchmark_fullpath );

std::array<char, 128> buffer;
std::string result;
Expand Down Expand Up @@ -537,4 +537,10 @@ bool abc_cec( Ntk const& ntk, std::string const& benchmark )
return false;
}

template<class Ntk>
inline bool abc_cec( Ntk const& ntk, std::string const& benchmark )
{
return abc_cec_impl( ntk, benchmark_path( benchmark ) );
}

} // namespace experiments
Loading