acoquereau / psmt2-frontend Goto Github PK
View Code? Open in Web Editor NEWA simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language
License: Apache License 2.0
A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language
License: Apache License 2.0
We should not be able to use type variable in the body (but we do) such as
(define-fun f (par (A) ((x A)) Bool) (exists ((y A)) (= x y)))
Use
(define-fun <fun name> (par (<type list>) (<typed var list>) <return type> <term> ))
instead of
(define-fun <fun name> (par (<type list>) (<typed var list>) <return type>) <term>)
I've been trying to create an AUR package for psmt2-frontend for Arch Linux. However, I've not been able to set DESTDIR
when invoking make install
.
Got:
[u@x1 psmt2-frontend-0.1]$ export DESTDIR=/home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend
[u@x1 psmt2-frontend-0.1]$ make install
OCAMLFIND_DESTDIR=/usr/lib/ \
ocamlfind install psmt2-frontend src/psmt2Frontend.* src/*.mli META
ocamlfind: Cannot mkdir /usr/lib/psmt2-frontend: Permission denied
make: *** [Makefile:121: install] Error 2
Expected:
[u@x1 psmt2-frontend-0.1]$ export DESTDIR=/home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/
[u@x1 psmt2-frontend-0.1]$ make install
OCAMLFIND_DESTDIR=/home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/ \
ocamlfind install psmt2-frontend src/psmt2Frontend.* src/*.mli META
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/version.mli
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/smtlib_parser.mli
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/options.mli
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.o
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmxs
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmxa
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmx
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmt
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmo
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cmi
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.cma
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/psmt2Frontend.a
Installed /home/u/Desktop/ocaml-psmt2-frontend/pkg/psmt2-frontend/lib/psmt2-frontend/META
Since psmt2-frontend is now a dep for alt-ergo, I'm packaging it for the Debian distribution.
The tools detected a typo:
--- psmt2-frontend.orig/src/lib/smtlib_typed_env.ml
+++ psmt2-frontend/src/lib/smtlib_typed_env.ml
@@ -327,7 +327,7 @@
let cstrs = SMap.find symb.c env.funs in
if (List.length cstrs > 1) then
error (Typing_error
- ("Constructor have mutliple signatures : " ^ symb.c)) symb.p;
+ ("Constructor have multiple signatures : " ^ symb.c)) symb.p;
(try (List.hd cstrs).params with _e ->
error (Typing_error ("Undefined Constructor : " ^ symb.c)) symb.p;)
with Not_found ->
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.