0 20 40
0
10
20
30
40
Incorrect clock constraints
Repaired faults
Figure 16: Evaluation of the number of repaired clock con-
straints.
0
50
100
150
200
0
10
20
Number of nodes (vertices)
Repaired structural faults
Figure 17: Evaluation of the number of repaired structural
faults.
O(|BC|) is the complexity of extracting incorrect ba-
sic components, 2O(5|TA
test
|) is the complexity of
applying and testing all mutants generated after ap-
plying the five mutation operations on each TA of
TA
test
, and O(accpt mt) is the complexity of select-
ing a repaired TA from accepted mutants (accpt mt
is the number of accepted mutants). 3) 2O (r) is the
complexity of testing and repairing r reconfiguration
functions which are appeared in the generated coun-
terexample.
Table 3: Required correction time for each phase.
Phase Structure repair clock constraints
repair
inter-
repair
Complexity 2O(3p) O(|BC|) +
2O(5|TA
test
|) +
O(accpt mt)
2O(r)
5 CONCLUSION
This paper proposes an approach of three phases for
repairing RHTA models, (i) structure repair, (ii) ba-
sic components repair, and (iii) inter-repair. The ap-
proach is based on mutation testing and the generated
counterexample from the RHTA verification stage.
One counterexample is not able to detect all faults
in one configuration however, it covers many parts
that can be wrong. The paper also provides an appli-
cation example on a simple reconfigurable hierarchi-
cal system designed with RHTA for illustrating both
of structure repair process and inter-repairing of an
RHTA. For applying and evaluating the basic compo-
nents repair process, the train gate system is used as
a real timed system. The process is able to detect and
repair incorrect guards in basic components (TA mod-
els) which makes the model satisfying the required
property.
In future work, we plan to add improvements to
the proposed approach in order to control the cost of
time and memory space required for repairing large
RHTA such as RHTA modeling smart grids as hierar-
chical reconfigurable systems.
REFERENCES
Aichernig, B. K., H
¨
ormaier, K., and Lorber, F. (2014). De-
bugging with timed automata mutations. In Inter-
national Conference on Computer Safety, Reliability,
and Security, pages 49–64. Springer.
Aichernig, B. K., J
¨
obstl, E., and Tiran, S. (2015). Model-
based mutation testing via symbolic refinement check-
ing. Science of Computer Programming, 97:383–404.
Aichernig, B. K., Lorber, F., and Ni
ˇ
ckovi
´
c, D. (2013).
Time for mutants—model-based mutation testing with
timed automata. In International Conference on Tests
and Proofs, pages 20–38. Springer.
Andr
´
e,
´
E., Arcaini, P., Gargantini, A., and Radavelli,
M. (2019). Repairing timed automata clock guards
through abstraction and testing. In International Con-
ference on Tests and Proofs, pages 129–146. Springer.
Arcaini, P., Gargantini, A., and Radavelli, M. (2019).
Achieving change requirements of feature models by
an evolutionary approach. Journal of Systems and
Software, 150:64–76.
Bengtsson, J. and Yi, W. (2003). Timed automata: Seman-
tics, algorithms and tools. In Advanced Course on
Petri Nets, pages 87–124. Springer.
Bettira, R., Kahloul, L., Khalgui, M., and Li, Z. (2019).
Reconfigurable hierarchical timed automata: Model-
ing and stochastic verification. In 2019 IEEE Interna-
tional Conference on Systems, Man and Cybernetics
(SMC), pages 2364–2371. IEEE.
Boucheneb, H., Gardey, G., and Roux, O. H. (2009). Tctl
model checking of time petri nets. Journal of Logic
and Computation, 19(6):1509–1540.
Bouyer, P. et al. (2008). Model checking timed automata.
Hessel, A., Larsen, K. G., Mikucionis, M., Nielsen, B., Pet-
tersson, P., and Skou, A. (2008). Testing real-time
systems using uppaal. In Formal methods and testing,
pages 77–117. Springer.
Krichen, M. and Tripakis, S. (2009). Conformance testing
for real-time systems. Formal Methods in System De-
sign, 34(3):238–304.
Luthmann, L., Gerecht, T., Stephan, A., B
¨
urdek, J., and
Lochau, M. (2019). Minimum/maximum delay test-
ing of product lines with unbounded parametric real-
time constraints. Journal of Systems and Software,
149:535–553.
Nielsen, B. and Skou, A. (2003). Automated test genera-
tion from timed automata. International Journal on
Software Tools for Technology Transfer, 5(1):59–77.
A Novel Approach for Repairing Reconfigurable Hierarchical Timed Automata
405