debian/0000755000000000000000000000000012233530646007172 5ustar debian/links0000644000000000000000000000016612026324414010232 0ustar usr/share/man/man1/cbmc.1 usr/share/man/man1/goto-cc.1 usr/share/man/man1/cbmc.1 usr/share/man/man1/goto-instrument.1 debian/install0000644000000000000000000000014111563331524010556 0ustar src/cbmc/cbmc usr/bin/ src/goto-cc/goto-cc usr/bin/ src/goto-instrument/goto-instrument usr/bin/ debian/copyright0000644000000000000000000000537112026324671011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cbmc Upstream-Contact: Daniel Kroening Source: http://www.cprover.org/cbmc/ Files: * Copyright: 2001-2011, Daniel Kroening, Edmund Clarke, Computer Science Department, Oxford University Computer Systems Institute, ETH Zurich Computer Science Department, Carnegie Mellon University License: BSD-4-clause Files: src/big-int/* Copyright: Dirk Zoller , http://www.dirk-zoller.de/ License: You may however use and modify this without restriction. Files: debian/* Copyright: 2011, Michael Tautschnig License: GPL-3+ This package was debianized by Michael Tautschnig on Sat, 14 May 2011 00:00:23 +0200 . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. License: BSD-4-clause All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: . This product includes software developed by Daniel Kroening, Edmund Clarke, Computer Science Department, Oxford University Computer Systems Institute, ETH Zurich Computer Science Department, Carnegie Mellon University . 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/source/0000755000000000000000000000000011530644170010467 5ustar debian/source/format0000644000000000000000000000001411530644170011675 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001411112233530646011042 0ustar cbmc (4.5-2ubuntu2) trusty; urgency=low * arm64-aarch64: Use __aarch64__ on arm64, not __arm64__ or __arm__ -- Adam Conrad Mon, 28 Oct 2013 12:45:20 -0600 cbmc (4.5-2ubuntu1) trusty; urgency=low * Merge from Debian unstable; remaining changes: - build with -Wno-error=unused-result to avoid FTBFS from -Werror -- Adam Conrad Mon, 28 Oct 2013 10:47:38 -0600 cbmc (4.5-2) unstable; urgency=low * Fixed typo in powerpc sub-arch configuration causing FTBFS -- Michael Tautschnig Mon, 26 Aug 2013 00:07:54 +0100 cbmc (4.5-1) unstable; urgency=low * New upstream release * All 4.4 patches merged -- Michael Tautschnig Sun, 25 Aug 2013 12:33:14 +0100 cbmc (4.4-2) unstable; urgency=low * armhf requires __ARM_PCS_VFP to be defined -- Michael Tautschnig Wed, 10 Jul 2013 22:56:58 +0100 cbmc (4.4-1) unstable; urgency=low * New upstream release (Closes: #701253, #713605) -- Michael Tautschnig Wed, 10 Jul 2013 12:39:13 +0100 cbmc (4.3-6) unstable; urgency=low * Also added -5 patch to series file to actually fix the problems * Update gcc_types_compatible_p1 to SVN HEAD * Cherry-pick upstream r2114-2118, r2120, r2167 -- Michael Tautschnig Fri, 15 Feb 2013 18:35:06 +0000 cbmc (4.3-5) unstable; urgency=low * Cherry-pick upstream r2113 to fix failing regression tests on arm* and mips* * Cherry-pick upstream r2144 and r2148 to fix failing regression tests on powerpc, s390*, and sparc -- Michael Tautschnig Fri, 15 Feb 2013 10:52:56 +0000 cbmc (4.3-4) unstable; urgency=low * Cherry-pick upstream r2142 and r2143 to fix failing regression tests on arm*, mips*, powerpc, s390*, and sparc -- Michael Tautschnig Tue, 12 Feb 2013 15:01:56 +0000 cbmc (4.3-3) unstable; urgency=low * Cherry-pick upstream r2134 and r2139 to fix failing regression tests on arm*, ia64, mips*, powerpc, s390*, and sparc -- Michael Tautschnig Mon, 11 Feb 2013 21:12:02 +0000 cbmc (4.3-2) unstable; urgency=low * Cherry-pick upstream r2111 to fix build failure on ia64 and s390x -- Michael Tautschnig Fri, 08 Feb 2013 15:46:35 +0000 cbmc (4.3-1) unstable; urgency=low * New upstream release (all code patches merged, only build system adaptions) -- Michael Tautschnig Fri, 08 Feb 2013 11:12:41 +0000 cbmc (4.2-6) unstable; urgency=low * s390x hack, will be fixed properly in next upstream release -- Michael Tautschnig Thu, 20 Sep 2012 16:14:23 +0100 cbmc (4.2-5) unstable; urgency=low * Fix preprocessing on architectures with unsigned char * Proper word size define for mips * Added regression test to check for missing builtins -- Michael Tautschnig Thu, 20 Sep 2012 10:27:43 +0100 cbmc (4.2-4) unstable; urgency=low * Fix missing includes on freebsd kernels, once more * Fix test suite for non-x86 architecture specifics -- Michael Tautschnig Wed, 19 Sep 2012 17:47:42 +0100 cbmc (4.2-3) unstable; urgency=low * Fix missing includes on freebsd kernels * Fixed test output helper -- Michael Tautschnig Wed, 19 Sep 2012 16:57:50 +0100 cbmc (4.2-2) unstable; urgency=low * Updated Standards version to 3.9.4 (no changes required) * Include upstream man page * Updated debian/copyright to final syntax * Fix missing includes on hurd and freebsd kernels * Print test output of failed tests -- Michael Tautschnig Wed, 19 Sep 2012 12:02:56 +0100 cbmc (4.2-1) unstable; urgency=low * New upstream release (includes GCC 4.7 fixes of previous NMUs) * Use DEB_CXXFLAGS_MAINT_APPEND to comply with dpkg-buildflags * Run test suite after build -- Michael Tautschnig Wed, 19 Sep 2012 10:29:19 +0100 cbmc (4.1-1.2) unstable; urgency=low * Non-maintainer upload. * Update fix-FTBFS-with-gcc-4.7.patch patch. Fix FTBFS with gcc 4.7 on kfreebsd and hurd. Thanks to Steven Chamberlain for the patch. (Closes: #673579) -- Salvatore Bonaccorso Sun, 20 May 2012 07:55:28 +0200 cbmc (4.1-1.1) unstable; urgency=low * Non-maintainer upload. * Add fix-FTBFS-with-gcc-4.7.patch patch. Fix FTBFS with gcc 4.7. Fix missing includes and add 'this->' where needed. Thanks to Cyril Brulebois for the patch. (Closes: #667131) -- Salvatore Bonaccorso Sun, 13 May 2012 14:25:21 +0200 cbmc (4.1-1) unstable; urgency=low * New upstream release (all code patches merged, only build system adaptions remain) * dh-compat bumped to 9 -- Michael Tautschnig Wed, 18 Jan 2012 18:37:41 +0000 cbmc (4.0-4) unstable; urgency=low * Rename patches and update description to make dpkg-source happy (closes: #643074) -- Michael Tautschnig Sat, 22 Oct 2011 00:51:01 +0100 cbmc (4.0-3) unstable; urgency=low * Make sure $(LIBS) occurs at end of linker command line to fix Ubuntu build failures -- Michael Tautschnig Sun, 10 Jul 2011 17:22:04 +0200 cbmc (4.0-2) unstable; urgency=low * Added missing freebsd kernel define * Enable parallel builds -- Michael Tautschnig Wed, 15 Jun 2011 10:40:38 +0200 cbmc (4.0-1) unstable; urgency=low * New upstream release (all patches merged) * Requires suitable minisat version * Working watch file -- Michael Tautschnig Tue, 14 Jun 2011 19:12:10 +0200 cbmc (3.9+r41-3) unstable; urgency=low * Fix another FTBFS for ambiguous overload, missing freebsd kernel define -- Michael Tautschnig Sat, 14 May 2011 16:11:44 +0200 cbmc (3.9+r41-2) unstable; urgency=low * Corrected build-depends to fix FTBFS * Added gcc as depends -- Michael Tautschnig Sat, 14 May 2011 14:57:05 +0200 cbmc (3.9+r41-1) unstable; urgency=low * Initial upload (closes: #626635) * Version 3.9 + all changes of SVN r41 -- Michael Tautschnig Fri, 13 May 2011 23:54:50 +0200 debian/compat0000644000000000000000000000000211705610640010364 0ustar 9 debian/rules0000755000000000000000000000261512233512552010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_CXXFLAGS_MAINT_APPEND := -Wall -O2 -g -Werror -Wno-long-long -Wno-sign-compare -Wno-parentheses -Wno-strict-aliasing -Wno-error=unused-result -pedantic %: dh $@ --parallel override_dh_auto_clean: dh_auto_clean $(MAKE) -C src clean $(RM) regression/*/tests.log $(RM) regression/*/*/*.out override_dh_auto_build: $(MAKE) -C src MINISAT2=/usr/include/minisat override_dh_auto_test: cd regression/ansi-c ; \ if ! ../test.pl -c ../../../src/goto-cc/goto-cc ; then \ ../../debian/failed-tests-printer.pl ; \ exit 1 ; \ fi cd regression/cpp ; \ if ! ../test.pl -c ../../../src/goto-cc/goto-cc ; then \ ../../debian/failed-tests-printer.pl ; \ exit 1 ; \ fi cd regression/cbmc ; \ if ! ../test.pl -c ../../../src/cbmc/cbmc ; then \ ../../debian/failed-tests-printer.pl ; \ exit 1 ; \ fi cd regression/cbmc-concurrency ; \ if ! ../test.pl -c ../../../src/cbmc/cbmc ; then \ ../../debian/failed-tests-printer.pl ; \ exit 1 ; \ fi debian/failed-tests-printer.pl0000755000000000000000000000075712026365705013612 0ustar #!/usr/bin/perl -w use strict; open LOG,") { chomp; if (/^Test '(.+)'/) { $current_test = $1; $ignore = 0; } elsif (1 == $ignore) { next; } elsif (/\[FAILED\]\s*$/) { $ignore = 1; print "Failed test: $current_test\n"; my $outf = `sed -n '2p' $current_test/test.desc`; $outf =~ s/\..*$/.out/; system("cat $current_test/$outf"); print "\n\n"; } } debian/dirs0000644000000000000000000000001111530644170010043 0ustar usr/bin/ debian/control0000644000000000000000000000116412233512572010575 0ustar Source: cbmc Section: science Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Michael Tautschnig Build-Depends: debhelper (>= 9), minisat (>= 1:2.2.1-2), zlib1g-dev, flex, bison Standards-Version: 3.9.4 Homepage: http://www.cprover.org/cbmc/ Package: cbmc Architecture: any Depends: gcc, ${shlibs:Depends}, ${misc:Depends} Description: bounded model checker for C and C++ programs CBMC generates traces that demonstrate how an assertion can be violated, or proves that the assertion cannot be violated within a given number of loop iterations. debian/manpages0000644000000000000000000000001712026323304010675 0ustar doc/man/cbmc.1 debian/watch0000644000000000000000000000025411575714431010230 0ustar # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # http://svn.cprover.org/svn/cbmc/releases/ cbmc-(.*)/ debian/patches/0000755000000000000000000000000012233531007010611 5ustar debian/patches/arm64-aarch640000644000000000000000000000174512233531007012722 0ustar Description: Use __aarch64__ on arm64, not __arm64__ or __arm__ Author: Adam Conrad Index: cbmc-4.5/src/util/config.cpp =================================================================== --- cbmc-4.5.orig/src/util/config.cpp 2013-10-28 12:49:27.000000000 -0600 +++ cbmc-4.5/src/util/config.cpp 2013-10-28 12:50:45.055824802 -0600 @@ -395,9 +395,14 @@ { case MODE_GCC_C: case MODE_GCC_CPP: - defines.push_back("__arm__"); - if(subarch=="armhf") - defines.push_back("__ARM_PCS_VFP"); + if(subarch=="arm64") + defines.push_back("__aarch64__"); + else + { + defines.push_back("__arm__"); + if(subarch=="armhf") + defines.push_back("__ARM_PCS_VFP"); + } break; case MODE_VISUAL_STUDIO_C_CPP: defines.push_back("_M_ARM"); @@ -1055,7 +1060,7 @@ this_arch="alpha"; #elif __armel__ this_arch="armel"; - #elif __arm64__ + #elif __aarch64__ this_arch="arm64"; #elif __arm__ #ifdef __ARM_PCS_VFP debian/patches/debian-changes-4.5-20000644000000000000000000000251612206507176014045 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . cbmc (4.5-2) unstable; urgency=low . * Fixed typo in powerpc sub-arch configuration causing FTBFS Author: Michael Tautschnig --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- cbmc-4.5.orig/src/util/config.cpp +++ cbmc-4.5/src/util/config.cpp @@ -331,7 +331,7 @@ Function: configt::ansi_ct::set_arch_spe void configt::ansi_ct::set_arch_spec_power(const irep_idt &subarch) { - if(subarch=="power") + if(subarch=="powerpc") set_ILP32(); else set_LP64(); debian/patches/minisat-debian0000644000000000000000000000326512167256712013443 0ustar Description: Use minisat from Debian package Author: Michael Tautschnig --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- cbmc-4.0.orig/src/cbmc/Makefile 2011-05-18 15:20:44.000000000 +0200 +++ cbmc-4.0/src/cbmc/Makefile 2011-06-14 19:33:36.000000000 +0200 @@ -21,7 +21,7 @@ INCLUDES= -I .. -LIBS = +LIBS = -lminisat include ../config.inc include ../common --- cbmc-4.4.orig/src/goto-instrument/Makefile +++ cbmc-4.4/src/goto-instrument/Makefile @@ -28,7 +28,7 @@ OBJ += ../ansi-c/ansi-c$(LIBEXT) \ INCLUDES= -I .. -LIBS = +LIBS = -lminisat CLEANFILES = goto-instrument$(EXEEXT) --- cbmc-4.0.orig/src/solvers/Makefile 2011-05-11 13:27:04.000000000 +0200 +++ cbmc-4.0/src/solvers/Makefile 2011-06-14 19:33:36.000000000 +0200 @@ -17,7 +17,7 @@ ifneq ($(MINISAT2),) MINISAT2_SRC=sat/satcheck_minisat2.cpp MINISAT2_INCLUDE=-I $(MINISAT2) - MINISAT2_LIB=$(MINISAT2)/simp/SimpSolver$(OBJEXT) $(MINISAT2)/core/Solver$(OBJEXT) + # MINISAT2_LIB=$(MINISAT2)/simp/SimpSolver$(OBJEXT) $(MINISAT2)/core/Solver$(OBJEXT) CP_CXXFLAGS += -DHAVE_MINISAT2 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS override CXXFLAGS := $(filter-out -pedantic, $(CXXFLAGS)) endif debian/patches/series0000644000000000000000000000006212233530667012037 0ustar minisat-debian debian-changes-4.5-2 arm64-aarch64