[yul-phaser] Rename Random to SimulationRNG (fix references)

This commit is contained in:
Kamil Śliwak 2020-02-15 03:03:22 +01:00
parent 0d28d5a287
commit 342a4e5dee
7 changed files with 9 additions and 9 deletions

View File

@ -145,7 +145,7 @@ set(yul_phaser_sources
yulPhaser/Chromosome.cpp yulPhaser/Chromosome.cpp
yulPhaser/Population.cpp yulPhaser/Population.cpp
yulPhaser/Program.cpp yulPhaser/Program.cpp
yulPhaser/Random.cpp yulPhaser/SimulationRNG.cpp
# FIXME: yul-phaser is not a library so I can't just add it to target_link_libraries(). # FIXME: yul-phaser is not a library so I can't just add it to target_link_libraries().
# My current workaround is just to include its source files here but this introduces # My current workaround is just to include its source files here but this introduces
@ -153,7 +153,7 @@ set(yul_phaser_sources
../tools/yulPhaser/Chromosome.cpp ../tools/yulPhaser/Chromosome.cpp
../tools/yulPhaser/Population.cpp ../tools/yulPhaser/Population.cpp
../tools/yulPhaser/Program.cpp ../tools/yulPhaser/Program.cpp
../tools/yulPhaser/Random.cpp ../tools/yulPhaser/SimulationRNG.cpp
) )
detect_stray_source_files("${yul_phaser_sources}" "yulPhaser/") detect_stray_source_files("${yul_phaser_sources}" "yulPhaser/")

View File

@ -18,7 +18,7 @@
#include <test/yulPhaser/Common.h> #include <test/yulPhaser/Common.h>
#include <tools/yulPhaser/Chromosome.h> #include <tools/yulPhaser/Chromosome.h>
#include <tools/yulPhaser/Random.h> #include <tools/yulPhaser/SimulationRNG.h>
#include <libyul/optimiser/BlockFlattener.h> #include <libyul/optimiser/BlockFlattener.h>
#include <libyul/optimiser/StructuralSimplifier.h> #include <libyul/optimiser/StructuralSimplifier.h>

View File

@ -15,7 +15,7 @@
along with solidity. If not, see <http://www.gnu.org/licenses/>. along with solidity. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <tools/yulPhaser/Random.h> #include <tools/yulPhaser/SimulationRNG.h>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>

View File

@ -21,8 +21,8 @@ add_executable(yul-phaser
yulPhaser/Chromosome.cpp yulPhaser/Chromosome.cpp
yulPhaser/Program.h yulPhaser/Program.h
yulPhaser/Program.cpp yulPhaser/Program.cpp
yulPhaser/Random.h yulPhaser/SimulationRNG.h
yulPhaser/Random.cpp yulPhaser/SimulationRNG.cpp
) )
target_link_libraries(yul-phaser PRIVATE solidity Boost::program_options) target_link_libraries(yul-phaser PRIVATE solidity Boost::program_options)

View File

@ -17,7 +17,7 @@
#include <tools/yulPhaser/Chromosome.h> #include <tools/yulPhaser/Chromosome.h>
#include <tools/yulPhaser/Random.h> #include <tools/yulPhaser/SimulationRNG.h>
#include <libyul/optimiser/Suite.h> #include <libyul/optimiser/Suite.h>
#include <libsolutil/CommonData.h> #include <libsolutil/CommonData.h>

View File

@ -19,7 +19,7 @@
#include <tools/yulPhaser/Chromosome.h> #include <tools/yulPhaser/Chromosome.h>
#include <tools/yulPhaser/Program.h> #include <tools/yulPhaser/Program.h>
#include <tools/yulPhaser/Random.h> #include <tools/yulPhaser/SimulationRNG.h>
#include <optional> #include <optional>
#include <ostream> #include <ostream>

View File

@ -15,7 +15,7 @@
along with solidity. If not, see <http://www.gnu.org/licenses/>. along with solidity. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <tools/yulPhaser/Random.h> #include <tools/yulPhaser/SimulationRNG.h>
#include <boost/random/binomial_distribution.hpp> #include <boost/random/binomial_distribution.hpp>
#include <boost/random/uniform_int_distribution.hpp> #include <boost/random/uniform_int_distribution.hpp>