Questions tagged [alt-ergo]

Alt-Ergo is an open source automatic theorem prover dedicated to program verification.

Alt-Ergo is an open source automatic theorem prover dedicated to program verification. See http://alt-ergo.lri.fr/ for more information. It is an SMT solver based on CC(X): a congruence closure algorithm parameterized by an equational theory X. Alt-Ergo is based on a home-made SAT-solver and implements an instantiation mechanism for quantified formulas.

21 questions
0
votes
0 answers

Testing whether a real is a whole number in alt-ergo

I want to test whether a real value is a whole number. There doesn't seem to be a floor function or similar, so I'm trying to use the real_of_int function from the tutorial as follows: function real_of_int(n:int):real = n **. 1 predicate…
Nick Battle
  • 638
  • 4
  • 6
0
votes
0 answers

What is the remainder (%) in Alt-Ergo?

Why does such a script in this online editor https://try-alt-ergo.ocamlpro.com/ give the result I don't know? `logic x, y: int goal g: (x = 10 and y = 4) -> (x % y = 2)` Should the result be Valid if % is the remainder of the integer division?
Jordan
  • 41
  • 1
  • 4
0
votes
0 answers

FRAMA-C/WP Goals not being proved

I am trying to prove a simplified version of an example from the WP manual but I keep getting an error for one of the ensures clauses. Here is my code: /*@ requires \valid(a) && \valid(b); @ ensures A: *a == \old(*b) ; @ ensures B: *b == \old(*a)…
sgjl
  • 27
  • 5
0
votes
1 answer

Timeout while proving the WP using Alt-ergo on Frama C

I was trying to verify the correctness of the below program using Frama-c.I am new user to frama-C. PROBLEM: Input basic salary of an employee and calculate its Gross salary according to following: Basic Salary <= 10000 : HRA = 20%, DA = 80% Basic…
Niresh
  • 67
  • 7
0
votes
2 answers

Frama-C acsl max example from manual not working

I believe I am missing something obvious, but I have tried a lot and I haven't managed to find the source of the problem. I am following the acsl guide from Frama-C. There is this introductory example of how to verify the correctness of finding the…
gdaras
  • 9,401
  • 2
  • 23
  • 39
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
2