File: conditional-cvc5

package info (click to toggle)
cbmc 6.6.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 153,852 kB
  • sloc: cpp: 386,459; ansic: 114,466; java: 28,405; python: 6,003; yacc: 4,552; makefile: 4,041; lex: 2,487; xml: 2,388; sh: 2,050; perl: 557; pascal: 184; javascript: 163; ada: 36
file content (54 lines) | stat: -rw-r--r-- 2,068 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Description: Do not unconditionally invoke cvc5
 CVC5 is not available on all architectures.
 .
 cbmc (5.95.1-1) unstable; urgency=low
 .
   * New upstream release
Author: Michael Tautschnig <mt@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-02-16

--- cbmc-5.95.1.orig/regression/cbmc-incr-smt2/Makefile
+++ cbmc-5.95.1/regression/cbmc-incr-smt2/Makefile
@@ -9,7 +9,9 @@ test.z3:
 	@../test.pl -e -p -c "../../../src/cbmc/cbmc --incremental-smt2-solver 'z3 --smt2 -in' --validate-goto-model --validate-ssa-equation"
 
 test.cvc5:
-	@../test.pl -e -p -c "../../../src/cbmc/cbmc --incremental-smt2-solver 'cvc5 --lang=smtlib2.6 --incremental' --validate-goto-model --validate-ssa-equation"
+	@if which cvc5 ; then \
+	  ../test.pl -e -p -c "../../../src/cbmc/cbmc --incremental-smt2-solver 'cvc5 --lang=smtlib2.6 --incremental' --validate-goto-model --validate-ssa-equation" ; \
+	fi
 
 tests.log: ../test.pl test
 
--- cbmc-5.95.1.orig/regression/cbmc-output-file/Makefile
+++ cbmc-5.95.1/regression/cbmc-output-file/Makefile
@@ -4,10 +4,14 @@ include ../../src/config.inc
 include ../../src/common
 
 test:
-	@../test.pl -f -e -p -c '../chain.py ../../../src/cbmc/cbmc'
+	@if which cvc5 ; then \
+	  ../test.pl -f -e -p -c '../chain.py ../../../src/cbmc/cbmc' ; \
+	fi
 
 tests.log:
-	@../test.pl -f -e -p -c '../chain.py ../../../src/cbmc/cbmc'
+	@if which cvc5 ; then \
+	  ../test.pl -f -e -p -c '../chain.py ../../../src/cbmc/cbmc' ; \
+	fi
 
 clean:
 	$(RM) tests.log