Support dist and solve...before inside foreach constraints (#7245) (#7253)

This commit is contained in:
Yilou Wang
2026-03-13 11:05:18 -04:00
committed by GitHub
parent e0f1f316aa
commit 7cd49a8028
12 changed files with 272 additions and 111 deletions
+2 -2
View File
@@ -722,8 +722,8 @@ void VlRandomizer::clearAll() {
void VlRandomizer::markRandc(const char* name) { m_randcVarNames.insert(name); }
void VlRandomizer::solveBefore(const char* beforeName, const char* afterName) {
m_solveBefore.emplace_back(std::string(beforeName), std::string(afterName));
void VlRandomizer::solveBefore(const std::string& beforeName, const std::string& afterName) {
m_solveBefore.emplace_back(beforeName, afterName);
}
bool VlRandomizer::nextPhased(VlRNG& rngr) {