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

Cannot generate HOL output #19

Open
xrchz opened this issue May 25, 2018 · 4 comments
Open

Cannot generate HOL output #19

xrchz opened this issue May 25, 2018 · 4 comments

Comments

@xrchz
Copy link
Contributor

xrchz commented May 25, 2018

Doing make hol-extraction under src produces the following error:

File "dwarf.lem", line 131, character 19 to line 131, character 31
  Type error: unbound variable for targets {hol}: print_endline
lem.mk:165: recipe for target 'hol-extraction' failed

This seems to be a debugging feature, so perhaps it could be excluded from the extraction to provers?
From the Lem library:

(* debugging functions; these should *not* be used in production code,
   but are invaluable in debugging the OCaml extraction, as long as
@PeterSewell
Copy link
Contributor

PeterSewell commented May 25, 2018 via email

@cp526
Copy link

cp526 commented May 25, 2018 via email

@xrchz
Copy link
Contributor Author

xrchz commented May 25, 2018

I appreciate the quick fix, but unfortunately there are then other things in dwarf.lem that break when attempting HOL output. For example #20.

@xrchz
Copy link
Contributor Author

xrchz commented May 25, 2018

Another example is as follows. This also looks debugging related, perhaps? There is a hex to string function in HOL, but not one that takes and uses a padding in the same way.

File "dwarf.lem", line 1334, character 22 to line 1334, character 49
  Type error: unbound variable for targets {hol}: unsafe_hex_string_of_natural
lem.mk:165: recipe for target 'hol-extraction' failed

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

3 participants