Download examples/add_ptr_bench.c from AProver/aprover: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/AProver/aprover/resolve/main/examples/add_ptr_bench.c
- Command line
-
hf download hf://spaces/AProver/aprover/examples/add_ptr_bench.c
-
curl -L -o add_ptr_bench.c https://huggingface.co/spaces/AProver/aprover/resolve/main/examples/add_ptr_bench.c
280 Bytes
| int add(int *p, int *q) { | |
| return *p + *q; | |
| } | |
| int main() { | |
| int a = 24; | |
| int b = 32; | |
| int x; | |
| x = add(&a, &b) ; | |
| //@ assert x == a + b ; | |
| //@ assert x == 56 ; | |
| x = add(&a, &a) ; | |
| //@ assert x == a + a ; | |
| //@ assert x == 48 ; | |
| } | |