Skip to content

Commit 71e3453

Browse files
committed
Fix most missing function declarations in regression tests
1 parent 698fedc commit 71e3453

File tree

261 files changed

+534
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+534
-228
lines changed

tests/regression/00-sanity/02-minimal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main() {
24
__goblint_check(1); // reachable, formerly TERM
35
return 0;

tests/regression/00-sanity/03-no_succ.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main() {
24
__goblint_check(1); // reachable, formerly TERM
35
return 0;

tests/regression/00-sanity/05-inf_loop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main()
24
{
35
while (1);

tests/regression/00-sanity/06-term1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main() {
24
int i;
35
while (1);

tests/regression/00-sanity/07-term2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include<stdlib.h>
2+
#include <goblint.h>
23

34
void f() {
45
exit(0);

tests/regression/00-sanity/08-asm_nop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main() {
24
__asm__ ("nop");
35
__goblint_check(1); // reachable, formerly TERM

tests/regression/00-sanity/10-loop_label.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <goblint.h>
2+
13
int main () {
24
while (1) {
35
while_1_continue: /* CIL label */ ;

tests/regression/00-sanity/41-both_branches-2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ struct S {
44
int *f[1];
55
};
66

7+
struct S *magic();
8+
79
int main() {
810
struct S* s;
911
s = magic();

tests/regression/01-cpa/34-def-exc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// PARAM: --enable ana.int.def_exc --enable ana.int.interval
2+
#include <stdlib.h>
23
#include <goblint.h>
34
#define LONGS(x) (((x) + sizeof(unsigned long) - 1)/sizeof(unsigned long))
45
#include<stdbool.h>

tests/regression/02-base/59-evalint-deep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// contains deep integer expressions that shouldn't cause extremely exponential slowdown
33
// when evaluated by base's eval_rv and EvalInt jointly
44
// runs (as unknown) under 0.1s
5-
5+
#include <stdlib.h>
66
#include <goblint.h>
77
void assume_abort_if_not(int cond) {
88
if(!cond) {abort();}

0 commit comments

Comments
 (0)