Ahmed H Yousef

Prof. Dr. Ahmed H Yousef


Research Focus & Metrics

Academic Career Length

2Years (2025-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
29 April 2025 in Applied System Innovation
Verified
Journal Article
Open access
PDF file
AMAmira Tarek Mahmoud
Amira Tarek Mahmoud
Walaa Mohamed Medhat AbdelHamid AsalWalaa Mohamed Medhat AbdelHamid Asal
Walaa Mohamed Medhat AbdelHamid Asal
Sahar Selim SoussaSahar Selim Soussa
Sahar Selim Soussa
HZHala Zayed
Hala Zayed
Ahmed H YousefAhmed H Yousef
Ahmed H Yousef
Nahla El-ArabyNahla El-Araby
Nahla El-Araby
Code-to-code translation, a critical domain in software engineering, increasingly utilizes trans-compilers to translate between high-level languages. Traditionally, the fidelity of such translations has been evaluated using the BLEU score, which predominantly measures token similarity between the generated output and the ground truth. However, this metric falls short of assessing the methodologies underlying the translation processes and only evaluates the translations that are tested. To bridge this gap, this paper introduces an innovative architecture, “TC-Verifier”, to formally employ the Uppaal Model-checker to verify trans-compiler-based code translators. We applied the proposed architecture to a trans-compiler translating between Swift and Java, providing insights into the verified and unverified aspects of the translation process. Our findings illuminate the strengths and limitations of using Model-checking for formal verification in code translation. Notably, the examined trans-compiler reached a verification success rate of 50.74% for the grammar rules and productions modeled. This study underscores the gaps in trans-compiler-based translations and suggests that these gaps could potentially be addressed by integrating Large Language Models (LLMs) in future work.

10 December 2025 in Technologies
Verified
Journal Article
Open access
PDF file
Ahmad Ahmad Ahmad MuhammadAhmad Ahmad Ahmad Muhammad
Ahmad Ahmad Ahmad Muhammad
MAMahitab Ayman
Mahitab Ayman
SESamer Ahmed Elhossiney
Samer Ahmed Elhossiney
Walaa Mohamed Medhat AbdelHamid AsalWalaa Mohamed Medhat AbdelHamid Asal
Walaa Mohamed Medhat AbdelHamid Asal
Sahar Selim SoussaSahar Selim Soussa
Sahar Selim Soussa
Nahla El-ArabyNahla El-Araby
Nahla El-Araby
The increasing interest in automated code conversion and transcompilation—driven by the need to support multiple platforms efficiently—has raised new challenges in verifying that translated codes preserve the intended behaviors of the originals. Although it has not yet been widely adopted, transcompilation offers promising applications in software reuse and cross-platform migration. With the growing use of Large Language Models (LLMs) in code translation, where internal reasoning remains inaccessible, verifying the equivalence of their generated outputs has become increasingly essential. However, existing evaluation metrics—such as BLEU and CodeBLEU, which are commonly used as baselines in transcompiler evaluation—primarily measure syntactic similarity, even though this does not guarantee semantic correctness. This syntactic bias often leads to misleading evaluations where structurally different but semantically equivalent code is penalized. This syntactic bias often leads to misleading evaluations, where structurally different but semantically equivalent code is penalized. To address this limitation, we propose a formal verification framework based on equivalence checking using First-Order Logic (FOL). The approach models core programming constructs—such as loops, conditionals, and function calls—that function as logical axioms, enabling equivalence to be assessed at the behavioral level rather than simply by their textual similarity. We initially used the Z3 solver to manually encode Swift and Java code into FOL. To improve scalability and automation, we later integrated ANTLR to parse and translate both the source and transcompiled codes into logical representations. Although the framework is language-agnostic, we demonstrate its effectiveness through a case study of Swift-to-Java transcompilation. The experimental results demonstrated that our method effectively identifies semantic equivalence, even when syntax differs significantly. Our method achieves an average semantic accuracy of 86.1%, compared to BLEU’s syntactic accuracy of 64.45%. This framework bridges the gap between code translation and formal semantic verification. These results highlight the potential for formal equivalence checking to serve as a more reliable validation method in code translation tasks, enabling more trustworthy cross-language code conversion.