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

How to use the REPL mode of sail? #742

Open
wanghuibin0 opened this issue Oct 17, 2024 · 3 comments
Open

How to use the REPL mode of sail? #742

wanghuibin0 opened this issue Oct 17, 2024 · 3 comments

Comments

@wanghuibin0
Copy link

I found that Sail has a REPL mode, which provides users with an interactive command line.
However, I didn't understand how to use this REPL, even after checking the output of the :help command.
Is there a complete example to illustrate how to use this REPL? Additionally, what is the design purpose of this REPL?

@trdthg
Copy link
Contributor

trdthg commented Oct 25, 2024

Does sail have a REPL mode? (just curious)

@Alasdair
Copy link
Collaborator

Yes, sail -i opens an interactive interpreter. It's not super useful because you can't load files at runtime, so you have to start it as sail -i <files> as if you were building the model, and it also checks all the files beforehand so the startup time is quite slow.

I would like to change it so it can type-check the provided files lazily as expressions are executed which would reduce the startup time.

@rmn30
Copy link
Contributor

rmn30 commented Oct 28, 2024

I've found it useful for stepping through property counterexamples returned by the SMT backend.

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

4 participants