Questions tagged [cvc4]

CVC4 is an efficient open-source automatic theorem prover for satisfiability modulo theories (SMT) problems.

CVC4 is an efficient open-source automatic theorem prover for satisfiability modulo theories (SMT) problems. It can be used to prove the validity (or, dually, the satisfiability) of first-order formulas in a large number of built-in logical theories and their combination.

75 questions
0
votes
1 answer

CVC4 cannot open file in SMT2 format

I am trying to use CVC4 to perform syntax-guided synthesis on a function. To begin, I am following CVC4 Getting Started and my example.smt2 file looks like this: (set-logic ALL) (declare-fun x () Int) (assert (= (+ x x) (* x 2))) (check-sat) When I…
0xTomato
  • 108
  • 10
0
votes
0 answers

frama-c wp plugin syntax error when using CVC4 prover

With a sample find.c file, I can prove it with no problem using default alt-ergo. But when change to cvc4 then getting warning messages and syntax error. Here the code: /*@ requires 0 <= n && \valid(a+(0..n-1)); assigns \nothing; ensures …
ratt
  • 115
  • 5
0
votes
1 answer

cvc4 error with LANG_AUTO and antlr

I've built cvc4 from source according to their manual here. I ran make check which went perfect, then sudo make install. Then, I've tried running a simple example that works with z3: (declare-const i Int) (declare-const j Int) (assert (= i…
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87
0
votes
1 answer

cvc4 mkconst from std::string in C++ api

I need to change "123" into a const in c++ what I coded as ExprManager em; Rational i = Rational("123",10); Expr expri = em.mkConst(i); or Integer i = Integer("123", 10); Expr epri = em.mkConst(Rational(i,1)); but I got some error Undefined…
zwen
  • 1
  • 1
0
votes
1 answer

Logarithm/Exponential of real numbers in cvc4

I am looking for a solver that can provide models of formulas on real numbers involving logarithms or exponentials. Can cvc4 handle functions which contain logarithms or exponentials of real numbers? Similarly, can cvc4 express the constant…
Peter
  • 401
  • 1
  • 5
  • 17
0
votes
1 answer

Is there an option to enable overloading of user-defined symbols in cvc4 for SMT input?

In versions through 1.2 of the SMT-LIB language, overloading of user-defined symbols was allowed. Since version 2.0 of standard, overloading is restricted to theory symbol. Nevertheless, some SMT-solvers still allow overloading of user-defined…
dde
  • 150
  • 6
0
votes
1 answer

assertions on inductive data types in CVC4

I am trying experiment with CVC4 a bit. (set-option :produce-models true) (set-option :produce-assignments true) (set-logic QF_UFDT) (declare-datatypes () (Color (Red) (Black)) ) (declare-const x C) (declare-const y C) (assert (not (= x…
ankitrokdeonsns
  • 638
  • 4
  • 18
0
votes
1 answer

'Unknown logical symbol map.Map.const' message in Why3

I'm experimenting with why3 by following their tutorial, but I get the message Unknown logical symbol map.Map.const for multiple provers. Here are the contents of the theory I'm trying to prove: theory List type list 'a = Nil | Cons 'a (list 'a) …
Ben Hocking
  • 7,790
  • 5
  • 37
  • 52
0
votes
1 answer

How to rotate a bitvector in cvc4 using c++ API

I try to rotate a bitvector in cvc4 using the C++ API, but the API is a little bit confusing when it comes to operator expressions. Using the following code (extract): #include #include using namespace std; using namespace…
John Smith
  • 771
  • 8
  • 25
0
votes
1 answer

Can't compile code with CVC4 C++ API

I am just trying to compile this file helloworld.cpp #include #include using namespace CVC4; int main() { ExprManager em; Expr helloworld = em.mkVar("Hello World!", em.booleanType()); SmtEngine…
rnbguy
  • 1,369
  • 1
  • 10
  • 28
0
votes
1 answer

CVC4 minimize/maximize model optimization

Does CVC4 an option to maximize or minimize the result model for bitvectors as Z3 does? Thanks.
user1618465
  • 1,813
  • 2
  • 32
  • 58
0
votes
1 answer

For handling recursive function definition in CVC4 need to enable finite model finding mode for recursive functions

I have found the following information in paper by Andrew Reynolds and co -authors "Model Finding for Recursive Functions in SMT" "If CVC4’s finite model finding mode for recursive functions is enabled (using the command-line option --fmf-fun)" But…
Tom
  • 904
  • 1
  • 7
  • 21
0
votes
1 answer

CVC4 Expecting at most 3 arguments for operator 'ITE', found 5

When inputting the following file to cvc4, I get the following error: (error "Parse Error: :11.221: Expecting at most 3 arguments for operator 'ITE', found 5") The file test.txt was: (declare-fun start!1 () Bool) (assert…
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101
0
votes
1 answer

How to run the following SMT-LIB code using Alt-Ergo

The following SMT-LIB code runs without problems in Z3, MathSat and CVC4 but it is not running in Alt-Ergo, please let me know what happens, many thanks: (set-logic QF_LIA) (set-option :interactive-mode true) (set-option :incremental…
Juan Ospina
  • 1,317
  • 1
  • 7
  • 15
-1
votes
1 answer

E: Unable to locate package cvc5

I'm new to SMT solvers software and would like to ask for some help installing it. On Ubuntu for Windows, it throws 'Unable to locate package cvc5' error. What could be done to solve this? /home$ sudo apt install cvc5 Reading package lists...…
Fusen
  • 311
  • 2
  • 3
  • 10
1 2 3 4
5