1
- import sys
1
+ import os
2
2
import json
3
3
4
4
5
5
def main ():
6
+ os .system (
7
+ "python3 count-lines.py $VERUS_DIR/source/tools/line_count/zookeeper_table zookeeper"
8
+ )
9
+ os .system (
10
+ "python3 count-lines.py $VERUS_DIR/source/tools/line_count/rabbitmq_table rabbitmq"
11
+ )
12
+ os .system (
13
+ "python3 count-lines.py $VERUS_DIR/source/tools/line_count/fluent_table fluent"
14
+ )
15
+ os .system (
16
+ "python3 count-anvil-lines.py $VERUS_DIR/source/tools/line_count/lib_table"
17
+ )
6
18
zk_data = json .load (open ("zookeeper-lines.json" ))
7
19
rmq_data = json .load (open ("rabbitmq-lines.json" ))
8
20
fb_data = json .load (open ("fluent-lines.json" ))
21
+ anvil_data = json .load (open ("anvil-lines.json" ))
9
22
print ("ZooKeeper:" )
10
23
print (
11
24
"Liveness & {} & -- & {}" .format (
@@ -19,12 +32,12 @@ def main():
19
32
)
20
33
)
21
34
print (
22
- "Reconciliation model & -- & -- & {}" .format (
35
+ "Controller model & -- & -- & {}" .format (
23
36
zk_data ["reconcile_model" ]["Proof" ],
24
37
)
25
38
)
26
39
print (
27
- "Reconciliation impl & -- & {} & --" .format (
40
+ "Controller impl & -- & {} & --" .format (
28
41
zk_data ["reconcile_model" ]["Exec" ] + zk_data ["reconcile_impl" ]["Exec" ],
29
42
)
30
43
)
@@ -63,12 +76,12 @@ def main():
63
76
)
64
77
)
65
78
print (
66
- "Reconciliation model & -- & -- & {}" .format (
79
+ "Controller model & -- & -- & {}" .format (
67
80
rmq_data ["reconcile_model" ]["Proof" ],
68
81
)
69
82
)
70
83
print (
71
- "Reconciliation impl & -- & {} & --" .format (
84
+ "Controller impl & -- & {} & --" .format (
72
85
rmq_data ["reconcile_model" ]["Exec" ] + rmq_data ["reconcile_impl" ]["Exec" ],
73
86
)
74
87
)
@@ -96,12 +109,12 @@ def main():
96
109
)
97
110
)
98
111
print (
99
- "Reconciliation model & -- & -- & {}" .format (
112
+ "Controller model & -- & -- & {}" .format (
100
113
fb_data ["reconcile_model" ]["Proof" ],
101
114
)
102
115
)
103
116
print (
104
- "Reconciliation impl & -- & {} & --" .format (
117
+ "Controller impl & -- & {} & --" .format (
105
118
fb_data ["reconcile_model" ]["Exec" ] + fb_data ["reconcile_impl" ]["Exec" ],
106
119
)
107
120
)
@@ -115,6 +128,30 @@ def main():
115
128
fb_data ["entry" ]["Trusted" ],
116
129
)
117
130
)
131
+ print ("Anvil:" )
132
+ print (
133
+ "TLA embedding & {} & -- & --" .format (
134
+ anvil_data ["tla_embedding_lines" ]["Trusted" ]
135
+ )
136
+ )
137
+ print (
138
+ "Model & {} & -- & --" .format (
139
+ anvil_data ["other_lines" ]["Trusted" ]
140
+ + anvil_data ["object_model_lines" ]["Trusted" ]
141
+ )
142
+ )
143
+ print (
144
+ "Lemmas & -- & -- & {}" .format (
145
+ anvil_data ["k8s_lemma_lines" ]["Proof" ]
146
+ + anvil_data ["tla_lemma_lines" ]["Proof" ]
147
+ )
148
+ )
149
+ print (
150
+ "Shim layer & {} & -- & --" .format (
151
+ anvil_data ["object_wrapper_lines" ]["Trusted" ]
152
+ + anvil_data ["other_lines" ]["Exec" ]
153
+ )
154
+ )
118
155
119
156
120
157
if __name__ == "__main__" :
0 commit comments