mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
36 lines
997 B
C++
36 lines
997 B
C++
/******************************************************************************
|
|
* Top contributors (to current version):
|
|
* Yoni Zohar, Aina Niemetz
|
|
*
|
|
* This file is part of the cvc5 project.
|
|
*
|
|
* Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
|
|
* in the top-level source directory and their institutional affiliations.
|
|
* All rights reserved. See the file COPYING in the top-level source
|
|
* directory for licensing information.
|
|
* ****************************************************************************
|
|
*
|
|
* Test for project issue #611
|
|
*
|
|
*/
|
|
#include <cvc5/cvc5.h>
|
|
|
|
using namespace cvc5;
|
|
int main(void)
|
|
{
|
|
TermManager tm;
|
|
Solver solver(tm);
|
|
solver.setOption("incremental", "false");
|
|
solver.setOption("solve-bv-as-int", "bitwise");
|
|
// should throw an exception due to the usage of an illegal value
|
|
// (0) for the option
|
|
try
|
|
{
|
|
solver.setOption("bvand-integer-granularity", "0");
|
|
}
|
|
catch (cvc5::CVC5ApiOptionException& e)
|
|
{
|
|
}
|
|
return 0;
|
|
}
|