示例#1
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 ++;
    }
  }
}
}
示例#2
0
void gate3_each_pals_period(void) 
{ 
  int8_t next_state ;
  msg_t tmp ;
  int tmp___0 ;

  {
  gate3Failed = __VERIFIER_nondet_bool();
  write_history_bool(2, gate3Failed);
  if (gate3Failed) {
    g3v_new = nomsg != nomsg && g3v_new == nomsg ? nomsg : g3v_new;
    return;
  }
  tmp = __VERIFIER_nondet_int8_t();
  next_state = tmp;
  if ((int )next_state == 0) {
    tmp___0 = 1;
  } else
  if ((int )next_state == 1) {
    tmp___0 = 1;
  } else
  if ((int )next_state == 2) {
    tmp___0 = 1;
  } else {
    tmp___0 = 0;
  }
  __VERIFIER_assume((_Bool )tmp___0);
  g3v_new = next_state != nomsg && g3v_new == nomsg ? next_state : g3v_new;
  return;
}
}
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);
    }
  }
}
}