43 lines
1.9 KiB
Plaintext
Executable File
43 lines
1.9 KiB
Plaintext
Executable File
std::cout << "AtomicActivity8:" << std::endl
|
|
<< "\tif3cond: " << sin->if3cond.getValue() << std::endl
|
|
<< "\tif4cond: " << sin->if4cond.getValue() << std::endl
|
|
<< "\tif3valueOrig: " << sin->if3valueOrig.getValue() << std::endl
|
|
<< "\tif3valueOut: " << sin->if3valueOut.getValue() << std::endl
|
|
<< "\tif4valueOrig: " << sin->if4valueOrig.getValue() << std::endl
|
|
<< "\tif4valueOut: " << sin->if4ValueOut.getValue() << std::endl;
|
|
if (sin->if3valueOrig.getValue() != -1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if3valueOrig [" << sin->if3valueOrig.getValue() << "] is not -1.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (sin->if4valueOrig.getValue() != -1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if4valueOrig [" << sin->if4valueOrig.getValue() << "] is not -1.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (sin->if3cond.getValue() && sin->if3valueOut.getValue() != -1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if3valueOut [" << sin->if3valueOut.getValue() << "] is not -1.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
} else if (!sin->if3cond.getValue() && sin->if3valueOut.getValue() != 6) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if3valueOut [" << sin->if3valueOut.getValue() << "] is not 6.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (sin->if4cond.getValue() && sin->if4ValueOut.getValue() != 7) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if4valueOut [" << sin->if4ValueOut.getValue() << "] is not 7.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
} else if (!sin->if4cond.getValue() && sin->if4ValueOut.getValue() != -1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: if4valueOut [" << sin->if4ValueOut.getValue() << "] is not -1.";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
sout->isOk.setValue(true);
|