Skip to content

Commit f33459f

Browse files
author
Daniel Kroening
authored
Merge pull request #2529 from tautschnig/debian1
Do not (unnecessarily) require preprocessing for fixed 32/64 bit regression tests
2 parents 709b45f + 0a990ef commit f33459f

File tree

28 files changed

+100
-151
lines changed

28 files changed

+100
-151
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
- g++-5
103103
- libubsan0
104104
- parallel
105-
- libc6-dev-i386
106105
before_install:
107106
- mkdir bin
108107
- ln -s /usr/bin/gcc-5 bin/gcc
@@ -137,7 +136,6 @@ jobs:
137136
- libwww-perl
138137
- g++-5
139138
- libubsan0
140-
- libc6-dev-i386
141139
before_install:
142140
- mkdir bin
143141
- ln -s /usr/bin/gcc-5 bin/gcc
@@ -166,7 +164,6 @@ jobs:
166164
- libstdc++-5-dev
167165
- libubsan0
168166
- parallel
169-
- libc6-dev-i386
170167
before_install:
171168
- mkdir bin
172169
- ln -s /usr/bin/gcc-5 bin/gcc
@@ -195,7 +192,6 @@ jobs:
195192
- g++-5
196193
- libstdc++-5-dev
197194
- libubsan0
198-
- libc6-dev-i386
199195
before_install:
200196
- mkdir bin
201197
- ln -s /usr/bin/gcc-5 bin/gcc
@@ -221,7 +217,6 @@ jobs:
221217
- ubuntu-toolchain-r-test
222218
packages:
223219
- g++-5
224-
- libc6-dev-i386
225220
before_install:
226221
- mkdir bin
227222
- ln -s /usr/bin/gcc-5 bin/gcc
@@ -247,7 +242,6 @@ jobs:
247242
- ubuntu-toolchain-r-test
248243
packages:
249244
- g++-7
250-
- libc6-dev-i386
251245
before_install:
252246
- mkdir bin
253247
- ln -s /usr/bin/gcc-7 bin/gcc
@@ -279,7 +273,6 @@ jobs:
279273
- libstdc++-5-dev
280274
- libubsan0
281275
- parallel
282-
- libc6-dev-i386
283276
before_install:
284277
- mkdir bin
285278
# Use gcc/g++ 5 for tests, as Clang doesn't work yet
File renamed without changes.

regression/cbmc/Float24/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CORE
2-
main.c
2+
main.i
33
--win32 --xml-ui
44
^EXIT=10$
55
^SIGNAL=0$
File renamed without changes.

regression/cbmc/Malloc15/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CORE
2-
main.c
2+
main.i
33
--32
44
^EXIT=0$
55
^SIGNAL=0$
File renamed without changes.

regression/cbmc/Malloc16/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CORE
2-
main.c
2+
main.i
33
--32
44
^EXIT=0$
55
^SIGNAL=0$

regression/cbmc/Pointer_Arithmetic12/main.c renamed to regression/cbmc/Pointer_Arithmetic12/main.i

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#include <stdint.h>
2-
3-
#include <assert.h>
1+
typedef unsigned int uint32_t;
42

53
uint32_t __stack[32];
64

@@ -98,35 +96,25 @@ int main()
9896
L_0x401_0: esp-=0x14;
9997
L_0x404_0: var15=ebp;
10098
L_0x404_1: var15-=0x4;
101-
#ifdef NONDET
102-
L_0x404_2: *(uint32_t*)(var15)=nondet_uint();
103-
#else
10499
L_0x404_2: *(uint32_t*)(var15)=0xffffffff;
105-
#endif
106100
L_0x40b_0: var16=ebp;
107101
L_0x40b_1: var16-=0x4;
108102
L_0x40b_2: eax=*(uint32_t*)(var16);
109103
L_0x40e_0: *(uint32_t*)(esp)=eax;
110104
L_0x411_0: esp-=4; f__L_0x3c6_0(); esp+=4;
111-
#if 1
112105
uint32_t eax1=eax;
113106
C_0x3ff_0: ebp=esp;
114107
C_0x401_0: esp-=0x14;
115108
C_0x404_0: var15=ebp;
116109
C_0x404_1: var15-=0x4;
117-
#ifdef NONDET
118-
C_0x404_2: *(uint32_t*)(var15)=nondet_uint();
119-
#else
120110
C_0x404_2: *(uint32_t*)(var15)=0xffffffff;
121-
#endif
122111
C_0x40b_0: var16=ebp;
123112
C_0x40b_1: var16-=0x4;
124113
C_0x40b_2: eax=*(uint32_t*)(var16);
125114
C_0x40e_0: *(uint32_t*)(esp)=eax;
126115
C_0x411_0: esp-=4; f__L_0x3c6_0(); esp+=4;
127116
uint32_t eax2=eax;
128-
assert(eax2==eax1);
129-
#endif
117+
__CPROVER_assert(eax2 == eax1, "");
130118
L_0x416_0: esp=ebp;
131119
L_0x416_1: ebp=*(uint32_t*)(esp);
132120
L_0x416_2: esp+=0x4;

regression/cbmc/Pointer_Arithmetic12/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CORE
2-
main.c
2+
main.i
33
--32 --little-endian
44
^EXIT=0$
55
^SIGNAL=0$
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include <assert.h>
2-
31
int main()
42
{
53
int arrayOfIntegers[] = {1, 2, 3};
@@ -8,6 +6,6 @@ int main()
86
int iFirst=(int)pointer2FirstElem;
97
int iThird=(int)pointer2ThirdElem;
108
int addrDiff = iThird-iFirst;
11-
assert(addrDiff == 2* sizeof(int));
9+
__CPROVER_assert(addrDiff == 2* sizeof(int), "");
1210
return 0;
1311
}

0 commit comments

Comments
 (0)