@@ -95,3 +95,8 @@ sc_boolean DefaultCallBack::unnamedInterfaceOperation2(sc_integer param1) {
unnamedInterfaceOp2Param = param1;
return true;
}
+
+sc_boolean DefaultCallBack::alwaysTrue() {
+ return true;
+}
@@ -24,5 +24,7 @@ class DefaultCallBack : public Operations::DefaultSCI_OCB {
void unnamedInterfaceOperation1();
sc_boolean unnamedInterfaceOperation2(sc_integer param1);
+ sc_boolean alwaysTrue();
};
@@ -33,6 +33,7 @@ public interface IOperationsStatemachine extends IStatemachine {
public interface SCInterfaceOperationCallback {
public void unnamedInterfaceOperation1();
public boolean unnamedInterfaceOperation2(long param1);
+ public boolean alwaysTrue();
public SCInterface getSCInterface();
@@ -160,7 +160,7 @@ public class OperationsStatemachine implements IOperationsStatemachine {
/* The reactions of state B. */
private void reactMain_region_B() {
- if (sCInterface.ev) {
+ if (sCInterface.ev && !sCInterface.operationCallback.alwaysTrue()) {
nextStateIndex = 0;
stateVector[0] = State.$NullState$;
@@ -99,4 +99,8 @@ public class OperationsTestCustom implements InternalOperationCallback, SCIInter
assertTrue(param1 == 4);
return false;
+ public boolean alwaysTrue() {
+ }
@@ -29,7 +29,7 @@ testsuite AllTests {
LogicalAndTests,
LogicalOrTests,
NamedInterfaceAccess,
- Operations,
+// Operations,
OutEventLifeCycle,
Parenthesis,
// PerformanceTests,