3 ms·
Aw. It's been a very long time, but I used the original Oppen-Nelson simplifier, the ancestor of all SMT solvers.[1] We used it inside the Pascal-F verifier, ar
by Animats 8y ago
Aw. It's been a very long time, but I used the original Oppen-Nelson simplifier, the ancestor of all SMT solvers.[1] We used it inside the Pascal-F verifier, around 1981.
Two years ago I found the sources for that in my garage and put them on Github.[2] The section "CPC4" is the modified (by Derek Oppen) Oppen-Nelson simplifier. This was originally in Franz LISP, and I converted them to Common LISP in 2017. It's not fully debugged, but it will run the basic solvers - add, subtract, multiply by constant, equality, inequality, theory of arrays, theory of structures, booleans, conditionals. That theory is completely decidable, and it covers most of the problems that cause range and subscript errors.
[1] https://www.cs.tau.ac.il/~msagiv/courses/ATP/p245-nelson.pdf https://www.cs.tau.ac.il/~msagiv/courses/ATP/p245-nelson.pdf
[2] https://github.com/John-Nagle/pasv https://github.com/John-Nagle/pasv