Skip to content
Snippets Groups Projects
Commit cff64531 authored by THIRIOUX Xavier's avatar THIRIOUX Xavier
Browse files

bug in CSE, was disregarding clock

parent bd1bb668
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ let mk_fresh_var node loc ty ck =
(* Get the equation in [defs] with [expr] as rhs, if any *)
let get_expr_alias defs expr =
try Some (List.find (fun eq -> is_eq_expr eq.eq_rhs expr) defs)
try Some (List.find (fun eq -> Clocks.eq_clock eq.eq_rhs.expr_clock expr.expr_clock && is_eq_expr eq.eq_rhs expr) defs)
with
| Not_found -> None
......
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