File: helloworld.rst

package info (click to toggle)
cvc5 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 87,260 kB
  • sloc: cpp: 383,850; java: 12,207; python: 12,090; sh: 5,679; ansic: 4,729; lisp: 763; perl: 208; makefile: 38
file content (14 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Hello World
===========

This example shows the very basic usage of the API.
We create a solver, declare a Boolean variable and check whether it is entailed
(by ``true``, as nothing has been asserted to the solver).

.. api-examples::
    <examples>/api/cpp/helloworld.cpp
    <examples>/api/c/helloworld.c
    <examples>/api/java/HelloWorld.java
    <examples>/api/python/pythonic/helloworld.py
    <examples>/api/python/helloworld.py
    <examples>/api/smtlib/helloworld.smt2