alt-ergo icon indicating copy to clipboard operation
alt-ergo copied to clipboard

Infinite loop with recursive list

Open Stevendeo opened this issue 1 year ago • 2 comments

Alt-ergo seems to enter an infinite loop on the following example:

type 'a t = Cons of {elt : 'a; tail : 'a t} | Nil

function length (list : 'a t) : int =
  match list with
  | Nil -> 0
  | Cons(_, l') -> length(l') + 1
end

logic l : int t

goal g: length(l) <= 4

Stevendeo avatar Oct 28 '22 14:10 Stevendeo