Skip to content

Commit 96e41d8

Browse files
committed
Added build for Model Checker with machine integers
1 parent b030310 commit 96e41d8

File tree

4 files changed

+548
-2
lines changed

4 files changed

+548
-2
lines changed

ML/Checker_int.patch

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
*** Checker.sml 2018-03-20 15:06:22.000000000 +0100
2+
--- Checker_int.sml 2018-03-20 15:06:14.000000000 +0100
3+
***************
4+
*** 80,87 ****
5+
end
6+
7+
8+
! val to_int = Int_of_integer o IntInf.fromInt
9+
! val to_nat = nat_of_integer o IntInf.fromInt
10+
val nat_of_int = nat_of_integer o integer_of_int
11+
12+
13+
--- 80,87 ----
14+
end
15+
16+
17+
! val to_int = Int_of_integer o Int.fromInt
18+
! val to_nat = nat_of_integer o Int.fromInt
19+
val nat_of_int = nat_of_integer o integer_of_int
20+
21+
22+
***************
23+
*** 259,265 ****
24+
if !debug_level >= 3 then
25+
println (
26+
"\n"
27+
! ^ list_to_string (list_to_string (list_to_string (IntInf.toString o integer_of_nat))) k
28+
^ "\n"
29+
)
30+
else ()
31+
--- 259,265 ----
32+
if !debug_level >= 3 then
33+
println (
34+
"\n"
35+
! ^ list_to_string (list_to_string (list_to_string (Int.toString o integer_of_nat))) k
36+
^ "\n"
37+
)
38+
else ()

ML/Makefile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
all: munta.mlb UPPAAL_Model_Checker_patched.sml
1+
all: munta
2+
3+
munta: munta.mlb UPPAAL_Model_Checker_patched.sml
24
mlton munta.mlb
35
chmod +x munta
46

7+
munta_int: munta_int.mlb Checker_int.sml UPPAAL_Model_Checker_int.sml
8+
mlton -output munta_int munta_int.mlb
9+
chmod +x munta_int
10+
511
UPPAAL_Reachability_Checker_patched.sml: UPPAAL_Reachability_Checker.sml
612
patch -i postprocessing.patch -o UPPAAL_Reachability_Checker_patched.sml
713

814
UPPAAL_Model_Checker_patched.sml: UPPAAL_Model_Checker.sml
9-
patch -i postprocessing_mc.patch -o UPPAAL_Model_Checker_patched.sml
15+
patch -i postprocessing_mc.patch -o UPPAAL_Model_Checker_patched.sml
16+
17+
Checker_int.sml: Checker.sml
18+
patch -i Checker_int.patch -o Checker_int.sml
19+
20+
UPPAAL_Model_Checker_int.sml: UPPAAL_Model_Checker_patched.sml
21+
patch -i UPPAAL_Model_Checker_int.patch -o UPPAAL_Model_Checker_int.sml UPPAAL_Model_Checker_patched.sml
22+
23+
munta_int.mlb: munta.mlb
24+
patch -i munta_int.patch -o munta_int.mlb

0 commit comments

Comments
 (0)