file_name
stringlengths
33
36
verified_c_file_content
stringlengths
38
76k
dependency_acls
stringlengths
0
9.54k
function_implementation
stringlengths
12
11.9k
verified
bool
1 class
total_goals
int64
1
124
verified_goals
int64
1
124
error_cause
stringclasses
1 value
c_code_snippet
stringlengths
12
11.9k
acsl_snippet
stringlengths
0
9.54k
frama_c_files_v2/test_frama_c_2729.c
#include<stdbool.h> #define round(X) (double) (X) /*@ axiomatic fp_funs { logic double Dadd(double X, double Y) = round(X+Y); logic double Dsub(double X, double Y) = round(X-Y); logic double Dmul(double X, double Y) = round(X*Y); logic double Dneg(double X) = round(0-X); logic double Dabs(double X) = ...
#include<stdbool.h> struct maybeInt { bool isValid; int value; }; /*@ assigns \nothing; ensures \result.isValid; ensures \result.value == val; */
struct maybeInt some (int val) { struct maybeInt result = { true, val }; return result; }
true
5
5
struct maybeInt some (int val) { struct maybeInt result = { true, val }; return result; }
#include<stdbool.h> struct maybeInt { bool isValid; int value; }; /*@ assigns \nothing; ensures \result.isValid; ensures \result.value == val; */
frama_c_files_v2/test_frama_c_2783.c
#include <limits.h> #include <string.h> char * p_HTTP(char * x1096); char * p_(char * x1098); char * p_ContentLength(char * x1100); /*@ requires ((strlen(x0)>=0) && \valid(x0+(0..strlen(x0)))); assigns \nothing; */ int p(char * x0) { int x2 = -1; char *x3 = p_HTTP(x0); int x5 = 1/*true*/; int x6 = 0; ...
#include <string.h> /*@ requires ((strlen(x1252)>=0) && \valid(x1252+(0..strlen(x1252)))); assigns \nothing; ensures ((0==\result) || ((strlen(\result)>=0) && \valid(\result+(0..strlen(\result))))); */
char * p_(char * x1252) { char *x1254 = x1252; int x1259 = 1/*true*/; char x1260 = '\0'; char *x1261 = 0/*null*/; char x1255 = x1252[0]; int x1256 = x1255 == '\0'; if (x1256) { x1261 = x1252; } else { int x1257 = x1255 == '\r'; if (x1257) { x1259 = 0/*false*/; x1260 = x1255; ...
true
18
18
char * p_(char * x1252) { char *x1254 = x1252; int x1259 = 1/*true*/; char x1260 = '\0'; char *x1261 = 0/*null*/; char x1255 = x1252[0]; int x1256 = x1255 == '\0'; if (x1256) { x1261 = x1252; } else { int x1257 = x1255 == '\r'; if (x1257) { x1259 = 0/*false*/; x1260 = x1255; ...
#include <string.h> /*@ requires ((strlen(x1252)>=0) && \valid(x1252+(0..strlen(x1252)))); assigns \nothing; ensures ((0==\result) || ((strlen(\result)>=0) && \valid(\result+(0..strlen(\result))))); */
frama_c_files_v2/test_frama_c_2012.c
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
__inline static __uint32_t __uint32_identity(__uint32_t __x) { return __x; }
true
2
2
__inline static __uint32_t __uint32_identity(__uint32_t __x) { return __x; }
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
frama_c_files_v2/test_frama_c_2012.c
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
__inline static __uint64_t __bswap_64(__uint64_t __bsx) { __uint64_t tmp; tmp = __builtin_bswap64(__bsx); return tmp; }
true
2
2
__inline static __uint64_t __bswap_64(__uint64_t __bsx) { __uint64_t tmp; tmp = __builtin_bswap64(__bsx); return tmp; }
/* Generated by Frama-C */ typedef unsigned long size_t; struct __e_acsl_mpz_struct { int _mp_alloc ; int _mp_size ; unsigned long *_mp_d ; }; typedef struct __e_acsl_mpz_struct __e_acsl_mpz_struct; typedef __e_acsl_mpz_struct ( __attribute__((__FC_BUILTIN__)) __e_acsl_mpz_t)[1]; struct __e_acsl_mpq_struct { ...
frama_c_files_v2/test_frama_c_1437.c
/*@ requires \true; assigns \nothing; ensures \result == b; */ int deadcode(int a, int b) { if (a > b) { if (a < b) { return a / b; } else if (a == b) { //@ assert 0 == 1; } } return b; }
/*@ requires \true; assigns \nothing; ensures \result == b; */
int deadcode(int a, int b) { if (a > b) { if (a < b) { return a / b; } else if (a == b) { //@ assert 0 == 1; } } return b; }
true
8
8
int deadcode(int a, int b) { if (a > b) { if (a < b) { return a / b; } else if (a == b) { //@ assert 0 == 1; } } return b; }
/*@ requires \true; assigns \nothing; ensures \result == b; */
frama_c_files_v2/test_frama_c_1061.c
/*@ logic integer abs(integer x) = x >= 0 ? x : -x; */ #include<limits.h> /*@ requires x > INT_MIN; ensures (x >= 0 ==> \result == x) && (x < 0 ==> \result == -x); assigns \nothing; */ int abs ( int x ); /*@ requires x > INT_MIN; requires y > INT_MIN; ensures \result >= x; ensures \result ...
/*@ logic integer abs(integer x) = x >= 0 ? x : -x; */ #include<limits.h> /*@ requires x > INT_MIN; ensures (x >= 0 ==> \result == x) && (x < 0 ==> \result == -x); assigns \nothing; */
int abs ( int x ) { if (x >=0) return x; else return -x; }
true
6
6
int abs ( int x ) { if (x >=0) return x; else return -x; }
/*@ logic integer abs(integer x) = x >= 0 ? x : -x; */ #include<limits.h> /*@ requires x > INT_MIN; ensures (x >= 0 ==> \result == x) && (x < 0 ==> \result == -x); assigns \nothing; */