Skip to content

Commit c362a26

Browse files
authored
Merge pull request #660 from peterschrammel/pull-from-master
Update test-gen-support from master
2 parents c337363 + aa8c91e commit c362a26

Some content is hidden

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

70 files changed

+2294
-339
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Local files generated by IDEs
2+
.vs/*
23
.vscode/*
4+
~AutoRecover.*
5+
*.sln
6+
*.vcxproj*
7+
scripts/__pycache__/*
8+
src/goto-analyzer/taint_driver_scripts/.idea/*
9+
/*.config
10+
/*.creator
11+
/*.creator.user
12+
/*.files
13+
/*.includes
314

415
# compilation files
516
*.lo

COMPILING

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ environments:
1010

1111
- Solaris 11
1212

13-
- FreeBSD 10 or 11
13+
- FreeBSD 11
1414

1515
- Cygwin
16-
(We recommend the i686-pc-mingw32-g++ cross compiler, version 4.7 or above.)
16+
(We recommend the i686-pc-mingw32-g++ cross compiler, version 5.4 or above.)
1717

1818
- Microsoft's Visual Studio version 12 (2013), version 14 (2015),
1919
or version 15 (older versions won't work)
@@ -29,16 +29,16 @@ COMPILATION ON LINUX
2929
We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
3030

3131
0) You need a C/C++ compiler, Flex and Bison, and GNU make.
32-
The GNU Make needs to be version 3.81 or higher. On Debian-like
33-
distributions, do
32+
The GNU Make needs to be version 3.81 or higher.
33+
On Debian-like distributions, do
3434

35-
apt-get install g++ gcc flex bison make git libz-dev libwww-perl patch libzip-dev
35+
apt-get install g++-6 gcc flex bison make git libwww-perl patch
3636

3737
On Red Hat/Fedora or derivates, do
3838

3939
yum install gcc gcc-c++ flex bison perl-libwww-perl patch
4040

41-
Note that you need g++ version 4.9 or newer.
41+
Note that you need g++ version 5.2 or newer.
4242

4343
1) As a user, get the CBMC source via
4444

@@ -57,7 +57,7 @@ COMPILATION ON SOLARIS 11
5757
1) As root, get the necessary development tools:
5858

5959
pkg install system/header developer/lexer/flex developer/parser/bison developer/versioning/git
60-
pkg install --accept developer/gcc-49
60+
pkg install --accept developer/gcc-5
6161

6262
2) As a user, get the CBMC source via
6363

@@ -83,8 +83,8 @@ COMPILATION ON SOLARIS 11
8383
It will mis-optimize MiniSat2.
8484

8585

86-
COMPILATION ON FREEBSD 10/11
87-
----------------------------
86+
COMPILATION ON FREEBSD 11
87+
-------------------------
8888

8989
1) As root, get the necessary tools:
9090

regression/cbmc-java/VarLengthArrayTrace1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VarLengthArrayTrace1.class
33
--trace
44
^EXIT=10$
55
^SIGNAL=0$
6-
dynamic_3_array\[1l\]=10
6+
dynamic_3_array\[1.*\]=10
77
--
88
^warning: ignoring
99
assignment removed
351 Bytes
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class classtest1
2+
{
3+
static void main(String[] args)
4+
{
5+
g(classtest1.class);
6+
}
7+
static void g(Object c)
8+
{
9+
assert true;
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
classtest1.class
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

regression/cbmc/Malloc23/test.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ main.c
55
^SIGNAL=0$
66
pointer outside dynamic object bounds in \*p: FAILURE
77
pointer outside dynamic object bounds in \*p: FAILURE
8-
pointer outside dynamic object bounds in p2\[\(signed long int\)1\]: FAILURE
9-
pointer outside dynamic object bounds in p2\[\(signed long int\)0\]: FAILURE
8+
pointer outside dynamic object bounds in p2\[.*1\]: FAILURE
9+
pointer outside dynamic object bounds in p2\[.*0\]: FAILURE
1010
\*\* 4 of 36 failed \(3 iterations\)
1111
--
1212
^warning: ignoring

regression/cbmc/byte_update2/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int main(int argc, char** argv) {
66
if(argc != 2)
77
return 0;
88

9-
unsigned long x[argc];
9+
unsigned long long x[argc];
1010
x[0]=0x0102030405060708;
1111
x[1]=0x1112131415161718;
1212

regression/cbmc/byte_update3/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int main(int argc, char** argv) {
1313
x[3]=0x0708;
1414
x[4]=0x090a;
1515

16-
unsigned long* alias=(unsigned long*)(((char*)x)+0);
16+
unsigned long long* alias=(unsigned long long*)(((char*)x)+0);
1717
*alias=0xf1f2f3f4f5f6f7f8;
1818

1919
unsigned char* alias2=(unsigned char*)x;

regression/cbmc/byte_update4/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main(int argc, char** argv) {
1818
x[8]=0x09;
1919
x[9]=0x0a;
2020

21-
unsigned long* alias=(unsigned long*)(((char*)x)+1);
21+
unsigned long long* alias=(unsigned long long*)(((char*)x)+1);
2222
*alias=0xf1f2f3f4f5f6f7f8;
2323

2424
unsigned char* alias2=(unsigned char*)x;

0 commit comments

Comments
 (0)