Skip to content

Not correct parameterizing of Seq[Bool] #300

@viper-admin

Description

@viper-admin

Created by bitbucket user pgruntz on 2017-08-09 08:56
Last updated on 2019-03-02 22:10

assertion on line 3 might not hold

#!viper
method numberOfUsers_termination_proof(seq: Seq[Bool]) //Seq[Int] working
{
  assert seqFunc(seq)
}

domain SeqTerminationOrder[S] {

  //function seqFunc(s: S) : Bool //function defined here works
  
  axiom seq_ax_bound {
    forall seq1: Seq[S] :: seqFunc(seq1)
    //forall seq1: Seq[Bool] :: seqFunc(seq1) //works
  }
}

domain SeqFunc[A]{
  function seqFunc(s: A) : Bool
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions