Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
1db7bc27
Commit
1db7bc27
authored
10 years ago
by
Viktor Kuncak
Browse files
Options
Downloads
Patches
Plain Diff
doc: gettingstarted improved. installation before tutorial
parent
a037dff0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/gettingstarted.rst
+56
-11
56 additions, 11 deletions
doc/gettingstarted.rst
doc/index.rst
+1
-1
1 addition, 1 deletion
doc/index.rst
with
57 additions
and
12 deletions
doc/gettingstarted.rst
+
56
−
11
View file @
1db7bc27
...
@@ -3,24 +3,56 @@
...
@@ -3,24 +3,56 @@
Getting Started
Getting Started
===============
===============
This section gives a very quick overview of how to build and start using Leon;
Web Interface
refer to the following :ref:`installation` if you wish (or need) more
-------------
detailed information on how to setup Leon on your system.
To build Leon, you will need, the following:
The simplest way to try out Leon is to use it through the
web interface http://leon.epfl.ch . The web interface uses
standard Javascript and should run in most browsers,
including Chrome and Firefox.
* a 1.7 Java Development Kit, from Oracle (to run sbt and scala)
The web interface requires you to enter your entire program
* sbt, at least version 0.13.X (to build Leon)
into the single web editor buffer. For example, you can
paste into the editor the definition of the following `max`
function on unbounded integers:
To build, type this
.. code-block:: scala
object Max {
def max(x: BigInt, y: BigInt): BigInt = {
if (x <= y) y
else x
} ensuring(res => x <= res && y <= res)
}
The above program should verify. If you change `y <= res`
into `y < res`, Leon should report a counterexample; try
clicking on the names of parameters `x` and `y` as well
as various parts in the `ensuring` clause.
You can also select from a number of predefined examples,
and then edit them subsequently. Selecting a different
sample program from the web interface will erase the
previously entered program.
The web interface fixes particular settings including the
timeout values for verification and synthesis tasks; for
longer task we currently recommend using a command line.
Command Line
------------
Leon can be used as a command line tool, which exposes most
of the functionality. To see the main options, use
.. code-block:: bash
.. code-block:: bash
$ sbt clean
./leon --help
$ sbt compile # takes about 3 minutes
$ sbt script
in your command line shell while in the top-level Leon directory.
Then you can try e.g
You can try some of the examples from the `testcases/` directory
distributed with Leon:
.. code-block:: bash
.. code-block:: bash
...
@@ -58,3 +90,16 @@ and get something like this
...
@@ -58,3 +90,16 @@ and get something like this
║ total: 21 valid: 17 invalid: 4 unknown 0 6.762 ║
║ total: 21 valid: 17 invalid: 4 unknown 0 6.762 ║
╚════════════════════════════════════════════════════════════════════════════════════════════╝
╚════════════════════════════════════════════════════════════════════════════════════════════╝
For more details on how to build Leon from sources that can
be used directly from the shell, see
:ref:`installation`.
Asking Questions
----------------
We are active on http://stackoverflow.com .
`Try searching for the leon tag. <http://stackoverflow.com/questions/tagged/leon?sort=newest>`_
This diff is collapsed.
Click to expand it.
doc/index.rst
+
1
−
1
View file @
1db7bc27
...
@@ -13,8 +13,8 @@ Contents:
...
@@ -13,8 +13,8 @@ Contents:
intro
intro
gettingstarted
gettingstarted
tutorial
installation
installation
tutorial
purescala
purescala
library
library
xlang
xlang
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment