Skip to content

Unexpected crash #416

Open
Open

Description

@vbgl

The following program makes easycrypt crash.

Current main version (hash add9232): anomaly: File "src/ecUtils.ml", line 233, characters 24-30: Assertion failed
Latest release (2022.04): anomaly: File "src/ecUtils.ml", line 226, characters 24-30: Assertion failed

require import AllCore.

type t.
op d : t distr.

module M = {
  proc f() = {
    var k;
    k <$ d;
  }
}.

lemma correct_scheme &q : Pr[ M.f() @ &q : true ] = 1%r.
proof.
  byphoare.
  proc.
  auto => />.
abort.

Activity

  1. strub commented on Jul 12, 2023

    @strub
    Member

    Note: require Distr solves the issue.

  2. oskgo commented on Jun 20, 2024

    @oskgo
    Contributor

    Managed to trigger the same assertion:

    require FinType.
    
    op m (f: 'a -> 'b): 'b.
    
    theory T.
    clone FinType.FinType as FT.
    
    type wrapper = [wrap of FT.t].
    
    op foo: wrapper = m wrap.
    
    end T.
    clone T as T1.
    
    clone T as T2 with
    theory FT <- T1.FT,
    type wrapper = T1.wrapper,
    op foo <= T1.foo.
    

    The fun part is that op m (f: 'a -> 'b): 'b = witness. makes it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions