-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly to get the updated lint script so Travis passes
- Loading branch information
Showing
1,307 changed files
with
28,285 additions
and
6,341 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,31 @@ and passing the resulting equation to a decision procedure. | |
|
||
For full information see [cprover.org](http://www.cprover.org/cbmc). | ||
|
||
Versions | ||
======== | ||
|
||
Get the [latest release](https://github.com/diffblue/cbmc/releases) | ||
* Releases are tested and for production use. | ||
|
||
Get the current *develop* version: `git clone https://github.com/diffblue/cbmc.git` | ||
* Develop versions are not recommended for production use. | ||
|
||
Report bugs | ||
=========== | ||
|
||
If you encounter a problem please file a bug report: | ||
* Create an [issue](https://github.com/diffblue/cbmc/issues) | ||
|
||
Contributing to the code base | ||
============================= | ||
|
||
1. Fork the repository | ||
2. Clone the repository `git clone [email protected]:YOURNAME/cbmc.git` | ||
3. Create a branch from the `develop` branch (default branch) | ||
4. Make your changes (follow the [coding guidelines](https://github.com/diffblue/cbmc/blob/develop/CODING_STANDARD.md)) | ||
5. Push your changes to your branch | ||
6. Create a Pull Request targeting the `develop` branch | ||
|
||
License | ||
======= | ||
4-clause BSD license, see `LICENSE` file. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
default: tests.log | ||
|
||
test: | ||
@if ! ../test.pl -c ../../../src/cbmc/cbmc ; then \ | ||
../failed-tests-printer.pl ; \ | ||
exit 1 ; \ | ||
fi | ||
|
||
tests.log: ../test.pl | ||
@if ! ../test.pl -c ../../../src/cbmc/cbmc ; then \ | ||
../failed-tests-printer.pl ; \ | ||
exit 1 ; \ | ||
fi | ||
|
||
show: | ||
@for dir in *; do \ | ||
if [ -d "$$dir" ]; then \ | ||
vim -o "$$dir/*.java" "$$dir/*.out"; \ | ||
fi; \ | ||
done; | ||
|
||
clean: | ||
find -name '*.out' -execdir $(RM) '{}' \; | ||
find -name '*.gb' -execdir $(RM) '{}' \; | ||
$(RM) tests.log | ||
|
||
%.class: %.java ../../src/org.cprover.jar | ||
javac -g -cp ../../src/org.cprover.jar:. $< | ||
|
||
nondet_java_files := $(shell find . -name "Nondet*.java") | ||
nondet_class_files := $(patsubst %.java, %.class, $(nondet_java_files)) | ||
|
||
.PHONY: nondet-class-files | ||
nondet-class-files: $(nondet_class_files) | ||
|
||
.PHONY: clean-nondet-class-files | ||
clean-nondet-class-files: | ||
-rm $(nondet_class_files) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CORE | ||
test.class | ||
--function test.check | ||
^EXIT=0$ | ||
^SIGNAL=0$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class A | ||
{ | ||
public int toInt() | ||
{ | ||
return 12345; | ||
} | ||
} | ||
|
||
class B extends A | ||
{ | ||
} | ||
|
||
class test | ||
{ | ||
void check() | ||
{ | ||
B b=new B(); | ||
assert(b.toInt()==12345); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CORE | ||
test.class | ||
--function test.check | ||
^EXIT=0$ | ||
^SIGNAL=0$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class A | ||
{ | ||
protected int toInt() | ||
{ | ||
return 12345; | ||
} | ||
} | ||
|
||
class B extends A | ||
{ | ||
public void secondary() | ||
{ | ||
assert(toInt()==12345); | ||
} | ||
} | ||
|
||
class test | ||
{ | ||
void check() | ||
{ | ||
B b=new B(); | ||
b.secondary(); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CORE | ||
test.class | ||
--function test.check | ||
^EXIT=0$ | ||
^SIGNAL=0$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Z | ||
{ | ||
public int toInt() | ||
{ | ||
return 12345; | ||
} | ||
} | ||
|
||
class A extends Z | ||
{ | ||
} | ||
|
||
class B extends A | ||
{ | ||
} | ||
|
||
class test | ||
{ | ||
void check() | ||
{ | ||
B b=new B(); | ||
assert(b.toInt()==12345); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CORE | ||
test.class | ||
--function test.check | ||
^EXIT=0$ | ||
^SIGNAL=0$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class A | ||
{ | ||
public int toInt() | ||
{ | ||
return 12345; | ||
} | ||
} | ||
|
||
class B extends A | ||
{ | ||
public int toInt() | ||
{ | ||
return 9999; | ||
} | ||
} | ||
|
||
class Z extends B | ||
{ | ||
} | ||
|
||
class test | ||
{ | ||
void check() | ||
{ | ||
Z z=new Z(); | ||
assert(z.toInt()==9999); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CORE | ||
test.class | ||
--function test.check | ||
^EXIT=0$ | ||
^SIGNAL=0$ |
Oops, something went wrong.