ALICe documentation

Model jeannet2

«  Model jeannet1   ::   Contents   ::   Model jeannet3  »

Model jeannet2

Cited in: [Jeannet_thesis] fig. 4.1 p. 40.

Tag: fixpoint.

Figure

../_images/jeannet2.png

Source code

model jeannet_thesis_040 {

  var x, y;

  states k1, k2, err;

  transition t2 := {
    from   := k1;
    to     := k2;
    guard  := x = 9;
    action := x' = x + 1;
  };

  transition t1 := {
    from   := k1;
    to     := k1;
    guard  := x < 9;
    action := x' = x + 1;
  };

  transition t4 := {
    from   := k2;
    to     := err;
    guard  := x <= 13 && y >= 4;
    action := ;
  };

  transition t3 := {
    from   := k2;
    to     := k2;
    guard  := true;
    action := x' = x + 1, y' = y + 1;
  };

}

strategy jeannet_thesis_040_s {

  Region init := {state = k1 && x = 0 && y = 0};

}

Expected invariant

{  }

Results

  • With Aspic: { k2[x, -10 + x] : x >= 10; k1[x, 0] : x >= 0 and x <= 9 } (0.06s), OK.
  • With ISL: { k2[x__1, -10 + x__1] : x__1 >= 11; k2[10, 0]; k1[x__1, 0] : x__1 >= 1 and x__1 <= 9; k1[0, 0] } (0.00s), OK.

«  Model jeannet1   ::   Contents   ::   Model jeannet3  »