SlideShare a Scribd company logo
MUT4SLX
Extensions for Mutation Testing
of Stateflow Models
Speaker — Prof. Serge Demeyer
Authors — Sien Nuyens, Halil Ibrahim Ceylan,
Onur Kilincceker, Mutlu Beyazıt, Serge Demeyer
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
DevOps — Continuous Testing
2
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Build Pipeline
3
version
control
build
developer
test
deploy
(internal)
automated
system
tests
deploy
(production)
measure &
validate
`
`
merge
conflicts
compiler
warnings
regression
faults
deployment
warnings
unmet
requirements
deployment
warnings
key
performance
indicator
M
u
t
a
t
i
o
n
T
e
s
t
i
n
g
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Testing The Quality Assurance
4
© Brussels Airlines
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Inject Synthetic Items
5
© "The Good, the Bad and the Ugly: Evaluating Convolutional Neural Networks for Prohibited Item Detection Using Real and
Synthetically Composite X-ray Imagery”. Neelanjan Bhowmik, Qian Wang, Yona Falinie A. Gaus, Marcin Szarek, Toby P. Breckon
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
6
Mostly textual programming languages
(C++, C, C#, Java, Python, …)
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Industry 4.0: Cyber-Physical Systems
7
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
MatLab Ecosystem
Simulink
• sensors and actuators (continuous signals)
• embedded (control) software
StateFlow
• reactive systems
• combinatorial & sequential decision logic
8
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Microwave (StateFlow)
9
input = stream of values
• start boolean;
• door_closed boolean;
• clear boolean;
• steps_to_cook int output = stream of values
• mode int
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Unit Testing: Streams of Values with Tolerated Deviation
10
public static void assertArrayEquals(String message,
float[] expected,
float[] actuals,
float delta)
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Test Design with Signal Builder
11
Assert
Compare expected
against actual signal
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Assert with SignalBuilder: Compare Signals
12
Assert
Compare expected
against actual signal
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
MUT4SLX: Mutation Testing for Simulink …
13
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
MUT4SLX: Mutation Testing for Simulink and StateFlow
14
New!
VST2024
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
MUT4SLX Overview
15
Model
Working Directory
Target System
Mutation Operators
Set
Configuration
Start Matlab
Open Working
Directory
Open Model
Select
Mutation
Operators
Find Specific
Block Type for
Mutation
Generate
Mutants
Load
JSON
File
Save Mutants
on CSV File
Pre-run Test
Apply Mutation
on Model
Run-Test
Check Test
Results
Prepare
Report
Detect
Test
Engine
MUT4SLX
Yes
No
Untested
Mutant in
CSV?
Save Report
in HTML format
MUT4SLX
Fast mutant injection by
manipulating via the API
Automatic test execution via Signal
builder and Simulink test.
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. 16
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Mutation Operators: Industrial Collaboration
17
# Name Description
1 ROR Relational Operator Replacement
2 LOR Logical Operator Replacement
3 ASR Arithmetic Sign Replacement
4 MMR Min-Max Replacement
5 ICR If Condition Replacement
6 TOR Trigonometric Operator
Replacement
7 MOR Math Operator Replacement
8 PMR Product Multiplication
Replacement
9 POR Product Operator Replacement
10 FIR For Index Replacement
11 FLR For Limit Replacement
12 UDO Unit Delay Operation
13 STR Switch Threshold Replacement
14 SCR Switch Criteria Replacement
15 CR Constant Replacement
# Name Description
1 ROM Relational Operator Mutation
2 LOM Logical Operator Mutation
3 BOM Bitwise Operator Mutation
4 MOM Math Operator Mutation
5 NOM Non-bitwise Operator Mutation
7 CCM Control Chart Mutation
8 CDR Control chart Duration Mutation
9 TOM Transition Order Mutation
New!
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0.
Validation: 4 small models
18
System # mutants # killed
mutants
mutation
score
mutant
generation
time
mutant
execution
time
Cruise Control 63 33 52.38% 1.4 sec 11.79 min
Microwave 30 21 70% 0.7 sec 7.68 sec
Aircraft Elevator 2243 - - 66.1 sec -
Automatic Transmission 53 - - 1.35 sec -
System #
subsystems
Total Block
Count
Number of
States
Number of
Transition
Number of
tests
Cruise Control 1 9 7 23 15
Microwave 3 17 4 11 1
Aircraft Elevator 37 825 29 104 0
Automatic Transmission 17 65 9 14 0
It works …
… fast!
© Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. 19
https://github.com/haliliceylan/MUT4SLX

More Related Content

PDF
Mutation Testing
PDF
Mutation Testing: Leaving the Stone Age. FOSDEM 2017
PDF
Mutation Testing with PIT (Booster 2014, 2014-MAR-13)
PDF
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
PDF
Data-driven Mutation Analysis for Cyber-Physical Systems
PPT
Mutation testing
PDF
Mutation testing (OOP 2012, 2012-JAN-24)
PDF
Mutation testing vs. regression testing
Mutation Testing
Mutation Testing: Leaving the Stone Age. FOSDEM 2017
Mutation Testing with PIT (Booster 2014, 2014-MAR-13)
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
Data-driven Mutation Analysis for Cyber-Physical Systems
Mutation testing
Mutation testing (OOP 2012, 2012-JAN-24)
Mutation testing vs. regression testing

Similar to MUT4SLX: Extensions for Mutation Testing of Stateflow Models (20)

PDF
Higher Order Mutant Generation to Decrease the Cost of Mutation Testing Sudhi...
PDF
Mutation testing pixels camp 2019
PDF
Mutation testing for a safer Future
PPT
Software Testing - Introduction - Program based grammars
PDF
Sayyad slides ase13_v4
PDF
Must.kill.mutants. TopConf Tallinn 2016
PDF
"Mutation Testing" by Igor Gajowiak
PDF
Mutation Analysis and Testing for Cyber-Physical Systems: Scalable Solutions...
PPTX
Mutation Testing: Testing your tests
PPT
Mutation Testing and MuJava
PDF
Mutation Testing
PDF
22_11_2019 «Gamifying a software testing course with the Code Defenders Testi...
PDF
Stamp breizhcamp 2019
PPTX
Ch09-4-modelBased.pptxhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
PDF
ESUG 2024: Testing the tests with Mutalk in 2024
PDF
50120140502017
PDF
[JS EXPERIENCE 2018] “Who watches the watchmen": Testando nossos testes - Mar...
PPTX
Mutation Testing
PDF
Oop 2015 – Mutation Testing
PDF
A mutation testing analysis and regression
Higher Order Mutant Generation to Decrease the Cost of Mutation Testing Sudhi...
Mutation testing pixels camp 2019
Mutation testing for a safer Future
Software Testing - Introduction - Program based grammars
Sayyad slides ase13_v4
Must.kill.mutants. TopConf Tallinn 2016
"Mutation Testing" by Igor Gajowiak
Mutation Analysis and Testing for Cyber-Physical Systems: Scalable Solutions...
Mutation Testing: Testing your tests
Mutation Testing and MuJava
Mutation Testing
22_11_2019 «Gamifying a software testing course with the Code Defenders Testi...
Stamp breizhcamp 2019
Ch09-4-modelBased.pptxhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ESUG 2024: Testing the tests with Mutalk in 2024
50120140502017
[JS EXPERIENCE 2018] “Who watches the watchmen": Testando nossos testes - Mar...
Mutation Testing
Oop 2015 – Mutation Testing
A mutation testing analysis and regression
Ad

More from University of Antwerp (13)

PDF
"In Silico" Research: Software Engineering to the Rescue
PDF
Research Methods in Computer Science and Software Engineering
PDF
AI For Software Engineering: Two Industrial Experience Reports
PDF
Test Amplification in Python — An Industrial Experience Report
PDF
Technical Debt in Start-ups / Scale-Ups
PDF
Social Coding Platforms Facilitate Variant Forks
PDF
VST2022SmallAmpAmpyfier.pdf
PDF
Formal Verification of Developer Tests: a Research Agenda Inspired by Mutatio...
PDF
Reproducible Crashes: Fuzzing Pharo by Mutating the Test Methods
PDF
Finding Bugs, Fixing Bugs, Preventing Bugs — Exploiting Automated Tests to In...
PDF
Test Automation Maturity: A Self-Assessment Tool
PDF
Keynote VST2020 (Workshop on Validation, Analysis and Evolution of Software ...
PDF
Saner open steeringcommittee2018campobassodoubleblind
"In Silico" Research: Software Engineering to the Rescue
Research Methods in Computer Science and Software Engineering
AI For Software Engineering: Two Industrial Experience Reports
Test Amplification in Python — An Industrial Experience Report
Technical Debt in Start-ups / Scale-Ups
Social Coding Platforms Facilitate Variant Forks
VST2022SmallAmpAmpyfier.pdf
Formal Verification of Developer Tests: a Research Agenda Inspired by Mutatio...
Reproducible Crashes: Fuzzing Pharo by Mutating the Test Methods
Finding Bugs, Fixing Bugs, Preventing Bugs — Exploiting Automated Tests to In...
Test Automation Maturity: A Self-Assessment Tool
Keynote VST2020 (Workshop on Validation, Analysis and Evolution of Software ...
Saner open steeringcommittee2018campobassodoubleblind
Ad

Recently uploaded (20)

PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Transform Your Business with a Software ERP System
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administraation Chapter 3
PPT
Introduction Database Management System for Course Database
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Introduction to Artificial Intelligence
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
CHAPTER 2 - PM Management and IT Context
Computer Software and OS of computer science of grade 11.pptx
Understanding Forklifts - TECH EHS Solution
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
2025 Textile ERP Trends: SAP, Odoo & Oracle
Transform Your Business with a Software ERP System
top salesforce developer skills in 2025.pdf
System and Network Administraation Chapter 3
Introduction Database Management System for Course Database
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Digital Strategies for Manufacturing Companies
Introduction to Artificial Intelligence
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
Wondershare Filmora 15 Crack With Activation Key [2025

MUT4SLX: Extensions for Mutation Testing of Stateflow Models

  • 1. MUT4SLX Extensions for Mutation Testing of Stateflow Models Speaker — Prof. Serge Demeyer Authors — Sien Nuyens, Halil Ibrahim Ceylan, Onur Kilincceker, Mutlu Beyazıt, Serge Demeyer
  • 2. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. DevOps — Continuous Testing 2
  • 3. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Build Pipeline 3 version control build developer test deploy (internal) automated system tests deploy (production) measure & validate ` ` merge conflicts compiler warnings regression faults deployment warnings unmet requirements deployment warnings key performance indicator M u t a t i o n T e s t i n g
  • 4. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Testing The Quality Assurance 4 © Brussels Airlines
  • 5. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Inject Synthetic Items 5 © "The Good, the Bad and the Ugly: Evaluating Convolutional Neural Networks for Prohibited Item Detection Using Real and Synthetically Composite X-ray Imagery”. Neelanjan Bhowmik, Qian Wang, Yona Falinie A. Gaus, Marcin Szarek, Toby P. Breckon
  • 6. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. 6 Mostly textual programming languages (C++, C, C#, Java, Python, …)
  • 7. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Industry 4.0: Cyber-Physical Systems 7
  • 8. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. MatLab Ecosystem Simulink • sensors and actuators (continuous signals) • embedded (control) software StateFlow • reactive systems • combinatorial & sequential decision logic 8
  • 9. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Microwave (StateFlow) 9 input = stream of values • start boolean; • door_closed boolean; • clear boolean; • steps_to_cook int output = stream of values • mode int
  • 10. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Unit Testing: Streams of Values with Tolerated Deviation 10 public static void assertArrayEquals(String message, float[] expected, float[] actuals, float delta)
  • 11. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Test Design with Signal Builder 11 Assert Compare expected against actual signal
  • 12. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Assert with SignalBuilder: Compare Signals 12 Assert Compare expected against actual signal
  • 13. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. MUT4SLX: Mutation Testing for Simulink … 13
  • 14. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. MUT4SLX: Mutation Testing for Simulink and StateFlow 14 New! VST2024
  • 15. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. MUT4SLX Overview 15 Model Working Directory Target System Mutation Operators Set Configuration Start Matlab Open Working Directory Open Model Select Mutation Operators Find Specific Block Type for Mutation Generate Mutants Load JSON File Save Mutants on CSV File Pre-run Test Apply Mutation on Model Run-Test Check Test Results Prepare Report Detect Test Engine MUT4SLX Yes No Untested Mutant in CSV? Save Report in HTML format MUT4SLX Fast mutant injection by manipulating via the API Automatic test execution via Signal builder and Simulink test.
  • 16. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. 16
  • 17. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Mutation Operators: Industrial Collaboration 17 # Name Description 1 ROR Relational Operator Replacement 2 LOR Logical Operator Replacement 3 ASR Arithmetic Sign Replacement 4 MMR Min-Max Replacement 5 ICR If Condition Replacement 6 TOR Trigonometric Operator Replacement 7 MOR Math Operator Replacement 8 PMR Product Multiplication Replacement 9 POR Product Operator Replacement 10 FIR For Index Replacement 11 FLR For Limit Replacement 12 UDO Unit Delay Operation 13 STR Switch Threshold Replacement 14 SCR Switch Criteria Replacement 15 CR Constant Replacement # Name Description 1 ROM Relational Operator Mutation 2 LOM Logical Operator Mutation 3 BOM Bitwise Operator Mutation 4 MOM Math Operator Mutation 5 NOM Non-bitwise Operator Mutation 7 CCM Control Chart Mutation 8 CDR Control chart Duration Mutation 9 TOM Transition Order Mutation New!
  • 18. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. Validation: 4 small models 18 System # mutants # killed mutants mutation score mutant generation time mutant execution time Cruise Control 63 33 52.38% 1.4 sec 11.79 min Microwave 30 21 70% 0.7 sec 7.68 sec Aircraft Elevator 2243 - - 66.1 sec - Automatic Transmission 53 - - 1.35 sec - System # subsystems Total Block Count Number of States Number of Transition Number of tests Cruise Control 1 9 7 23 15 Microwave 3 17 4 11 1 Aircraft Elevator 37 825 29 104 0 Automatic Transmission 17 65 9 14 0 It works … … fast!
  • 19. © Copyright Serge Demeyer 2024. Licensed under CC BY_NC 4.0. 19 https://github.com/haliliceylan/MUT4SLX