Abu Naser Masud
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Abu Naser Masud has a total of 11 co-authors. Here are the top co-authors by number of shared publications:
- Björn Lisper
Mälardalen University, Sweden
4 shared publications - Federico Ciccozzi
Mälardalen University, Västerås, Sweden
3 shared publications - Marjan Sirjani
Mälardalen University
2 shared publications - Björn Lisper
Mälardalen University
1 shared publication - Carolina Smigan
Mälardalen University
1 shared publication - Hiep Hong Trinh
IDT school Mälardalen University Västerås Sweden
1 shared publication
Latest Publications
- Open Access
- 13 October 2026
- Published by Springer Nature
- p. 22-41
From Maritime Regulations to Verifiable Properties with LLM Assistance
Maritime automation requires formal safety assurances that simulation alone cannot provide. The International Regulations for Preventing Collisions at Sea (COLREGs) are expressed in natural language, while Legata provides a structured domain-specific language for encoding these regulations. We propose a method for translating Legata specifications into logical properties that can be verified against an actor-based model using model checking. We present a four-stage pipeline (Model Binding, Property Construction, Refinement, and Verification) that transforms Legata clauses into Rebeca correctness properties under expert oversight. The first three stages are implemented by specialized LLM agents. The final stage uses the Rebeca Model Checker to compile and evaluate the generated properties against a reference actor model. We evaluate GPT-4o in novice and skillful configurations using a 10-point Translation Quality Criteria metric that assesses syntactic correctness, attribute coverage, actor coverage, hallucination freedom, and logical completeness and granularity. With additional Rebeca knowledge and worked examples, the skillful configuration improves the average score from 8.06/10 to 8.72/10, achieves complete actor coverage, and eliminates syntax errors. Verification feedback supports iterative refinement, while expert review remains necessary. The contributions are a reusable four-stage pipeline, a metric for evaluating LLM-assisted DSL formalization, and an analysis of which regulatory clauses are amenable to actor-based model checking.
- 13 October 2026
- Published by Springer Nature
- p. 22-41
Open AccessFrom Maritime Regulations to Verifiable Properties with LLM Assistance
Maritime automation requires formal safety assurances that simulation alone cannot provide. The International Regulations for Preventing Collisions at Sea (COLREGs) are expressed in natural language, while Legata provides a structured domain-specific language for encoding these regulations. We propose a method for translating Legata specifications into logical properties that can be verified against an actor-based model using model checking. We present a four-stage pipeline (Model Binding, Property Construction, Refinement, and Verification) that transforms Legata clauses into Rebeca correctness properties under expert oversight. The first three stages are implemented by specialized LLM agents. The final stage uses the Rebeca Model Checker to compile and evaluate the generated properties against a reference actor model. We evaluate GPT-4o in novice and skillful configurations using a 10-point Translation Quality Criteria metric that assesses syntactic correctness, attribute coverage, actor coverage, hallucination freedom, and logical completeness and granularity. With additional Rebeca knowledge and worked examples, the skillful configuration improves the average score from 8.06/10 to 8.72/10, achieves complete actor coverage, and eliminates syntax errors. Verification feedback supports iterative refinement, while expert review remains necessary. The contributions are a reusable four-stage pipeline, a metric for evaluating LLM-assisted DSL formalization, and an analysis of which regulatory clauses are amenable to actor-based model checking.
- Open Access
M, Toolchain and Language for Reusable Model Compilation
Complex software-driven systems often interleave distributed, concurrent computation processes with physical interactions with the environment. Developing these systems more efficiently and safely can be achieved by employing actionable, software-based models. From a high-level system model, engineers often need to derive multiple specialized models for different purposes, including simulation, deployment, and formal verification. Each of these target models usually rely on its own formalism, specification language, and execution platform. Traditionally, a compiler analyzes a program written in a programming language and generates executable code. In contrast, a model compiler processes a source model written in a modeling language and should ideally support the generation of multiple heterogeneous targets. However, most existing modeling languages are designed with a narrow focus, typically targeting only simulation or implementation. Multi-target compilation, when not considered during the language's early design, becomes significantly harder to achieve. In this paper, we introduce our initiative: a toolchain and modeling language called M, designed to support system modeling and multi-target compilation for model-driven engineering of complex, concurrent, and time-aware systems. M is a textual, grammar-driven language based on the actor model and extended with discrete-event scheduling semantics. It provides constructs for modeling system entities, message-based interactions, and time- or state-triggered reactions. From such models, M enables the systematic generation of diverse target artifacts while preserving semantic conformance to the original model. Moreover, M can serve as a middle language to which other modeling languages may anchor, thereby allowing them to benefit from its compilation framework.
Open AccessM, Toolchain and Language for Reusable Model Compilation
Complex software-driven systems often interleave distributed, concurrent computation processes with physical interactions with the environment. Developing these systems more efficiently and safely can be achieved by employing actionable, software-based models. From a high-level system model, engineers often need to derive multiple specialized models for different purposes, including simulation, deployment, and formal verification. Each of these target models usually rely on its own formalism, specification language, and execution platform. Traditionally, a compiler analyzes a program written in a programming language and generates executable code. In contrast, a model compiler processes a source model written in a modeling language and should ideally support the generation of multiple heterogeneous targets. However, most existing modeling languages are designed with a narrow focus, typically targeting only simulation or implementation. Multi-target compilation, when not considered during the language's early design, becomes significantly harder to achieve. In this paper, we introduce our initiative: a toolchain and modeling language called M, designed to support system modeling and multi-target compilation for model-driven engineering of complex, concurrent, and time-aware systems. M is a textual, grammar-driven language based on the actor model and extended with discrete-event scheduling semantics. It provides constructs for modeling system entities, message-based interactions, and time- or state-triggered reactions. From such models, M enables the systematic generation of diverse target artifacts while preserving semantic conformance to the original model. Moreover, M can serve as a middle language to which other modeling languages may anchor, thereby allowing them to benefit from its compilation framework.
- 21 March 2025
- Published by Springer Nature
- p. 120-137
On Time-Sensitive Control Closure for Secure Information Flow
- 21 March 2025
- Published by Springer Nature
- p. 120-137
On Time-Sensitive Control Closure for Secure Information Flow
- 2 December 2022
- Published by Springer Nature
- p. 325-349
Fast and Incremental Computation of Weak Control Closure
- 2 December 2022
- Published by Springer Nature
- p. 325-349
Fast and Incremental Computation of Weak Control Closure
- 19 July 2022
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 49 (4) , 1766-1781
The Duality in Computing SSA Programs and Control Dependency
Control dependency (CD) and Static Single Assignment (SSA) form are the basis of many program analyses, transformation, and optimization techniques, and these are implemented and used by modern compilers such as GCC and LLVM. Most state-of-the-art algorithms approximate these computations by using postdominator relations and dominance frontiers (DF) respectively for efficiency reasons which have been used for over three decades. Dominator-based SSA transformation and control dependencies exhibit a non-dual relationship. Recently, it has been shown that DF-based SSA computation is grossly imprecise, and Weak and Strong Control Closure (WCC and SCC) have wider applicability in capturing control dependencies than postdominator-based CD computation. Our main contribution in this article is the proof of duality between the generation of$\phi$ functions and the computation of weakly deciding (WD) vertices which are the most computationally expensive part of SSA program construction and WCC/SCC computation respectively. We have provided a duality theorem and its constructive proof by means of an algorithm that can compute both the$\phi$ functions and the WD vertices seamlessly. We have used this algorithm to compute SSA programs and WCC, and performed experiments on real-world industrial benchmarks. The practical efficiency of our algorithm is (i) almost equal to the best state-of-the-art algorithm in computing WCC, and (ii) closer to (but not as efficient as) the DF-based algorithms in computing SSA programs. Moreover, our algorithm achieves the ultimate precision in computing WCC and SSA programs with respect to the inputs of these algorithms and obtains wider applicability in the WCC computation (handling nonterminating programs)- 19 July 2022
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 49 (4) , 1766-1781
The Duality in Computing SSA Programs and Control Dependency
Control dependency (CD) and Static Single Assignment (SSA) form are the basis of many program analyses, transformation, and optimization techniques, and these are implemented and used by modern compilers such as GCC and LLVM. Most state-of-the-art algorithms approximate these computations by using postdominator relations and dominance frontiers (DF) respectively for efficiency reasons which have been used for over three decades. Dominator-based SSA transformation and control dependencies exhibit a non-dual relationship. Recently, it has been shown that DF-based SSA computation is grossly imprecise, and Weak and Strong Control Closure (WCC and SCC) have wider applicability in capturing control dependencies than postdominator-based CD computation. Our main contribution in this article is the proof of duality between the generation of$\phi$ functions and the computation of weakly deciding (WD) vertices which are the most computationally expensive part of SSA program construction and WCC/SCC computation respectively. We have provided a duality theorem and its constructive proof by means of an algorithm that can compute both the$\phi$ functions and the WD vertices seamlessly. We have used this algorithm to compute SSA programs and WCC, and performed experiments on real-world industrial benchmarks. The practical efficiency of our algorithm is (i) almost equal to the best state-of-the-art algorithm in computing WCC, and (ii) closer to (but not as efficient as) the DF-based algorithms in computing SSA programs. Moreover, our algorithm achieves the ultimate precision in computing WCC and SSA programs with respect to the inputs of these algorithms and obtains wider applicability in the WCC computation (handling nonterminating programs)- Open Access
- 18 March 2022
- Published by Association for Computing Machinery (ACM)
- p. 65-76
On the computation of interprocedural weak control closure
Many program analysis techniques depend on capturing the control dependencies of the program. Most existing control dependence algorithms either compute intraprocedural control dependencies only, or they compute control dependence relations that are not precise in general including nonterminating systems. Weak control closure (WCC) subsumes all known nontermination insensitive control dependence relations, including those that are appropriate for nonterminating systems. In this paper, we provide the first formal development of an algorithm to compute the WCC for interprocedural programs capturing the weak form of interprocedural control dependencies. The method is widely applicable due to the generality of WCC. Theorems on the theoretical results of soundness, precision, and the worst-case complexity of our method are also included. We have compared our algorithm with a WCC computation algorithm based on a state-of-the-art interprocedural control dependence computation algorithm. The latter algorithm loses soundness, and we improve the precision by 15.21% on all our experimental benchmarks. This empirical evidence suggests that our algorithm is more effective for any client application of WCC requiring interprocedural program analysis.
- 18 March 2022
- Published by Association for Computing Machinery (ACM)
- p. 65-76
Open AccessOn the computation of interprocedural weak control closure
Many program analysis techniques depend on capturing the control dependencies of the program. Most existing control dependence algorithms either compute intraprocedural control dependencies only, or they compute control dependence relations that are not precise in general including nonterminating systems. Weak control closure (WCC) subsumes all known nontermination insensitive control dependence relations, including those that are appropriate for nonterminating systems. In this paper, we provide the first formal development of an algorithm to compute the WCC for interprocedural programs capturing the weak form of interprocedural control dependencies. The method is widely applicable due to the generality of WCC. Theorems on the theoretical results of soundness, precision, and the worst-case complexity of our method are also included. We have compared our algorithm with a WCC computation algorithm based on a state-of-the-art interprocedural control dependence computation algorithm. The latter algorithm loses soundness, and we improve the precision by 15.21% on all our experimental benchmarks. This empirical evidence suggests that our algorithm is more effective for any client application of WCC requiring interprocedural program analysis.
- Open Access
- 1 February 2022
- Published by Elsevier in Journal of Systems and Software
- Vol. 184
Efficient computation of minimal weak and strong control closure
- 1 February 2022
- Published by Elsevier in Journal of Systems and Software
- Vol. 184
Open AccessEfficient computation of minimal weak and strong control closure
- Open Access
- 31 December 2020
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 42 (4) , 1-56
Semantic Correctness of Dependence-based Slicing for Interprocedural, Possibly Nonterminating Programs
Existing proofs of correctness for dependence-based slicing methods are limited either to the slicing of intraprocedural programs [2, 39], or the proof is only applicable to a specific slicing method [4, 41]. We contribute a general proof of correctness for dependence-based slicing methods such as Weiser [50, 51], or Binkley et al. [7, 8], for interprocedural, possibly nonterminating programs. The proof uses well-formed weak and strong control closure relations, which are the interprocedural extensions of the generalised weak/strong control closure provided by Danicic et al. [13], capturing various nonterminating-insensitive and nontermination-sensitive control-dependence relations that have been proposed in the literature. Thus, our proof framework is valid for a whole range of existing control-dependence relations. We have provided a definition of semantically correct (SC) slice. We prove that SC slices agree with Weiser slicing, that deterministic SC slices preserve termination, and that nondeterministic SC slices preserve the nondeterministic behavior of the original programs.
- 31 December 2020
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 42 (4) , 1-56
Open AccessSemantic Correctness of Dependence-based Slicing for Interprocedural, Possibly Nonterminating Programs
Existing proofs of correctness for dependence-based slicing methods are limited either to the slicing of intraprocedural programs [2, 39], or the proof is only applicable to a specific slicing method [4, 41]. We contribute a general proof of correctness for dependence-based slicing methods such as Weiser [50, 51], or Binkley et al. [7, 8], for interprocedural, possibly nonterminating programs. The proof uses well-formed weak and strong control closure relations, which are the interprocedural extensions of the generalised weak/strong control closure provided by Danicic et al. [13], capturing various nonterminating-insensitive and nontermination-sensitive control-dependence relations that have been proposed in the literature. Thus, our proof framework is valid for a whole range of existing control-dependence relations. We have provided a definition of semantically correct (SC) slice. We prove that SC slices agree with Weiser slicing, that deterministic SC slices preserve termination, and that nondeterministic SC slices preserve the nondeterministic behavior of the original programs.
- 1 August 2020
- Published by Elsevier in Journal of Systems and Software
- Vol. 166
More precise construction of static single assignment programs using reaching definitions
- 1 August 2020
- Published by Elsevier in Journal of Systems and Software
- Vol. 166
More precise construction of static single assignment programs using reaching definitions
- 1 January 2020
- Published by Springer Nature
- p. 200-222
Simple and Efficient Computation of Minimal Weak Control Closure
- 1 January 2020
- Published by Springer Nature
- p. 200-222
Simple and Efficient Computation of Minimal Weak Control Closure