Skip to content
Snippets Groups Projects
Commit b3291981 authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Add a flush in the Verbose.print so that the non-reg test are not

sensible to flushing, which is painful.
parent 44100b98
No related branches found
No related tags found
Loading
...@@ -637,136 +637,136 @@ End of Syntax table dump. ...@@ -637,136 +637,136 @@ End of Syntax table dump.
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack P1
export node fold_left export const y
export node consensus export type titi
export node bt_void
*** SyntaxTab.create pass 3 *** SyntaxTab.create pass 3
init symbol tables for pack dummy init symbol tables for pack P1
*** SyntaxTab.create done *** SyntaxTab.create done
*** Syntax table dump: *** Syntax table dump:
- Package or model list: - Package or model list:
t1 (pack) P1 (pack)
- Raw model table: - Raw model table:
- Raw Package table: dummy - Raw Package table: P1
- Package manager table: dummy - Package manager table: P1
End of Syntax table dump. End of Syntax table dump.
-- MAIN NODE: "t1::main" -- MAIN NODE: "P1::main"
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package dummy * package P1
Exported types: Exported types:
type P1::titi = P1::titi
Exported constants: Exported constants:
const P1::y = 3
Exported nodes: Exported nodes:
### skipping fold_left
### skipping consensus
### skipping bt_void
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
export node fold_left export node trivial
export node consensus_6_bis
export node consensus_6
export node consensus_bis
export node consensus
*** SyntaxTab.create pass 3 *** SyntaxTab.create pass 3
init symbol tables for pack dummy init symbol tables for pack dummy
*** SyntaxTab.create done *** SyntaxTab.create done
*** Syntax table dump: *** Syntax table dump:
- Package or model list: - Package or model list:
t2 (pack) trivial (pack)
- Raw model table: - Raw model table:
- Raw Package table: dummy - Raw Package table: dummy
- Package manager table: dummy - Package manager table: dummy
End of Syntax table dump. End of Syntax table dump.
-- MAIN NODE: "t2::main" -- MAIN NODE: "trivial::main"
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes: Exported nodes:
### skipping fold_left node dummy::trivial = dummy::trivial(int) returns (int) on clock XXX
node dummy::consensus_6_bis = dummy::fold_left<<type bool, type bool, const 6, operator and>>(bool, bool^6) returns (bool) on clock XXX
node dummy::consensus_6 = dummy::consensus_6(bool^6) returns (bool) on clock XXX
### skipping consensus_bis
### skipping consensus
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack P1 init pack dummy
export const y export const B
export type titi export node map2
export node toto
*** SyntaxTab.create pass 3 *** SyntaxTab.create pass 3
init symbol tables for pack P1 init symbol tables for pack dummy
*** SyntaxTab.create done *** SyntaxTab.create done
*** Syntax table dump: *** Syntax table dump:
- Package or model list: - Package or model list:
P1 (pack) t (pack)
- Raw model table: - Raw model table:
- Raw Package table: P1 - Raw Package table: dummy
- Package manager table: P1 - Package manager table: dummy
End of Syntax table dump. End of Syntax table dump.
-- MAIN NODE: "P1::main" -- MAIN NODE: "t::main"
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package P1 * package dummy
Exported types: Exported types:
type P1::titi = P1::titi
Exported constants: Exported constants:
const P1::y = 3 const dummy::B = [2, 2]
Exported nodes: Exported nodes:
### skipping map2
node dummy::toto = dummy::toto(bool) returns (int^2^3, int^2) on clock XXX
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
export node trivial export node fold_left
export node consensus
export node bt_void
*** SyntaxTab.create pass 3 *** SyntaxTab.create pass 3
init symbol tables for pack dummy init symbol tables for pack dummy
*** SyntaxTab.create done *** SyntaxTab.create done
*** Syntax table dump: *** Syntax table dump:
- Package or model list: - Package or model list:
trivial (pack) t1 (pack)
- Raw model table: - Raw model table:
- Raw Package table: dummy - Raw Package table: dummy
- Package manager table: dummy - Package manager table: dummy
End of Syntax table dump. End of Syntax table dump.
-- MAIN NODE: "trivial::main" -- MAIN NODE: "t1::main"
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes: Exported nodes:
node dummy::trivial = dummy::trivial(int) returns (int) on clock XXX ### skipping fold_left
### skipping consensus
### skipping bt_void
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
export const B export node fold_left
export node map2 export node consensus_6_bis
export node toto export node consensus_6
export node consensus_bis
export node consensus
*** SyntaxTab.create pass 3 *** SyntaxTab.create pass 3
init symbol tables for pack dummy init symbol tables for pack dummy
*** SyntaxTab.create done *** SyntaxTab.create done
*** Syntax table dump: *** Syntax table dump:
- Package or model list: - Package or model list:
t (pack) t2 (pack)
- Raw model table: - Raw model table:
- Raw Package table: dummy - Raw Package table: dummy
- Package manager table: dummy - Package manager table: dummy
End of Syntax table dump. End of Syntax table dump.
-- MAIN NODE: "t::main" -- MAIN NODE: "t2::main"
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
const dummy::B = [2, 2]
Exported nodes: Exported nodes:
### skipping map2 ### skipping fold_left
node dummy::toto = dummy::toto(bool) returns (int^2^3, int^2) on clock XXX node dummy::consensus_6_bis = dummy::fold_left<<type bool, type bool, const 6, operator and>>(bool, bool^6) returns (bool) on clock XXX
node dummy::consensus_6 = dummy::consensus_6(bool^6) returns (bool) on clock XXX
### skipping consensus_bis
### skipping consensus
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
...@@ -1484,9 +1484,9 @@ End of Syntax table dump. ...@@ -1484,9 +1484,9 @@ End of Syntax table dump.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes:
*** Error in file "should_work/call/call01.lus", line 2, col 13 to 23, token 'Lustre::and': unknown node *** Error in file "should_work/call/call01.lus", line 2, col 13 to 23, token 'Lustre::and': unknown node
Exported nodes:
node dummy::call01 = dummy::call01(bool, bool) returns (bool) on clock XXX node dummy::call01 = dummy::call01(bool, bool) returns (bool) on clock XXX
*** Error in file "should_work/call/call03.lus", line 2, col 18 to 19, token 'or': syntax error *** Error in file "should_work/call/call03.lus", line 2, col 18 to 19, token 'or': syntax error
...@@ -1514,9 +1514,9 @@ End of Syntax table dump. ...@@ -1514,9 +1514,9 @@ End of Syntax table dump.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes:
*** Error in file "should_work/call/call04.lus", line 4, col 13 to 15, token 'map': unknown node *** Error in file "should_work/call/call04.lus", line 4, col 13 to 15, token 'map': unknown node
Exported nodes:
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
...@@ -1591,9 +1591,9 @@ End of Syntax table dump. ...@@ -1591,9 +1591,9 @@ End of Syntax table dump.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes:
*** Error in file "should_work/call/call02.lus", line 2, col 13 to 23, token 'Lustre::and': unknown node *** Error in file "should_work/call/call02.lus", line 2, col 13 to 23, token 'Lustre::and': unknown node
Exported nodes:
*** Error in file "should_work/packEnvTest/contractForElementSelectionInArray/main.lus", line 3, col 45 to 45, token '=': syntax error *** Error in file "should_work/packEnvTest/contractForElementSelectionInArray/main.lus", line 3, col 45 to 45, token '=': syntax error
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
...@@ -5037,9 +5037,9 @@ End of Syntax table dump. ...@@ -5037,9 +5037,9 @@ End of Syntax table dump.
Exported types: Exported types:
Exported constants: Exported constants:
const dummy::SIZE = 3 const dummy::SIZE = 3
Exported nodes:
*** Error in file "should_work/demo/alias.lus", line 39, col 23 to 33, token 'Lustre::not': unknown node *** Error in file "should_work/demo/alias.lus", line 39, col 23 to 33, token 'Lustre::not': unknown node
Exported nodes:
node dummy::aliasGivenNode = dummy::unNoeud(int, int^3) returns (int) on clock XXX node dummy::aliasGivenNode = dummy::unNoeud(int, int^3) returns (int) on clock XXX
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
...@@ -5639,13 +5639,13 @@ End of Syntax table dump. ...@@ -5639,13 +5639,13 @@ End of Syntax table dump.
*** Dump the exported items of the packages. *** Dump the exported items of the packages.
* package dummy * package dummy
Exported types: Exported types:
Exported constants:
*** Error in file "should_fail/semantics/x.lus", line 4, col 7 to 7, token 'm': recursion loop detected: *** Error in file "should_fail/semantics/x.lus", line 4, col 7 to 7, token 'm': recursion loop detected:
> const ref in file "should_fail/semantics/x.lus", line 4, col 11 to 11, token 'x' > const ref in file "should_fail/semantics/x.lus", line 4, col 11 to 11, token 'x'
> const ref in file "should_fail/semantics/x.lus", line 6, col 11 to 11, token 't' > const ref in file "should_fail/semantics/x.lus", line 6, col 11 to 11, token 't'
> const ref in file "should_fail/semantics/x.lus", line 8, col 11 to 11, token 'n' > const ref in file "should_fail/semantics/x.lus", line 8, col 11 to 11, token 'n'
> const ref in file "should_fail/semantics/x.lus", line 2, col 11 to 11, token 'm' > const ref in file "should_fail/semantics/x.lus", line 2, col 11 to 11, token 'm'
Exported constants:
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
...@@ -5866,10 +5866,10 @@ End of Syntax table dump. ...@@ -5866,10 +5866,10 @@ End of Syntax table dump.
* package dummy * package dummy
Exported types: Exported types:
Exported constants: Exported constants:
Exported nodes:
*** Error in file "dummy", line 0, col 0 to 0, token 'dummy': recursion loop detected: *** Error in file "dummy", line 0, col 0 to 0, token 'dummy': recursion loop detected:
> node ref in file "should_fail/semantics/bad_call01.lus", line 2, col 13 to 16, token 'titi' > node ref in file "should_fail/semantics/bad_call01.lus", line 2, col 13 to 16, token 'titi'
Exported nodes:
*** Error in file "should_fail/semantics/bad_call03.lus", line 2, col 18 to 18, token '+': syntax error *** Error in file "should_fail/semantics/bad_call03.lus", line 2, col 18 to 18, token '+': syntax error
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
...@@ -5899,9 +5899,9 @@ End of Syntax table dump. ...@@ -5899,9 +5899,9 @@ End of Syntax table dump.
Exported types: Exported types:
type dummy::t2 = bool^7^8^9^10 type dummy::t2 = bool^7^8^9^10
type dummy::t = bool^3^4 type dummy::t = bool^3^4
Exported constants:
*** Error in file "should_fail/semantics/tranche.lus", line 7, col 6 to 6, token 'n': can't eval constant: external constant not allowed (in file "should_fail/semantics/tranche.lus", line 7, col 6 to 6, token 'n') *** Error in file "should_fail/semantics/tranche.lus", line 7, col 6 to 6, token 'n': can't eval constant: external constant not allowed (in file "should_fail/semantics/tranche.lus", line 7, col 6 to 6, token 'n')
Exported constants:
*** SyntaxTab.create pass 1 *** SyntaxTab.create pass 1
*** SyntaxTab.create pass 2 *** SyntaxTab.create pass 2
init pack dummy init pack dummy
...@@ -5942,9 +5942,9 @@ End of Syntax table dump. ...@@ -5942,9 +5942,9 @@ End of Syntax table dump.
type dummy::t6 = int^3^6^3^2^12 type dummy::t6 = int^3^6^3^2^12
type dummy::t7 = int^3^6^3^2^12^3 type dummy::t7 = int^3^6^3^2^12^3
type dummy::t8 = int^3^6^3^2^12^3^3 type dummy::t8 = int^3^6^3^2^12^3^3
Exported constants:
*** Error in file "should_fail/semantics/const2.lus", line 4, col 13 to 16, token 'when': can't eval constant: operation when not allowed in static expression *** Error in file "should_fail/semantics/const2.lus", line 4, col 13 to 16, token 'when': can't eval constant: operation when not allowed in static expression
Exported constants:
const dummy::c10 = 12 const dummy::c10 = 12
*** Error in file "should_fail/clock/clock.lus", line 6, col 1 to 4, token 'node': syntax error *** Error in file "should_fail/clock/clock.lus", line 6, col 1 to 4, token 'node': syntax error
...@@ -6000,7 +6000,7 @@ End of Syntax table dump. ...@@ -6000,7 +6000,7 @@ End of Syntax table dump.
type dummy::t6 = int^3^7^8^9^3 type dummy::t6 = int^3^7^8^9^3
type dummy::t7 = int^3^7^8^9^3^8 type dummy::t7 = int^3^7^8^9^3^8
type dummy::t8 = int^3^7^8^9^3^8^8 type dummy::t8 = int^3^7^8^9^3^8^8
Exported constants:
*** Error in file "should_fail/type/const2.lus", line 16, col 12 to 13, token '<>': can't eval constant: type combination error, t*t for some type t expected *** Error in file "should_fail/type/const2.lus", line 16, col 12 to 13, token '<>': can't eval constant: type combination error, t*t for some type t expected
Exported constants:
const dummy::c10 = 3 const dummy::c10 = 3
...@@ -31,10 +31,10 @@ let get_level () = !_level ...@@ -31,10 +31,10 @@ let get_level () = !_level
(**** VERSION PAS TROP GORE *****) (**** VERSION PAS TROP GORE *****)
let printf ?(level=1) s = Printf.kprintf let printf ?(level=1) s = Printf.kprintf
(fun t -> if (!_level >= level) then (print_string t) else ()) s (fun t -> if (!_level >= level) then (print_string t; flush stdout) else ()) s
let print_string ?(level=1) s = let print_string ?(level=1) s =
if (!_level >= level) then (print_string s) if (!_level >= level) then (print_string s; flush stdout)
(**** VERSION GORE *****) (**** VERSION GORE *****)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment