Skip to content

An Emacs major mode to edit and run SMTLIB v2 files

License

Notifications You must be signed in to change notification settings

ModelWriter/smtlib-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

smtlib-mode

An Emacs major mode to edit and run SMTLIB v2 files

This mode is based on lisp-mode and provides highlighting of SMTLIB v2 commands, as well as the command run-solver (bound to C-c C-c) to run an SMT solver on the buffer or the region.

Add the following lines to your .emacs

(setq auto-mode-alist (cons '("\\.smt2$" . smtlib-mode) auto-mode-alist))
(autoload 'smtlib-mode "smtlib" "Major mode for SMTLIB" t)

The command to run the SMT solver is by default "cvc4 --lang smt2", modify and add the following line to your .emacs to change.

(setq smtlib-solver-cmd "cvc4 --lang smt2")

About

An Emacs major mode to edit and run SMTLIB v2 files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%