17 lines
635 B
Plaintext
Executable File
17 lines
635 B
Plaintext
Executable File
std::cout << "AtomicActivity4:" << std::endl
|
|
<< "\tif2cond: " << sin->if2cond.getValue() << std::endl
|
|
<< "\tif2value: " << sin->if2value.getValue() << std::endl;
|
|
if (!sin->if2cond.getValue()) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if2cond [" << sin->if2cond.getValue() << "] is not true.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (sin->if2value.getValue() != -1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if2Value [" << sin->if2value.getValue() << "] is not -1.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
sout->if2valueOut.setValue(4);
|