Skip to content

Prover fails to complete #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sschaub opened this issue Nov 5, 2015 · 3 comments
Open

Prover fails to complete #205

sschaub opened this issue Nov 5, 2015 · 3 comments

Comments

@sschaub
Copy link

sschaub commented Nov 5, 2015

Another example where the prover fails to complete:

Facility PushDemo;
    uses String_Theory;
    Facility Integer_Stack_Fac is Stack_Template(Integer, 5)
            realized by Array_Realiz;

    Operation MyPush(preserves I: Integer; updates S: Stack);
      ensures (|#S| < 5 and S = <#I> o #S) or |#S| = 5 and S = #S;
    Procedure
      Var J: Integer;
      J := I;
      If Depth(S) + 1 <= 5 then
        Push(J, S);
      end;
    end;

  Operation Main(); 
  Procedure 


  end Main;

end;
@mikekab
Copy link
Contributor

mikekab commented Nov 5, 2015

Hi,

I ran this example before applying this morning's update. No problems.
Applied the update:
Error:(VCGenerator) Ty is ambiguous: NameTy
Integer
If you run it locally, you will see the compiler is exiting the process.
Mike

On Thu, Nov 5, 2015 at 1:50 PM, sschaub [email protected] wrote:

Another example where the prover fails to complete:

Facility PushDemo;
uses String_Theory;
Facility Integer_Stack_Fac is Stack_Template(Integer, 5)
realized by Array_Realiz;

Operation MyPush(preserves I: Integer; updates S: Stack);
  ensures (|#S| < 5 and S = <#I> o #S) or |#S| = 5 and S = #S;
Procedure
  Var J: Integer;
  J := I;
  If Depth(S) + 1 <= 5 then
    Push(J, S);
  end;
end;

Operation Main();
Procedure

end Main;

end;


Reply to this email directly or view it on GitHub
#205.

@yushan87 yushan87 added this to the Fall 2015 milestone Nov 6, 2015
@yushan87 yushan87 self-assigned this Nov 6, 2015
@yushan87
Copy link
Member

yushan87 commented Nov 6, 2015

So the general problem is there is a crash somewhere in the VC Generator, but the compiler is choosing to ignore that exception and reporting "done" to the WebIDE. The WebIDE is then confused about why the VCs field is blank...

@yushan87
Copy link
Member

yushan87 commented Nov 6, 2015

Pull Request #206 allows the files in issue #204 and in this one to compile. However, the general crash error is still pending. Therefore, this issue shall remain open...

@yushan87 yushan87 modified the milestones: Fall 2015, Spring 2016 Jan 15, 2016
@yushan87 yushan87 modified the milestones: Spring 2016, Summer 2016 May 6, 2016
@yushan87 yushan87 modified the milestones: Fall 2016, Summer 2016 Jul 29, 2016
@yushan87 yushan87 modified the milestones: Fall 2016, Spring 2017 Feb 24, 2017
@yushan87 yushan87 modified the milestones: Spring 2017, Summer 2017 May 16, 2017
@yushan87 yushan87 modified the milestones: Summer 2017, Fall 2017 Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants