Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
verimag
synchrone
lutin
Commits
fbd316f5
Commit
fbd316f5
authored
Dec 15, 2015
by
Erwan Jahier
Browse files
update lus2lic + minor changes
parent
951ddbcf
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Makefile.common.source
View file @
fbd316f5
...
...
@@ -255,8 +255,6 @@ LURETTE_SOURCES=\
$(OBJDIR)
/graph.mli
\
$(OBJDIR)
/myGenlex.mli
\
$(OBJDIR)
/myGenlex.ml
\
$(OBJDIR)
/gnuplotRif.mli
\
$(OBJDIR)
/gnuplotRif.ml
\
$(OBJDIR)
/Ezdl.ml
\
$(OBJDIR)
/Ezdl.mli
\
$(OBJDIR)
/type.ml
\
...
...
@@ -370,7 +368,6 @@ LUTIN_SOURCES = \
$(OBJDIR)
/lutProg.mli
\
$(OBJDIR)
/lucProg.ml
\
$(OBJDIR)
/lucProg.mli
\
$(OBJDIR)
/luciole.ml
\
$(OBJDIR)
/luc2alice.ml
\
$(OBJDIR)
/luc2c.mli
\
$(OBJDIR)
/luc2c.ml
\
...
...
Makefile.version
View file @
fbd316f5
# well, finally, set it manually...
VERSION
:=
1.5
6
VERSION
:=
1.5
7
#
# When incrementing that version number, please don't forget to
# fill-in the RELEASE-NOTES file (using the git history).
...
...
source/Lucky/luc2c.ml
View file @
fbd316f5
...
...
@@ -996,7 +996,7 @@ let (main : Exp.var list -> Exp.var list -> Exp.var list -> unit) =
exit
2
);
let
var_to_vn_ct
v
=
(
Var
.
name
v
,
Type
.
to_cstring
(
Var
.
typ
v
))
in
Luciole
.
gen_stubs
false
fn
Luciole
.
gen_stubs
fn
(
List
.
map
var_to_vn_ct
ins
)
(
List
.
map
var_to_vn_ct
outs
)
|
Scade
->
()
...
...
source/Lucky/luc2luciole.ml
View file @
fbd316f5
...
...
@@ -138,7 +138,7 @@ let rec (main : unit -> 'a) =
let
luciole_outputs
=
List
.
sort
compare
luciole_outputs
in
let
luciole_inputs
=
List
.
sort
compare
luciole_inputs
in
let
sut_str
=
Filename
.
basename
(
Filename
.
chop_extension
flag
.
sut_header
)
in
Luciole
.
gen_stubs
true
sut_str
luciole_outputs
luciole_inputs
Luciole
.
gen_stubs
sut_str
luciole_outputs
luciole_inputs
with
e
->
...
...
source/Lurettetop/Makefile.comon
View file @
fbd316f5
...
...
@@ -120,7 +120,7 @@ LUSTRE_SOURCES = \
$(OBJDIR)
/licMetaOp.ml
\
$(OBJDIR)
/ast2lic.mli
\
$(OBJDIR)
/ast2lic.ml
\
$(OBJDIR)
/
m
isc.ml
\
$(OBJDIR)
/
lv6M
isc.ml
\
$(OBJDIR)
/l2lCheckKcgKeyWord.ml
\
$(OBJDIR)
/l2lCheckMemSafe.mli
\
$(OBJDIR)
/l2lCheckMemSafe.ml
\
...
...
@@ -144,8 +144,8 @@ LUSTRE_SOURCES = \
$(OBJDIR)
/l2lSplit.ml
\
$(OBJDIR)
/licTab.ml
\
$(OBJDIR)
/licTab.mli
\
$(OBJDIR)
/
c
ompile.mli
\
$(OBJDIR)
/
c
ompile.ml
\
$(OBJDIR)
/
lv6C
ompile.mli
\
$(OBJDIR)
/
lv6C
ompile.ml
\
...
...
source/Lurettetop/ldbg.ml
View file @
fbd316f5
...
...
@@ -24,7 +24,7 @@ let set_gnuplot b = LtopArg.args.LtopArg.display_gnuplot <- b
let
set_sim2chro
b
=
LtopArg
.
args
.
LtopArg
.
display_sim2chro
<-
b
let
run
()
=
Event
.
e
ven
t_nb
:=
0
;
Event
.
s
et_nb
0
;
RunDirect
.
start
()
let
next
e
=
e
.
next
()
let
terminate
e
=
e
.
terminate
...
...
source/Lutin/META
0 → 100644
View file @
fbd316f5
version = "1"
description = "an API to call the Lutin interpreter from ocaml"
requires = "str unix num rdbg-plugin"
archive(byte) = "lut4ocaml.cma"
archive(byte, plugin) = "lut4ocaml.cma"
archive(native) = "lut4ocaml.cmxa"
archive(native, plugin) = "lut4ocaml.cmxs"
exists_if = "lut4ocaml.cma"
source/Lutin/Makefile.lutin
View file @
fbd316f5
...
...
@@ -12,8 +12,8 @@ ifneq ($(HOSTTYPE),Darwin-x86_64)
#STATIC=yes
endif
OCAMLFLAGS
+=
-I
$(OBJDIR)
-I
$(OCAMLLIB)
-I
$(PREFIX)
/
$(HOSTTYPE)
/lib
OCAMLFLAGS
+=
-I
+rdbg-plugin
OCAMLFLAGS
+=
-I
$(OBJDIR)
-I
$(OCAMLLIB)
-I
$(PREFIX)
/
$(HOSTTYPE)
/lib
OCAMLFLAGS
+=
-I
+oUnit2
-I
+rdbg-plugin
IDLFLAGS
=
-nocpp
...
...
@@ -27,7 +27,7 @@ OCAMLLDFLAGS= -cclib -lstdc++ -cclib -I/usr/lib/w32api $(OCAMLOPTFLAG) \
-cclib
-l
$(POLKA)
_caml
\
-cclib
-l
$(POLKA)
-cclib
-lgmp
endif
OCAMLLDFLAGS
+=
-I
+rdbg-plugin
OCAMLLDFLAGS
+=
-I
+ounit2
-I
+rdbg-plugin
CC
=
$(GCC)
$(DWIN32)
-fPIC
...
...
source/Lutin/lutExe.ml
View file @
fbd316f5
This diff is collapsed.
Click to expand it.
source/Makefile
View file @
fbd316f5
...
...
@@ -643,7 +643,7 @@ all_assert:
check
:
echo
"A faire dans le repertoire test, sinon, ca vaut pas !!! "
allw
:
clean lucky ltop show stubs
gnuplot-rif
gnuplot-socket call-via-socket gen_luc luc2luciole luc4c libluc4c_nc.a draw-all lut4ocaml-all
allw
:
clean lucky ltop show stubs gnuplot-socket call-via-socket gen_luc luc2luciole luc4c libluc4c_nc.a draw-all lut4ocaml-all
LUCKY_DEF
=
...
...
@@ -653,10 +653,10 @@ endif
old
:
lucky luc2luciole luc4c libluc4c_nc.a
compile_all
:
gen_version $(OBJDIR)
gnuplot-rif
gnuplot-socket call-via-socket lutin draw-all $(LUCKY_DEF) libluc4c_nc.a check-rif ltop lut4ocaml-clean lut4ocaml-all
compile_all
:
gen_version $(OBJDIR) gnuplot-socket call-via-socket lutin draw-all $(LUCKY_DEF) libluc4c_nc.a check-rif ltop lut4ocaml-clean lut4ocaml-all
rest
:
check-rif ltop lut4ocaml-clean lut4ocaml-all
allnc
:
clean lucky ltop show stubs
gnuplot-rif
gnuplot-socket call-via-socket gen_luc luc2luciole luc4c libluc4c_nc.a liblucky_nc.a draw-all lut4ocaml-all check-rif
allnc
:
clean lucky ltop show stubs gnuplot-socket call-via-socket gen_luc luc2luciole luc4c libluc4c_nc.a liblucky_nc.a draw-all lut4ocaml-all check-rif
static
:
lucky_static ltop_static show_static stubs_static gen_luc_static
...
...
@@ -691,8 +691,7 @@ create_dirs:
[
-d
$(LIB_INSTALL_DIR)
]
||
mkdir
$(LIB_INSTALL_DIR)
&&
\
[
-d
$(INC_INSTALL_DIR)
]
||
mkdir
$(INC_INSTALL_DIR)
cp
:
create_dirs lut4ocaml-cp draw-cp
cp
$(OBJDIR)
/gnuplot-rif
$(EXE)
$(BIN_INSTALL_DIR)
;
\
cp
:
create_dirs lut4ocaml-cp draw-cp lutin-caml-install
cp
$(OBJDIR)
/gnuplot-socket
$(EXE)
$(BIN_INSTALL_DIR)
;
\
cp
$(OBJDIR)
/call-via-socket
$(EXE)
$(BIN_INSTALL_DIR)
;
\
cp
$(OBJDIR)
/gen_stubs_exe
$(EXE)
$(BIN_INSTALL_DIR)
;
\
...
...
@@ -730,7 +729,6 @@ LIB_VERIMAG_INSTALL_DIR= /usr/local/tools/lurette/lib/
INC_VERIMAG_INSTALL_DIR
=
/usr/local/tools/lurette/include/
cp-verimag
:
cp
$(PRE_RELEASE_DIR)
/bin/sim2chrogtk
$(EXE)
$(BIN_VERIMAG_INSTALL_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/gnuplot-rif
$(EXE)
$(BIN_VERIMAG_INSTALL_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/gnuplot-socket
$(EXE)
$(BIN_VERIMAG_INSTALL_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/call-via-socket
$(EXE)
$(BIN_VERIMAG_INSTALL_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/gen_stubs_exe
$(EXE)
$(BIN_VERIMAG_INSTALL_DIR)
;
\
...
...
@@ -749,7 +747,6 @@ cp-verimag:
COMON_DIR
=
$(HOME)
/dd/COMON/trunk/bin/WinNT/tools/
cp-comon
:
cp
$(PRE_RELEASE_DIR)
/bin/gnuplot-rif
$(EXE)
$(COMON_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/gnuplot-socket
$(EXE)
$(COMON_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/call-via-socket
$(EXE)
$(COMON_DIR)
;
\
cp
$(PRE_RELEASE_DIR)
/bin/check-rif
$(EXE)
$(COMON_DIR)
;
\
...
...
source/common/lustreRun.ml
View file @
fbd316f5
(* Time-stamp: <modified the
02/09
/201
4
(at 1
4:53
) by Erwan Jahier> *)
(* Time-stamp: <modified the
21/10
/201
5
(at 1
6:32
) by Erwan Jahier> *)
open
RdbgPlugin
type
vars
=
(
string
*
Data
.
t
)
list
...
...
@@ -113,6 +113,7 @@ let (make_ec : string -> RdbgPlugin.t) =
}
in
{
id
=
""
;
inputs
=
ec_in
;
outputs
=
ec_out
;
kill
=
kill
;
...
...
@@ -230,6 +231,7 @@ let (make_socket_do : string -> int -> in_channel * RdbgPlugin.t) =
}
in
let
plugin
=
{
id
=
""
;
inputs
=
vars_in
;
outputs
=
vars_out
;
kill
=
kill
;
...
...
@@ -332,6 +334,7 @@ let (make_ec_exe : string -> RdbgPlugin.t) =
}
in
{
id
=
""
;
inputs
=
ec_in
;
outputs
=
ec_out
;
kill
=
kill
;
...
...
@@ -352,7 +355,7 @@ let (make_luciole : string -> vars -> vars ->
);
let
luciole_outputs
=
List
.
map
(
fun
(
id
,
t
)
->
id
,
Data
.
type_to_string
t
)
luciole_outputs
in
let
luciole_inputs
=
List
.
map
(
fun
(
id
,
t
)
->
id
,
Data
.
type_to_string
t
)
luciole_inputs
in
Luciole
.
gen_stubs
true
"lurette"
luciole_outputs
luciole_inputs
;
Luciole
.
gen_stubs
"lurette"
luciole_outputs
luciole_inputs
;
Printf
.
eprintf
"Luciole: generate lurette.dro from lurette_luciole.c
\n
"
;
flush
stderr
;
if
Util2
.
c2dro
"lurette_luciole.c"
then
()
else
...
...
source/common/lutinRun.ml
View file @
fbd316f5
(* Time-stamp: <modified the 2
6/03
/201
4
(at 1
7:06
) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
1/10
/201
5
(at 1
1:52
) by Erwan Jahier> *)
(**********************************************************************************)
type
vars
=
(
string
*
Data
.
t
)
list
...
...
@@ -96,6 +96,7 @@ let make argv =
lut_out
in
{
id
=
String
.
concat
" "
(
Array
.
to_list
argv
);
inputs
=
lut_in
;
outputs
=
lut_out
;
kill
=
(
fun
_
->
()
);
...
...
source/lus2lic/l2lCheckLoops.ml
View file @
fbd316f5
(* Time-stamp: <modified the 2
6/02
/2015 (at 1
3:50
) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
0/10
/2015 (at 1
7:44
) by Erwan Jahier> *)
open
Lxm
open
Lv6errors
open
Lic
open
Misc
open
Lv6
Misc
module
IdMap
=
Map
.
Make
(
struct
type
t
=
Lv6Id
.
t
let
compare
=
compare
end
)
module
IdSet
=
Set
.
Make
(
struct
type
t
=
Lv6Id
.
t
let
compare
=
compare
end
)
...
...
source/lus2lic/l2lCheckOutputs.ml
View file @
fbd316f5
(* Time-stamp: <modified the 2
6/02
/2015 (at 1
1:26
) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
0/10
/2015 (at 1
7:44
) by Erwan Jahier> *)
open
Lxm
open
Lv6errors
open
Lic
open
Misc
open
Lv6
Misc
(*********************************************************************************)
(** Used to represent how much defined a variable is. *)
...
...
source/lus2lic/lus2licRun.ml
View file @
fbd316f5
(* Time-stamp: <modified the
18/06
/2015 (at 1
5:08
) by Erwan Jahier> *)
(* Time-stamp: <modified the
21/10
/2015 (at 1
1:29
) by Erwan Jahier> *)
(*-----------------------------------------------------------------------
** Copyright (C) - Verimag.
*)
...
...
@@ -27,8 +27,8 @@ let make argv =
Some
(
Lv6Id
.
idref_of_string
opt
.
main_node
)
in
if
opt
.
outfile
<>
""
then
opt
.
oc
<-
open_out
opt
.
outfile
;
let
nsl
=
Compile
.
get_source_list
opt
opt
.
infiles
in
let
lic_prg
=
Compile
.
doit
opt
nsl
main_node
in
let
nsl
=
Lv6
Compile
.
get_source_list
opt
opt
.
infiles
in
let
lic_prg
=
Lv6
Compile
.
doit
opt
nsl
main_node
in
let
nk
=
(
Lic
.
node_key_of_idref
(
Lv6Id
.
to_idref
opt
.
main_node
))
in
let
sk
,
soc_tbl
=
...
...
@@ -93,6 +93,7 @@ let make argv =
let
(
mems_in
:
Data
.
subst
list
)
=
[]
in
(* XXX todo *)
let
(
mems_out
:
Data
.
subst
list
)
=
[]
in
(* XXX todo *)
{
id
=
String
.
concat
" "
(
Array
.
to_list
argv
);
inputs
=
vntl_i
;
outputs
=
vntl_o
;
kill
=
(
fun
_
->
()
);
...
...
source/lus2lic/lv6version.ml
View file @
fbd316f5
(** Automatically generated from Makefile *)
let
tool
=
"lus2lic"
let
branch
=
"master"
let
commit
=
"62
2
"
let
sha_1
=
"
953ed8bb2db2ee412fb4a3d1ab70b205cc1299bb
"
let
commit
=
"62
7
"
let
sha_1
=
"
309452a9a32a423e16e163efcd2e018892cc3d3f
"
let
str
=
(
branch
^
"."
^
commit
^
" ("
^
sha_1
^
")"
)
let
maintainer
=
"jahier@imag.fr"
source/lus2lic/main.ml
View file @
fbd316f5
(* Time-stamp: <modified the
18/09
/2015 (at 1
5
:4
9
) by Erwan Jahier> *)
(* Time-stamp: <modified the
20/10
/2015 (at 1
7
:4
8
) by Erwan Jahier> *)
open
Verbose
open
AstV6
...
...
@@ -238,7 +238,7 @@ let info msg =
let
main
()
=
(
(* Compile.init_appli () ; *)
(*
Lv6
Compile.init_appli () ; *)
(* parse_args (); *)
let
opt
=
Lv6MainArgs
.
parse
Sys
.
argv
in
Verbose
.
exe
~
level
:
3
(
fun
()
->
...
...
@@ -254,8 +254,8 @@ let main () = (
in
if
opt
.
outfile
<>
""
then
opt
.
oc
<-
open_out
opt
.
outfile
;
(
try
(
let
nsl
=
Compile
.
get_source_list
opt
opt
.
infiles
in
let
lic_prg
=
Compile
.
doit
opt
nsl
main_node
in
let
nsl
=
Lv6
Compile
.
get_source_list
opt
opt
.
infiles
in
let
lic_prg
=
Lv6
Compile
.
doit
opt
nsl
main_node
in
if
opt
.
print_interface
then
(
gen_rif_interface
lic_prg
main_node
opt
;
info
"bye!"
;
...
...
source/lus2lic/socExec.ml
View file @
fbd316f5
(* Time-stamp: <modified the 1
8/06
/2015 (at 1
5
:0
8
) by Erwan Jahier> *)
(* Time-stamp: <modified the 1
6/10
/2015 (at 1
7
:0
9
) by Erwan Jahier> *)
open
Soc
open
Data
...
...
@@ -284,7 +284,7 @@ let rec (do_step_dbg : Soc.tbl -> Soc.t -> Event.ctx -> SocExecValue.ctx ->
Event
.
outputs
=
ectx
.
Event
.
ctx_outputs
;
Event
.
sinfo
=
None
;
Event
.
data
=
ectx
.
Event
.
ctx_data
;
Event
.
next
=
(
fun
()
->
Event
.
e
ven
t_nb
:=
enb
;
cont
ctx
);
Event
.
next
=
(
fun
()
->
Event
.
s
et_nb
enb
;
cont
ctx
);
Event
.
terminate
=
ectx
.
Event
.
ctx_terminate
;
}
in
...
...
source/misc/Makefile.check_rif
View file @
fbd316f5
...
...
@@ -28,8 +28,6 @@ SOURCES_OCAML = \
$(OBJDIR)
/util2.ml
\
$(OBJDIR)
/coverage.mli
\
$(OBJDIR)
/coverage.ml
\
$(OBJDIR)
/luciole.mli
\
$(OBJDIR)
/luciole.ml
\
$(OBJDIR)
/lustreRun.mli
\
$(OBJDIR)
/lustreRun.ml
\
$(OBJDIR)
/checkRif.ml
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment