/* Generated by Frama-C */
#include "pthread.h"
#include "sched.h"
#include "signal.h"
#include "stddef.h"
#include "stdint.h"
#include "stdio.h"
#include "time.h"
extern  __attribute__((__FC_BUILTIN__)) int __e_acsl_sound_verdict;

int global_i;

int *global_i_ptr = & global_i;
int global_i = 0;
/*@ requires global_i == 0;
    requires \valid(global_i_ptr);
    requires global_i_ptr == &global_i;
 */
void __gen_e_acsl_loop(void);

void loop(void)
{
  return;
}

/*@ requires global_i == 0;
    requires \valid(global_i_ptr);
    requires global_i_ptr == &global_i;
 */
void __gen_e_acsl_loop(void)
{
  {
    int __gen_e_acsl_valid;
    __e_acsl_assert_data_t __gen_e_acsl_assert_data = {.values = (void *)0};
    __e_acsl_assert_register_int(& __gen_e_acsl_assert_data,"global_i",0,
                                 global_i);
    __gen_e_acsl_assert_data.blocking = 1;
    __gen_e_acsl_assert_data.kind = "Precondition";
    __gen_e_acsl_assert_data.pred_txt = "global_i == 0";
    __gen_e_acsl_assert_data.file = "bts1478.c";
    __gen_e_acsl_assert_data.fct = "loop";
    __gen_e_acsl_assert_data.line = 9;
    __e_acsl_assert(global_i == 0,& __gen_e_acsl_assert_data);
    __e_acsl_assert_clean(& __gen_e_acsl_assert_data);
    __e_acsl_assert_data_t __gen_e_acsl_assert_data_2 =
      {.values = (void *)0};
    __e_acsl_assert_register_ptr(& __gen_e_acsl_assert_data_2,"global_i_ptr",
                                 (void *)global_i_ptr);
    __e_acsl_assert_register_ulong(& __gen_e_acsl_assert_data_2,
                                   "sizeof(int)",0,sizeof(int));
    __gen_e_acsl_valid = __e_acsl_valid((void *)global_i_ptr,sizeof(int),
                                        (void *)global_i_ptr,
                                        (void *)(& global_i_ptr));
    __e_acsl_assert_register_int(& __gen_e_acsl_assert_data_2,
                                 "\\valid(global_i_ptr)",0,
                                 __gen_e_acsl_valid);
    __gen_e_acsl_assert_data_2.blocking = 1;
    __gen_e_acsl_assert_data_2.kind = "Precondition";
    __gen_e_acsl_assert_data_2.pred_txt = "\\valid(global_i_ptr)";
    __gen_e_acsl_assert_data_2.file = "bts1478.c";
    __gen_e_acsl_assert_data_2.fct = "loop";
    __gen_e_acsl_assert_data_2.line = 10;
    __e_acsl_assert(__gen_e_acsl_valid,& __gen_e_acsl_assert_data_2);
    __e_acsl_assert_clean(& __gen_e_acsl_assert_data_2);
    __e_acsl_assert_data_t __gen_e_acsl_assert_data_3 =
      {.values = (void *)0};
    __e_acsl_assert_register_ptr(& __gen_e_acsl_assert_data_3,"global_i_ptr",
                                 (void *)global_i_ptr);
    __e_acsl_assert_register_ptr(& __gen_e_acsl_assert_data_3,"&global_i",
                                 (void *)(& global_i));
    __gen_e_acsl_assert_data_3.blocking = 1;
    __gen_e_acsl_assert_data_3.kind = "Precondition";
    __gen_e_acsl_assert_data_3.pred_txt = "global_i_ptr == &global_i";
    __gen_e_acsl_assert_data_3.file = "bts1478.c";
    __gen_e_acsl_assert_data_3.fct = "loop";
    __gen_e_acsl_assert_data_3.line = 11;
    __e_acsl_assert(global_i_ptr == & global_i,& __gen_e_acsl_assert_data_3);
    __e_acsl_assert_clean(& __gen_e_acsl_assert_data_3);
  }
  loop();
  return;
}

void __e_acsl_globals_init(void)
{
  static char __e_acsl_already_run = 0;
  if (! __e_acsl_already_run) {
    __e_acsl_already_run = 1;
    __e_acsl_store_block((void *)(& global_i_ptr),8UL);
    __e_acsl_full_init((void *)(& global_i_ptr));
    __e_acsl_store_block((void *)(& global_i),4UL);
    __e_acsl_full_init((void *)(& global_i));
  }
  return;
}

void __e_acsl_globals_clean(void)
{
  __e_acsl_delete_block((void *)(& global_i_ptr));
  __e_acsl_delete_block((void *)(& global_i));
  return;
}

int main(void)
{
  int __retres;
  __e_acsl_memory_init((int *)0,(char ***)0,8UL);
  __e_acsl_globals_init();
  __gen_e_acsl_loop();
  __retres = 0;
  __e_acsl_globals_clean();
  __e_acsl_memory_clean();
  return __retres;
}


