size_t strlcpy(char *arg0, const char *arg1, size_t arg2) {
  // Typedef type
  // Real type: __kernel_size_t 
  // Typedef type
  // Real type: unsigned long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
__kernel_size_t strnlen(const char *arg0, __kernel_size_t arg1) {
  // Typedef type
  // Real type: __kernel_ulong_t 
  // Typedef type
  // Real type: unsigned long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
async_cookie_t async_schedule(async_func_ptr *arg0, void *arg1) {
  // Typedef type
  // Real type: u64 
  // Typedef type
  // Real type: unsigned long long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
Example #4
0
int main()
{
  unsigned long pat_len = __VERIFIER_nondet_ulong(), a_len = __VERIFIER_nondet_ulong();

  int *pat=malloc(sizeof(int)*pat_len);
  int *a=malloc(sizeof(int)*a_len);
  //int pat[]={1,3};
  //int pat[]={1,2,3};
  //int pat[]={1,2,4};
  //int a[]={1,3,2,3};

  if(is_relaxed_prefix(pat, pat_len, a, a_len))
  {
    __VERIFIER_assert(pat_len<=a_len+1);
    unsigned long different = __VERIFIER_nondet_ulong();
    if(pat_len>a_len)
      different=pat_len-1;
    for(int i=0; i<pat_len && i<a_len; i++)
    {
		    pat[i] = __VERIFIER_nondet_int();
				a[i] = __VERIFIER_nondet_int();
        if(i<different)
          __VERIFIER_assume(pat[i]==a[i]);
        else if(i==different)
          __VERIFIER_assume(pat[i]!=a[i]);
        else if(i>different)
          __VERIFIER_assert(pat[i]==a[i-1]);
    }
  }
  else if(pat_len<=a_len+1)
  {
    unsigned long differences=0;
    for(int i=0; i<pat_len && i<a_len; i++)
    {
      if(pat[i]!=a[i-differences])
        ++differences;
    }
    if(pat_len>a_len)
      ++differences;
    __VERIFIER_assert(differences>1);
  }

  free(pat);
  free(a);
  return 0;
}
size_t sg_copy_to_buffer(struct scatterlist *arg0, unsigned int arg1, void *arg2, size_t arg3) {
  // Typedef type
  // Real type: __kernel_size_t 
  // Typedef type
  // Real type: __kernel_ulong_t 
  // Typedef type
  // Real type: unsigned long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int wait_for_completion_timeout(struct completion *arg0, unsigned long arg1) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int simple_strtoul(const char *arg0, char **arg1, unsigned int arg2) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int msecs_to_jiffies(const unsigned int arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int find_next_bit(const unsigned long *arg0, unsigned long arg1, unsigned long arg2) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int _raw_spin_lock_irqsave(raw_spinlock_t *arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
u64 timecounter_cyc2time(struct timecounter *arg0, cycle_t arg1) {
  // Typedef type
  // Real type: unsigned long long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
Example #12
0
File: lib.c Project: Linhos13/svc15
/* unsigned long */
sector_t __VERIFIER_nondet_sector_t()
{
    __VERIFIER_nondet_ulong();
}
Example #13
0
File: lib.c Project: Linhos13/svc15
/* unsigned long */
pthread_t __VERIFIER_nondet_pthread_t()
{
    __VERIFIER_nondet_ulong();
}
Example #14
0
int main(void) {
  char x1 = __VERIFIER_nondet_char();
  assert(x1 >= SCHAR_MIN && x1 <= SCHAR_MAX);

  signed char x2 = __VERIFIER_nondet_signed_char();
  assert(x2 >= SCHAR_MIN && x2 <= SCHAR_MAX);

  unsigned char x3 = __VERIFIER_nondet_unsigned_char();
  assert(x3 >= 0 && x3 <= UCHAR_MAX);

  short x4 = __VERIFIER_nondet_short();
  assert(x4 >= SHRT_MIN && x4 <= SHRT_MAX);

  signed short x5 = __VERIFIER_nondet_signed_short();
  assert(x5 >= SHRT_MIN && x5 <= SHRT_MAX);

  signed short int x6 = __VERIFIER_nondet_signed_short_int();
  assert(x6 >= SHRT_MIN && x6 <= SHRT_MAX);

  unsigned short x7 = __VERIFIER_nondet_unsigned_short();
  assert(x7 >= 0 && x7 <= USHRT_MAX);

  unsigned short int x8 = __VERIFIER_nondet_unsigned_short_int();
  assert(x8 >= 0 && x8 <= USHRT_MAX);

  int x9 = __VERIFIER_nondet_int();
  assert(x9 >= INT_MIN && x9 <= INT_MAX);

  signed int x10 = __VERIFIER_nondet_signed_int();
  assert(x10 >= INT_MIN && x10 <= INT_MAX);

  unsigned x11 = __VERIFIER_nondet_unsigned();
  assert(x11 >= 0 && x11 <= UINT_MAX);

  unsigned int x12 = __VERIFIER_nondet_unsigned_int();
  assert(x12 >= 0 && x12 <= UINT_MAX);

  long x13 = __VERIFIER_nondet_long();
  assert(x13 >= LONG_MIN && x13 <= LONG_MAX);

  long int x14 = __VERIFIER_nondet_long_int();
  assert(x14 >= LONG_MIN && x14 <= LONG_MAX);

  signed long x15 = __VERIFIER_nondet_signed_long();
  assert(x15 >= LONG_MIN && x15 <= LONG_MAX);

  signed long int x16 = __VERIFIER_nondet_signed_long_int();
  assert(x16 >= LONG_MIN && x16 <= LONG_MAX);

  unsigned long x17 = __VERIFIER_nondet_unsigned_long();
  assert(x17 >= 0 && x17 <= ULONG_MAX);

  unsigned long int x18 = __VERIFIER_nondet_unsigned_long_int();
  assert(x18 >= 0 && x18 <= ULONG_MAX);

  long long x19 = __VERIFIER_nondet_long_long();
  assert(x19 >= LLONG_MIN && x19 <= LLONG_MAX);

  long long int x20 = __VERIFIER_nondet_long_long_int();
  assert(x20 >= LLONG_MIN && x20 <= LLONG_MAX);

  signed long long x21 = __VERIFIER_nondet_signed_long_long();
  assert(x21 >= LLONG_MIN && x21 <= LLONG_MAX);

  signed long long int x22 = __VERIFIER_nondet_signed_long_long_int();
  assert(x22 >= LLONG_MIN && x22 <= LLONG_MAX);

  unsigned long long x23 = __VERIFIER_nondet_unsigned_long_long();
  assert(x23 >= 0 && x23 <= ULLONG_MAX);

  unsigned long long int x24 = __VERIFIER_nondet_unsigned_long_long_int();
  assert(x24 >= 0 && x24 <= ULLONG_MAX);

// Used in SVCCOMP benchmarks
  _Bool x25 = __VERIFIER_nondet_bool();
  assert(x25 == 0 || x25 == 1);

  unsigned char x26 = __VERIFIER_nondet_uchar();
  assert(x26 >= 0 && x26 <= UCHAR_MAX);

  unsigned short x27 = __VERIFIER_nondet_ushort();
  assert(x27 >= 0 && x27 <= USHRT_MAX);

  unsigned int x28 = __VERIFIER_nondet_uint();
  assert(x28 >= 0 && x28 <= UINT_MAX);

  unsigned long x29 = __VERIFIER_nondet_ulong();
  assert(x29 >= 0 && x29 <= ULONG_MAX);

  return 0;
}
unsigned long int get_seconds() {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int msleep_interruptible(unsigned int arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int clk_get_rate(struct clk *arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
u64 timecounter_read(struct timecounter *arg0) {
  // Typedef type
  // Real type: unsigned long long
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int round_jiffies(unsigned long arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int gen_pool_alloc(struct gen_pool *arg0, size_t arg1) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int __phys_addr(unsigned long arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int get_zeroed_page(gfp_t arg0) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int _copy_to_user(void *arg0, const void *arg1, unsigned int arg2) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}
unsigned long int __get_free_pages(gfp_t arg0, unsigned int arg1) {
  // Simple type
  return __VERIFIER_nondet_ulong();
}