Skip to content

Commit 83ec7c8

Browse files
committed
Merge branch 'master' into stable
2 parents 6857df8 + d6f19e5 commit 83ec7c8

File tree

134 files changed

+9950
-7549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+9950
-7549
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,17 @@ QTEST_PREAMBLE='open Nunchaku_core;; '
5353
watch:
5454
while find src/ -print0 | xargs -0 inotifywait -e delete_self -e modify ; do \
5555
echo "============ at `date` ==========" ; \
56-
make ; \
56+
make all ; \
5757
done
58+
59+
ocp-indent:
60+
@which ocp-indent > /dev/null || { \
61+
echo 'ocp-indent not found; please run `opam install ocp-indent`'; \
62+
exit 1 ; \
63+
}
64+
65+
reindent: ocp-indent
66+
@find src '(' -name '*.ml' -or -name '*.mli' ')' -print0 | xargs -0 echo "reindenting: "
67+
@find src '(' -name '*.ml' -or -name '*.mli' ')' -print0 | xargs -0 ocp-indent -i
68+
69+
.PHONY: reindent ocp-indent watch

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ There is a dedicated mailing list at [email protected]
1919
The https://github.com/nunchaku-inria/nunchaku/issues[issue tracker] can be
2020
used for reporting bugs.
2121

22+
== Documentation
23+
24+
the API documentation can be found at https://nunchaku-inria.github.io/nunchaku/.
2225
== Build
2326

2427
To build Nunchaku, there are several ways.
2528

26-
== Documentation
27-
28-
the API documentation can be found at https://nunchaku-inria.github.io/nunchaku/.
2929

3030
=== Released versions
3131

_oasis

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OASISFormat: 0.4
22
Name: nunchaku
3-
Version: 0.3.1
3+
Version: 0.4
44
Homepage: https://github.com/nunchaku/nunchaku
55
Authors: Simon Cruanes, Jasmin Blanchette
66
License: BSD-2-clause
@@ -27,11 +27,11 @@ Library nunchaku_core
2727
UntypedAST, Model, TypeUnify, Problem, FO, Reduce,
2828
Env, Statement, FO_tptp, FO_rel, Cardinality,
2929
Scheduling, Polarity, Traversal, ProblemMetadata,
30-
AnalyzeType, Prelude, TypeCheck, Lazy_list,
31-
Sexp_lib, Sexp_lex,
30+
AnalyzeType, Prelude, TypeCheck, Lazy_list, Bit_set,
31+
Sexp_lib, Sexp_lex, Precedence, Binder, Builtin,
32+
Cardinal_encode,
3233
terms/TermInner,
3334
terms/TermTyped,
34-
terms/TermMono,
3535
terms/Pattern,
3636
types/TypePoly,
3737
types/TypeMono
@@ -75,6 +75,7 @@ Library nunchaku_transformations
7575
ElimRecursion,
7676
ElimMultipleEqns,
7777
ElimIndPreds,
78+
ElimQuantifiers,
7879
ElimCopy,
7980
Polarize,
8081
Unroll,
@@ -85,6 +86,9 @@ Library nunchaku_transformations
8586
Elim_prop_args,
8687
Elim_ite,
8788
Elim_infinite,
89+
Trans_ho_fo,
90+
Trans_fo_tptp,
91+
Lift_undefined,
8892
FoToRelational
8993
Install: true
9094
FindlibName: transformations

