Skip to content
Snippets Groups Projects
Commit daf1fbac authored by Julien Signoles's avatar Julien Signoles
Browse files

fix bug #1692 about wrong localisation of messages emitted when typing

parent 73c5b20e
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
# E-ACSL: the Whole E-ACSL plug-in # E-ACSL: the Whole E-ACSL plug-in
############################################################################### ###############################################################################
-* E-ACSL [2014/03/26] Fix bug #1692 about wrong localisation of
some messages.
- E-ACSL [2014/03/26] Remove a spurious warning when an annotated - E-ACSL [2014/03/26] Remove a spurious warning when an annotated
function is first declared, then defined. function is first declared, then defined.
-* E-ACSL [2014/03/25] Fix bug #1716 with annotations in while(1). -* E-ACSL [2014/03/25] Fix bug #1716 with annotations in while(1).
......
...@@ -164,6 +164,7 @@ module Term_env = Make_env(Term)(struct type t = eacsl_typ * eacsl_typ end) ...@@ -164,6 +164,7 @@ module Term_env = Make_env(Term)(struct type t = eacsl_typ * eacsl_typ end)
module Logic_var_env = Make_env(Logic_var)(struct type t = eacsl_typ end) module Logic_var_env = Make_env(Logic_var)(struct type t = eacsl_typ end)
let generic_typ (which: < f: 'a. 'a * 'a -> 'a >) t = let generic_typ (which: < f: 'a. 'a * 'a -> 'a >) t =
Cil.CurrentLoc.set t.term_loc;
if Options.Gmp_only.get () then if Options.Gmp_only.get () then
let ty = match t.term_type with let ty = match t.term_type with
| Linteger -> Mpz.t () | Linteger -> Mpz.t ()
...@@ -241,6 +242,7 @@ let type_of_indexed_host = function ...@@ -241,6 +242,7 @@ let type_of_indexed_host = function
| _ -> assert false | _ -> assert false
let rec type_term t = let rec type_term t =
Cil.CurrentLoc.set t.term_loc;
let lty = t.term_type in let lty = t.term_type in
let get_cty t = match t.term_type with Ctype ty -> ty | _ -> assert false in let get_cty t = match t.term_type with Ctype ty -> ty | _ -> assert false in
let dup f x = let y = f x in y, y in let dup f x = let y = f x in y, y in
...@@ -440,7 +442,9 @@ let compute_quantif_guards_ref ...@@ -440,7 +442,9 @@ let compute_quantif_guards_ref
(term * relation * logic_var * relation * term) list) ref (term * relation * logic_var * relation * term) list) ref
= Extlib.mk_fun "compute_quantif_guards_ref" = Extlib.mk_fun "compute_quantif_guards_ref"
let rec type_predicate_named p = match p.content with let rec type_predicate_named p =
Cil.CurrentLoc.set p.loc;
match p.content with
| Pfalse | Ptrue -> () | Pfalse | Ptrue -> ()
| Papp _ -> Error.not_yet "logic function application" | Papp _ -> Error.not_yet "logic function application"
| Pseparated _ -> Error.not_yet "\\separated" | Pseparated _ -> Error.not_yet "\\separated"
......
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