コード例 #1
0
void main(void) 
{ 
  int c1 ;
  int i2 ;

  {
  c1 = 0;
  r1 = __VERIFIER_nondet_char();
  id1 = __VERIFIER_nondet_char();
  st1 = __VERIFIER_nondet_char();
  send1 = __VERIFIER_nondet_msg_t();
  mode1 = __VERIFIER_nondet__Bool();
  alive1 = __VERIFIER_nondet__Bool();
  id2 = __VERIFIER_nondet_char();
  st2 = __VERIFIER_nondet_char();
  send2 = __VERIFIER_nondet_msg_t();
  mode2 = __VERIFIER_nondet__Bool();
  alive2 = __VERIFIER_nondet__Bool();
  id3 = __VERIFIER_nondet_char();
  st3 = __VERIFIER_nondet_char();
  send3 = __VERIFIER_nondet_msg_t();
  mode3 = __VERIFIER_nondet__Bool();
  alive3 = __VERIFIER_nondet__Bool();
  id4 = __VERIFIER_nondet_char();
  st4 = __VERIFIER_nondet_char();
  send4 = __VERIFIER_nondet_msg_t();
  mode4 = __VERIFIER_nondet__Bool();
  alive4 = __VERIFIER_nondet__Bool();
  i2 = init();
  __VERIFIER_assume(i2);
  p1_old = nomsg;
  p1_new = nomsg;
  p2_old = nomsg;
  p2_new = nomsg;
  p3_old = nomsg;
  p3_new = nomsg;
  p4_old = nomsg;
  p4_new = nomsg;
  i2 = 0;
  while (i2 < 8) {
    {
    node1();
    node2();
    node3();
    node4();
    p1_old = p1_new;
    p1_new = nomsg;
    p2_old = p2_new;
    p2_new = nomsg;
    p3_old = p3_new;
    p3_new = nomsg;
    p4_old = p4_new;
    p4_new = nomsg;
    c1 = check();
    assert(c1);
    i2 ++;
    }
  }
}
}
コード例 #2
0
void main(void) 
{ 
  int c1 ;
  int i2 ;

  {
  c1 = 0;
  gate1Failed = __VERIFIER_nondet__Bool();
  gate2Failed = __VERIFIER_nondet__Bool();
  gate3Failed = __VERIFIER_nondet__Bool();
  VALUE1 = __VERIFIER_nondet_msg_t();
  VALUE2 = __VERIFIER_nondet_msg_t();
  VALUE3 = __VERIFIER_nondet_msg_t();
  gate1Failed_History_0 = __VERIFIER_nondet__Bool();
  gate1Failed_History_1 = __VERIFIER_nondet__Bool();
  gate1Failed_History_2 = __VERIFIER_nondet__Bool();
  gate2Failed_History_0 = __VERIFIER_nondet__Bool();
  gate2Failed_History_1 = __VERIFIER_nondet__Bool();
  gate2Failed_History_2 = __VERIFIER_nondet__Bool();
  gate3Failed_History_0 = __VERIFIER_nondet__Bool();
  gate3Failed_History_1 = __VERIFIER_nondet__Bool();
  gate3Failed_History_2 = __VERIFIER_nondet__Bool();
  votedValue_History_0 = __VERIFIER_nondet_int8_t();
  votedValue_History_1 = __VERIFIER_nondet_int8_t();
  votedValue_History_2 = __VERIFIER_nondet_int8_t();
  i2 = init();
  __VERIFIER_assume(i2);
  g1v_old = nomsg;
  g1v_new = nomsg;
  g2v_old = nomsg;
  g2v_new = nomsg;
  g3v_old = nomsg;
  g3v_new = nomsg;
  i2 = 0;
  while (i2 < 10) {
    {
    gate1_each_pals_period();
    gate2_each_pals_period();
    gate3_each_pals_period();
    voter();
    g1v_old = g1v_new;
    g1v_new = nomsg;
    g2v_old = g2v_new;
    g2v_new = nomsg;
    g3v_old = g3v_new;
    g3v_new = nomsg;
    c1 = check();
    assert(c1);
    i2 ++;
    }
  }
}
}
void main(void) 
{ 
  int c1 ;
  int i2 ;

  {
  c1 = 0;
  side1Failed = __VERIFIER_nondet__Bool();
  side2Failed = __VERIFIER_nondet__Bool();
  side1_written = __VERIFIER_nondet_msg_t();
  side2_written = __VERIFIER_nondet_msg_t();
  side1Failed_History_0 = __VERIFIER_nondet__Bool();
  side1Failed_History_1 = __VERIFIER_nondet__Bool();
  side1Failed_History_2 = __VERIFIER_nondet__Bool();
  side2Failed_History_0 = __VERIFIER_nondet__Bool();
  side2Failed_History_1 = __VERIFIER_nondet__Bool();
  side2Failed_History_2 = __VERIFIER_nondet__Bool();
  active_side_History_0 = __VERIFIER_nondet_int8_t();
  active_side_History_1 = __VERIFIER_nondet_int8_t();
  active_side_History_2 = __VERIFIER_nondet_int8_t();
  manual_selection_History_0 = __VERIFIER_nondet_msg_t();
  manual_selection_History_1 = __VERIFIER_nondet_msg_t();
  manual_selection_History_2 = __VERIFIER_nondet_msg_t();
  i2 = init();
  __VERIFIER_assume(i2);
  cs1_old = nomsg;
  cs1_new = nomsg;
  cs2_old = nomsg;
  cs2_new = nomsg;
  s1s2_old = nomsg;
  s1s2_new = nomsg;
  s1s1_old = nomsg;
  s1s1_new = nomsg;
  s2s1_old = nomsg;
  s2s1_new = nomsg;
  s2s2_old = nomsg;
  s2s2_new = nomsg;
  s1p_old = nomsg;
  s1p_new = nomsg;
  s2p_old = nomsg;
  s2p_new = nomsg;
  i2 = 0;
  while (1) {
    {
    Console_task_each_pals_period();
    Side1_activestandby_task_each_pals_period();
    Side2_activestandby_task_each_pals_period();
    Pendulum_prism_task_each_pals_period();
    cs1_old = cs1_new;
    cs1_new = nomsg;
    cs2_old = cs2_new;
    cs2_new = nomsg;
    s1s2_old = s1s2_new;
    s1s2_new = nomsg;
    s1s1_old = s1s1_new;
    s1s1_new = nomsg;
    s2s1_old = s2s1_new;
    s2s1_new = nomsg;
    s2s2_old = s2s2_new;
    s2s2_new = nomsg;
    s1p_old = s1p_new;
    s1p_new = nomsg;
    s2p_old = s2p_new;
    s2p_new = nomsg;
    c1 = check();
    assert(c1);
    }
  }
}
}