_tags

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 0b0218c6de70ee6a72e00f7814fcc531)
2+
# DO NOT EDIT (digest: 898f771f499cb533fcbf69bd9f225472)
33
# Ignore VCS directories, you can use the same kind of rule outside
44
# OASIS_START/STOP if you want to exclude directories that contains
55
# useless stuff for the build process
@@ -42,11 +42,15 @@ true: annot, bin_annot
4242
"src/core/Prelude.cmx": for-pack(Nunchaku_core)
4343
"src/core/TypeCheck.cmx": for-pack(Nunchaku_core)
4444
"src/core/Lazy_list.cmx": for-pack(Nunchaku_core)
45+
"src/core/Bit_set.cmx": for-pack(Nunchaku_core)
4546
"src/core/Sexp_lib.cmx": for-pack(Nunchaku_core)
4647
"src/core/Sexp_lex.cmx": for-pack(Nunchaku_core)
48+
"src/core/Precedence.cmx": for-pack(Nunchaku_core)
49+
"src/core/Binder.cmx": for-pack(Nunchaku_core)
50+
"src/core/Builtin.cmx": for-pack(Nunchaku_core)
51+
"src/core/Cardinal_encode.cmx": for-pack(Nunchaku_core)
4752
"src/core/terms/TermInner.cmx": for-pack(Nunchaku_core)
4853
"src/core/terms/TermTyped.cmx": for-pack(Nunchaku_core)
49-
"src/core/terms/TermMono.cmx": for-pack(Nunchaku_core)
5054
"src/core/terms/Pattern.cmx": for-pack(Nunchaku_core)
5155
"src/core/types/TypePoly.cmx": for-pack(Nunchaku_core)
5256
"src/core/types/TypeMono.cmx": for-pack(Nunchaku_core)
@@ -120,6 +124,7 @@ true: annot, bin_annot
120124
"src/transformations/ElimRecursion.cmx": for-pack(Nunchaku_transformations)
121125
"src/transformations/ElimMultipleEqns.cmx": for-pack(Nunchaku_transformations)
122126
"src/transformations/ElimIndPreds.cmx": for-pack(Nunchaku_transformations)
127+
"src/transformations/ElimQuantifiers.cmx": for-pack(Nunchaku_transformations)
123128
"src/transformations/ElimCopy.cmx": for-pack(Nunchaku_transformations)
124129
"src/transformations/Polarize.cmx": for-pack(Nunchaku_transformations)
125130
"src/transformations/Unroll.cmx": for-pack(Nunchaku_transformations)
@@ -130,6 +135,9 @@ true: annot, bin_annot
130135
"src/transformations/Elim_prop_args.cmx": for-pack(Nunchaku_transformations)
131136
"src/transformations/Elim_ite.cmx": for-pack(Nunchaku_transformations)
132137
"src/transformations/Elim_infinite.cmx": for-pack(Nunchaku_transformations)
138+
"src/transformations/Trans_ho_fo.cmx": for-pack(Nunchaku_transformations)
139+
"src/transformations/Trans_fo_tptp.cmx": for-pack(Nunchaku_transformations)
140+
"src/transformations/Lift_undefined.cmx": for-pack(Nunchaku_transformations)
133141
"src/transformations/FoToRelational.cmx": for-pack(Nunchaku_transformations)
134142
<src/transformations/*.ml{,i,y}>: package(containers)
135143
<src/transformations/*.ml{,i,y}>: package(containers.data)

myocamlbuild.ml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* OASIS_START *)
2-
(* DO NOT EDIT (digest: 7bbb25e2ce501951df8bcc5d11944431) *)
2+
(* DO NOT EDIT (digest: 7683553a3de792be536febb657ebf851) *)
33
module OASISGettext = struct
44
(* # 22 "src/oasis/OASISGettext.ml" *)
55

@@ -746,6 +746,9 @@ module MyOCamlbuildBase = struct
746746
(* # 110 "src/plugins/ocamlbuild/MyOCamlbuildBase.ml" *)
747747

748748

749+
let env_filename = Pathname.basename BaseEnvLight.default_filename
750+
751+
749752
let dispatch_combine lst =
750753
fun e ->
751754
List.iter
@@ -878,7 +881,7 @@ module MyOCamlbuildBase = struct
878881
end
879882

880883

881-
# 881 "myocamlbuild.ml"
884+
# 884 "myocamlbuild.ml"
882885
open Ocamlbuild_plugin;;
883886
let package_default =
884887
{
@@ -931,7 +934,7 @@ let conf = {MyOCamlbuildFindlib.no_automatic_syntax = false}
931934

932935
let dispatch_default = MyOCamlbuildBase.dispatch_default conf package_default;;
933936

934-
# 935 "myocamlbuild.ml"
937+
# 938 "myocamlbuild.ml"
935938
(* OASIS_STOP *)
936939

937940
open Ocamlbuild_plugin;;

nunchaku.odocl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: f90600f3a098e836f5ece36e8d5f85d5)
2+
# DO NOT EDIT (digest: 683de1371c8e3d66b66604d410c7f651)
33
src/core/ID
44
src/core/Var
55
src/core/MetaVar
@@ -26,11 +26,15 @@ src/core/AnalyzeType
2626
src/core/Prelude
2727
src/core/TypeCheck
2828
src/core/Lazy_list
29+
src/core/Bit_set
2930
src/core/Sexp_lib
3031
src/core/Sexp_lex
32+
src/core/Precedence
33+
src/core/Binder
34+
src/core/Builtin
35+
src/core/Cardinal_encode
3136
src/core/terms/TermInner
3237
src/core/terms/TermTyped
33-
src/core/terms/TermMono
3438
src/core/terms/Pattern
3539
src/core/types/TypePoly
3640
src/core/types/TypeMono
@@ -61,6 +65,7 @@ src/transformations/Elim_HOF
6165
src/transformations/ElimRecursion
6266
src/transformations/ElimMultipleEqns
6367
src/transformations/ElimIndPreds
68+
src/transformations/ElimQuantifiers
6469
src/transformations/ElimCopy
6570
src/transformations/Polarize
6671
src/transformations/Unroll
@@ -71,5 +76,8 @@ src/transformations/ElimTypes
7176
src/transformations/Elim_prop_args
7277
src/transformations/Elim_ite
7378
src/transformations/Elim_infinite
79+
src/transformations/Trans_ho_fo
80+
src/transformations/Trans_fo_tptp
81+
src/transformations/Lift_undefined
7482
src/transformations/FoToRelational
7583
# OASIS_STOP

opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "1.2"
22
name: "nunchaku"
3-
version: "0.3.1"
3+
version: "0.4"
44
authors: ["Simon Cruanes" "Jasmin Blanchette"]
55
maintainer: "[email protected]"
66
build: [
@@ -24,7 +24,7 @@ remove: [
2424
]
2525
depends: [
2626
"ocamlfind" {build}
27-
"containers" { >= "0.16" < "1.0" }
27+
"containers" { >= "1.0" }
2828
"menhir" {build}
2929
"sequence"
3030
"base-unix"

setup.ml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
(* setup.ml generated for the first time by OASIS v0.4.5 *)
22

33
(* OASIS_START *)
4-
(* DO NOT EDIT (digest: 3ee647490707707159b917290258991c) *)
4+
(* DO NOT EDIT (digest: a90055f6f245ece1eda163e6a57a57c5) *)
55
(*
6-
Regenerated by OASIS v0.4.7
6+
Regenerated by OASIS v0.4.8
77
Visit http://oasis.forge.ocamlcore.org for more information and
88
documentation about functions used in this file.
99
*)
@@ -658,6 +658,7 @@ module OASISContext = struct
658658
ignore_unknown_fields: bool;
659659
printf: level -> string -> unit;
660660
srcfs: source OASISFileSystem.fs;
661+
load_oasis_plugin: string -> bool;
661662
}
662663

663664

@@ -682,6 +683,7 @@ module OASISContext = struct
682683
ignore_unknown_fields = false;
683684
printf = printf;
684685
srcfs = new OASISFileSystem.host_fs(Sys.getcwd ());
686+
load_oasis_plugin = (fun _ -> false);
685687
}
686688

687689

@@ -3160,7 +3162,7 @@ module OASISFileUtil = struct
31603162
end
31613163

31623164

3163-
# 3163 "setup.ml"
3165+
# 3165 "setup.ml"
31643166
module BaseEnvLight = struct
31653167
(* # 22 "src/base/BaseEnvLight.ml" *)
31663168

@@ -3240,7 +3242,7 @@ module BaseEnvLight = struct
32403242
end
32413243

32423244

3243-
# 3243 "setup.ml"
3245+
# 3245 "setup.ml"
32443246
module BaseContext = struct
32453247
(* # 22 "src/base/BaseContext.ml" *)
32463248

@@ -5663,7 +5665,7 @@ module BaseCompat = struct
56635665
end
56645666

56655667

5666-
# 5666 "setup.ml"
5668+
# 5668 "setup.ml"
56675669
module InternalConfigurePlugin = struct
56685670
(* # 22 "src/plugins/internal/InternalConfigurePlugin.ml" *)
56695671

@@ -6469,7 +6471,7 @@ module InternalInstallPlugin = struct
64696471
end
64706472

64716473

6472-
# 6472 "setup.ml"
6474+
# 6474 "setup.ml"
64736475
module OCamlbuildCommon = struct
64746476
(* # 22 "src/plugins/ocamlbuild/OCamlbuildCommon.ml" *)
64756477

@@ -6842,7 +6844,7 @@ module OCamlbuildDocPlugin = struct
68426844
end
68436845

68446846

6845-
# 6845 "setup.ml"
6847+
# 6847 "setup.ml"
68466848
module CustomPlugin = struct
68476849
(* # 22 "src/plugins/custom/CustomPlugin.ml" *)
68486850

@@ -6974,7 +6976,7 @@ module CustomPlugin = struct
69746976
end
69756977

69766978

6977-
# 6977 "setup.ml"
6979+
# 6979 "setup.ml"
69786980
open OASISTypes;;
69796981

69806982
let setup_t =
@@ -7051,7 +7053,7 @@ let setup_t =
70517053
{
70527054
oasis_version = "0.4";
70537055
ocaml_version = Some (OASISVersion.VGreaterEqual "4.00.1");
7054-
version = "0.3.1";
7056+
version = "0.4";
70557057
license =
70567058
OASISLicense.DEP5License
70577059
(OASISLicense.DEP5Unit
@@ -7258,11 +7260,15 @@ let setup_t =
72587260
"Prelude";
72597261
"TypeCheck";
72607262
"Lazy_list";
7263+
"Bit_set";
72617264
"Sexp_lib";
72627265
"Sexp_lex";
7266+
"Precedence";
7267+
"Binder";
7268+
"Builtin";
7269+
"Cardinal_encode";
72637270
"terms/TermInner";
72647271
"terms/TermTyped";
7265-
"terms/TermMono";
72667272
"terms/Pattern";
72677273
"types/TypePoly";
72687274
"types/TypeMono"
@@ -7732,6 +7738,7 @@ let setup_t =
77327738
"ElimRecursion";
77337739
"ElimMultipleEqns";
77347740
"ElimIndPreds";
7741+
"ElimQuantifiers";
77357742
"ElimCopy";
77367743
"Polarize";
77377744
"Unroll";
@@ -7742,6 +7749,9 @@ let setup_t =
77427749
"Elim_prop_args";
77437750
"Elim_ite";
77447751
"Elim_infinite";
7752+
"Trans_ho_fo";
7753+
"Trans_fo_tptp";
7754+
"Lift_undefined";
77457755
"FoToRelational"
77467756
];
77477757
lib_pack = true;
@@ -8295,16 +8305,16 @@ let setup_t =
82958305
plugin_data = []
82968306
};
82978307
oasis_fn = Some "_oasis";
8298-
oasis_version = "0.4.7";
8299-
oasis_digest = Some "|.\210\024x\163\139`?\210\197\227=\026\r\030";
8308+
oasis_version = "0.4.8";
8309+
oasis_digest = Some "\228c\019:\241\005\133^\178\015\130p\022E\018\251";
83008310
oasis_exec = None;
83018311
oasis_setup_args = [];
83028312
setup_update = false
83038313
};;
83048314

83058315
let setup () = BaseSetup.setup setup_t;;
83068316

8307-
# 8308 "setup.ml"
8317+
# 8318 "setup.ml"
83088318
let setup_t = BaseCompat.Compat_0_4.adapt_setup_t setup_t
83098319
open BaseCompat.Compat_0_4
83108320
(* OASIS_STOP *)

0 commit comments

Comments
 (0)