Formal Verification of Transcompiled Mobile Applications Using First-Order Logic

Kaydedildi:
Detaylı Bibliyografya
Yayımlandı:Technologies vol. 13, no. 12 (2025), p. 580-599
Yazar: Muhammad Ahmad Ahmad
Diğer Yazarlar: Mahitap, Ayman, Elhossany, Samer A, Walaa, Medhat, Selim Sahar, Zayed Hala, Yousef, Ahmed H, Jantsch Axel, Elaraby Nahla
Baskı/Yayın Bilgisi:
MDPI AG
Konular:
Online Erişim:Citation/Abstract
Full Text + Graphics
Full Text - PDF
Etiketler: Etiketle
Etiket eklenmemiş, İlk siz ekleyin!

MARC

LEADER 00000nab a2200000uu 4500
001 3286357355
003 UK-CbPIL
022 |a 2227-7080 
024 7 |a 10.3390/technologies13120580  |2 doi 
035 |a 3286357355 
045 2 |b d20250101  |b d20251231 
084 |a 231637  |2 nlm 
100 1 |a Muhammad Ahmad Ahmad  |u Center for Informatics Science (CIS), School of Information Technology and Computer Science, Nile University, 26th of July Corridor, Sheikh Zayed City 12588, Egypt; ah.mohammed@nu.edu.eg (A.A.M.); m.ayman2134@nu.edu.eg (M.A.); s.ahmed2297@nu.edu.eg (S.A.E.); wmedhat@nu.edu.eg (W.M.); sselim@nu.edu.eg (S.S.) 
245 1 |a Formal Verification of Transcompiled Mobile Applications Using First-Order Logic 
260 |b MDPI AG  |c 2025 
513 |a Journal Article 
520 3 |a 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. 
653 |a Behavior 
653 |a Software 
653 |a Similarity 
653 |a Java 
653 |a Programming languages 
653 |a Semantics 
653 |a Bias 
653 |a Verification 
653 |a Large language models 
653 |a Syntax 
653 |a Applications programs 
653 |a Logic 
653 |a Equivalence 
653 |a Axioms 
653 |a Mobile computing 
653 |a Codes 
653 |a Software reuse 
653 |a Evaluation 
653 |a Case studies 
653 |a Computer programming 
700 1 |a Mahitap, Ayman  |u Center for Informatics Science (CIS), School of Information Technology and Computer Science, Nile University, 26th of July Corridor, Sheikh Zayed City 12588, Egypt; ah.mohammed@nu.edu.eg (A.A.M.); m.ayman2134@nu.edu.eg (M.A.); s.ahmed2297@nu.edu.eg (S.A.E.); wmedhat@nu.edu.eg (W.M.); sselim@nu.edu.eg (S.S.) 
700 1 |a Elhossany, Samer A  |u Center for Informatics Science (CIS), School of Information Technology and Computer Science, Nile University, 26th of July Corridor, Sheikh Zayed City 12588, Egypt; ah.mohammed@nu.edu.eg (A.A.M.); m.ayman2134@nu.edu.eg (M.A.); s.ahmed2297@nu.edu.eg (S.A.E.); wmedhat@nu.edu.eg (W.M.); sselim@nu.edu.eg (S.S.) 
700 1 |a Walaa, Medhat  |u Center for Informatics Science (CIS), School of Information Technology and Computer Science, Nile University, 26th of July Corridor, Sheikh Zayed City 12588, Egypt; ah.mohammed@nu.edu.eg (A.A.M.); m.ayman2134@nu.edu.eg (M.A.); s.ahmed2297@nu.edu.eg (S.A.E.); wmedhat@nu.edu.eg (W.M.); sselim@nu.edu.eg (S.S.) 
700 1 |a Selim Sahar  |u Center for Informatics Science (CIS), School of Information Technology and Computer Science, Nile University, 26th of July Corridor, Sheikh Zayed City 12588, Egypt; ah.mohammed@nu.edu.eg (A.A.M.); m.ayman2134@nu.edu.eg (M.A.); s.ahmed2297@nu.edu.eg (S.A.E.); wmedhat@nu.edu.eg (W.M.); sselim@nu.edu.eg (S.S.) 
700 1 |a Zayed Hala  |u Faculty of Computer and Artificial Intelligence, Department of Information Systems, Benha University, Banha 13511, Egypt; hala.zayed@eui.edu.eg 
700 1 |a Yousef, Ahmed H  |u El Sewedy University of Technology, Kilo 51 Cairo Ismailia Road, Cairo 44629, Egypt; ahmed.hassan@sut.edu.eg 
700 1 |a Jantsch Axel  |u Institute of Computer Technology, Technical University of Vienna (TU Wien), Gusshausstrasse 27–29, 1040 Vienna, Austria; nahla.el-araby@tuwien.ac.at 
700 1 |a Elaraby Nahla  |u Institute of Computer Technology, Technical University of Vienna (TU Wien), Gusshausstrasse 27–29, 1040 Vienna, Austria; nahla.el-araby@tuwien.ac.at 
773 0 |t Technologies  |g vol. 13, no. 12 (2025), p. 580-599 
786 0 |d ProQuest  |t Materials Science Database 
856 4 1 |3 Citation/Abstract  |u https://www.proquest.com/docview/3286357355/abstract/embedded/6A8EOT78XXH2IG52?source=fedsrch 
856 4 0 |3 Full Text + Graphics  |u https://www.proquest.com/docview/3286357355/fulltextwithgraphics/embedded/6A8EOT78XXH2IG52?source=fedsrch 
856 4 0 |3 Full Text - PDF  |u https://www.proquest.com/docview/3286357355/fulltextPDF/embedded/6A8EOT78XXH2IG52?source=fedsrch