Skip to content
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

exit(ATS): /home/brand_000/ATS-Postiats/src/pats_trans2_staexp.dats: 65342(line=2598, offs=9) -- 65370(line=2598, offs=37): match failure. #79

Closed
bbarker opened this issue May 17, 2014 · 1 comment

Comments

@bbarker
Copy link
Contributor

bbarker commented May 17, 2014

Wasn't sure if this was a bug or a basically satisfactory and intentional error message (either way it probably doesn't matter); think my code should have TESTPROP not TESTPROP().

(* ****** ****** *)
//
#include
"share/atspre_define.hats"
#include
"share/atspre_staload.hats"
//
(* ****** ****** *)

%{^
  int do_adding() {
  volatile unsigned int i = 1;
  while(i >= 0) {
    i = i + 1;
  }
  return -1;
  }
%}


extern
fun do_adding():int = "mac#"


// Now with proofs:

dataprop TESTPROP() =
  | TEST of ()

extern
fun do_adding_usepf(pf: TESTPROP):int = "mac#"

implement main0() = let

// val x = do_adding() and y = do_adding()
// same cpu usage as:
// val x = do_adding()

//prval a
//val x = do_adding1()


in
println!(x)
end
@githwxi
Copy link
Owner

githwxi commented May 17, 2014

Yes, it is a bug. See doc/BUGS/bug-2014-05-17.dats. It is fixed and the changes have been uploaded.
Thanks!

@githwxi githwxi closed this as completed May 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants