// ************************************************************************** //
//                                                                            //
//    eses                   eses                                             //
//   eses                     eses                                            //
//  eses    eseses  esesese    eses   Embedded Systems Group                  //
//  ese    ese  ese ese         ese                                           //
//  ese    eseseses eseseses    ese   Department of Computer Science          //
//  eses   eses          ese   eses                                           //
//   eses   eseses  eseseses  eses    University of Kaiserslautern            //
//    eses                   eses                                             //
//                                                                            //
// ************************************************************************** //
// This program checks that the surface of a local event variable does not see//
// the actions that take place at termination time of the depth of the local  //
// declaration.                                                               //
// ************************************************************************** //

module Schizo10(event !x0,!x1,!x2,!x3) {
   loop {
      event x;
      if(x) emit(x1); else emit(x0);
      assert(!x);
      w: pause;
      emit(x);
      if(x) emit(x3); else emit(x2);
      assert(x);
   }
} satisfies {
   sx0 : assert A G x0;
   sx1 : assert A G !x1;
   sx2 : assert A G !x2;
   sx3 : assert !x3 & A X A G x3;
} drivenby {
    pause;
    pause;
}