mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Rename Random to SimulationRNG (fix references)
This commit is contained in:
parent
0d28d5a287
commit
342a4e5dee
@ -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/")
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user