Skip to content
Snippets Groups Projects
Commit 31b33fa2 authored by Jan Rochel's avatar Jan Rochel
Browse files

[e-acsl] add pathological case for negative integer handling

The -rte flag causes the generation of a negative integer in a rational
context. In that case Translate_terms.constant_to_exp converts the
integer to a real string representation by converting the integer to a
string and then normalising that string using Gmp.Q.normalize_str.

However Gmp.Q.normalize_str does not correctly handle negative integers.

Note that negative integers do not occur when writing for instance -1 in
the source file as it is parsed as TUnOp(Neg, _).
parent d2ab5475
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment