Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
2
6
file
stringclasses
3 values
original_program
stringclasses
3 values
normalized_program
stringclasses
3 values
baseline_decision
stringclasses
2 values
median_timing
float64
14.1
26.3
split
stringclasses
1 value
2
prodbin-ll_unwindbound1_2.c
/* shift_add algorithm for computing the product of two natural numbers This task is incorrect, here is an explanation why: - The first assertion z + x * y == (long long) a * b is a loop invariant, so it can never be violated. */ extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); void reach_error() { __assert_fail("0", "prodbin-ll.c", 14, "reach_error"); } extern int __VERIFIER_nondet_int(void); extern void abort(void); void assume_abort_if_not(int cond) { if (!cond) { abort(); } } void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR : { reach_error(); } } return; } int counter = 0; int main() { int a, b; long long x, y, z; a = __VERIFIER_nondet_int(); b = __VERIFIER_nondet_int(); assume_abort_if_not(b >= 1); x = a; y = b; z = 0; while (counter++ < 1) { __VERIFIER_assert(z + x * y == (long long)a * b); if (!(y != 0)) { break; } if (y % 2 == 1) { z = z + x; y = y - 1; } x = 2 * x; y = y / 2; } return 0; }
void assert(int cond) { if (!(cond)) { ERROR : { reach_error(); abort(); } } } void assume(int cond) { if (!cond) { abort(); } } int counter = 0; int main() { int a, b; long long x, y, z; a = __VERIFIER_nondet_int(); b = __VERIFIER_nondet_int(); assume(b >= 1); x = a; y = b; z = 0; while (counter++ < 1) { assert(z + x * y == (long long)a * b); if (!(y != 0)) { break; } if (y % 2 == 1) { z = z + x; y = y - 1; } x = 2 * x; y = y / 2; } return 0; }
TRUE
26.292843
easy
4
condmf_1.c
/* * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] * [1] Indian Institute of Technology Bombay, Mumbai * [2] TCS Innovation labs, Pune * */ extern void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); void reach_error() { __assert_fail("0", "condmf.c", 10, "reach_error"); } extern void abort(void); void assume_abort_if_not(int cond) { if (!cond) { abort(); } } void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR : { reach_error(); abort(); } } } extern int __VERIFIER_nondet_int(void); void *malloc(unsigned int size); int N; int main() { N = __VERIFIER_nondet_int(); if (N <= 0) { return 1; } assume_abort_if_not(N <= 2147483647 / sizeof(int)); int i; int *a = malloc(sizeof(int) * N); for (i = 0; i < N; i++) { a[i] = 0; } for (i = 0; i < N; i++) { if (N % 2 == 1) { a[i] = a[i] + 2; } else { a[i] = a[i] + 1; } } for (i = 0; i < N; i++) { __VERIFIER_assert(a[i] % 2 == N % 2); } return 1; }
void assert(int cond) { if (!(cond)) { ERROR : { reach_error(); abort(); } } } void assume(int cond) { if (!cond) { abort(); } } void *malloc(unsigned int size); int N; int main() { N = __VERIFIER_nondet_int(); if (N <= 0) { return 1; } assume(N <= 2147483647 / sizeof(int)); int i; int *a = malloc(sizeof(int) * N); for (i = 0; i < N; i++) { a[i] = 0; } for (i = 0; i < N; i++) { if (N % 2 == 1) { a[i] = a[i] + 2; } else { a[i] = a[i] + 1; } } for (i = 0; i < N; i++) { assert(a[i] % 2 == N % 2); } return 1; }
FALSE
16.102519
easy
6
cohencu-ll_valuebound1_2.c
/* Printing consecutive cubes, by Cohen http://www.cs.upc.edu/~erodri/webpage/polynomial_invariants/cohencu.htm */ extern void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); void reach_error() { __assert_fail("0", "cohencu-ll.c", 8, "reach_error"); } extern unsigned short __VERIFIER_nondet_ushort(void); extern void abort(void); void assume_abort_if_not(int cond) { if (!cond) { abort(); } } void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR : { reach_error(); } } return; } int main() { short a; long long n, x, y, z; a = __VERIFIER_nondet_ushort(); assume_abort_if_not(a >= 0 && a <= 1); n = 0; x = 0; y = 1; z = 6; while (1) { __VERIFIER_assert(y == 3 * n * n + 3 * n + 1); if (!(n <= a)) { break; } n = n + 1; x = x + y; y = y + z; z = z + 6; } return 0; }
void assert(int cond) { if (!(cond)) { ERROR : { reach_error(); abort(); } } } void assume(int cond) { if (!cond) { abort(); } } int main() { short a; long long n, x, y, z; a = __VERIFIER_nondet_ushort(); assume(a >= 0 && a <= 1); n = 0; x = 0; y = 1; z = 6; while (1) { assert(y == 3 * n * n + 3 * n + 1); if (!(n <= a)) { break; } n = n + 1; x = x + y; y = y + z; z = z + 6; } return 0; }
TRUE
14.060688
easy
README.md exists but content is empty.
Downloads last month
53