[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-703179-105":59,"doc-detail-703179-en":130,"doc-similar-703179":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","static-checking-of-regular-language-types-regular-language-string-type-checker","Static Checking of Regular Language Types - Regular language string type checker","","Type systems help find bugs before production, but errors in string-manipulating code are often missed when string values have unexpected structure. This work presents FLAT-Checker, a static type checker for regular language string types in Python. Programmers annotate each string variable, argument, or return value with a regular expression describing the allowed strings. FLAT-Checker performs semantic-aware type inference and type narrowing, guaranteeing freedom from substring-not-found errors and outperforming several SMT solvers on Python datasets.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/static-checking-of-regular-language-types-regular-language-string-type-checker/703179/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/static-checking-of-regular-language-types-regular-language-string-type-checker/703179.png","ImageObject",300,407,{"name":92,"@type":93},"Rainbow Cat","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-14","2026-11-13",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What limitation of current type systems motivates this paper?","Question",{"text":112,"@type":113},"Traditional type systems use a single coarse string type, so they cannot express or check the latent structure of strings. As a result, errors like substring-not-found exceptions are difficult to catch before production.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does FLAT-Checker specify string types?",{"text":117,"@type":113},"FLAT-Checker lets programmers annotate each string variable, argument, or return value with a regular expression representing the set of allowed strings for that value.",{"name":119,"@type":110,"acceptedAnswer":120},"What guarantees does FLAT-Checker aim to provide?",{"text":121,"@type":113},"With regular-language string type annotations and semantic-aware inference, FLAT-Checker can ensure that well-typed programs are free of substring-not-found errors.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},703179,1794562106,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},962090769181,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Static Checking of Regular Language Types  \nFENGMIN ZHU, CISPA Helmholtz Center for Information Security, Germany MICHAEL SCHRÖDER, TU Wien, Austria  \nANDREAS ZELLER, CISPA Helmholtz Center for Information Security, Germany  \nType systems in programming languages are among the most effective techniques to discover bugs well before production. However, there is one important subdomain of data types in which errors are hardly caught: strings. Indeed, if a string can have unexpected or invalid contents, type checkers can hardly detect this, leading to potential bugs such as runtime substring-not-found errors or vulnerabilities such as SQL injection. In theory, string properties could be expressed and checked using refinement types. In practice, though, existing refinement type systems hardly support strings.  \nIn this paper, we present the first static type checker for regular language string types. Our FLAT-Checker prototype targets string-manipulating programs in Python. For every string variable, argument, or return value, it allows specifying its language (= the set ofall possible strings) as a regular expression. FLAT-Checker then statically checks these types, ensuring, for instance, that a well-typed program is free of substringnot-found errors. At the heart of FLAT-Checker are semantic-aware type inference for common string operations, together with type narrowing for higher precision of type inference. The advent of tools such as FLAT-Checker means that programmers can specify and verify string structures and properties as easily as they do for elementary types or arrays.  \nOn a dataset consisting of 206 Python string-manipulating programs, with a reasonable amount of user annotations, FLAT-Checker successfully type-checked all of them. It also outperformed four SMT solvers, including two state-of-the-art string solvers, in terms of solvability and efficiency.  \nCCS Concepts: • Theory of computation → Regular languages; Constraint and logic programming; • Software and its engineering → Formal software verification; Semantics.  \nAdditional Key Words and Phrases: Regular languages, type inference, refinement types, static string analysis, abstract semantics, SMT solving  \nACM Reference Format:  \nFengmin Zhu, Michael Schröder, and Andreas Zeller. 2025. Static Checking of Regular Language Types. Proc. ACM Softw. Eng. 1, 1, Article 1 (January 2025), 21 pages. [https://doi.org/XXXXXXX.XXXXXXX](https://doi.org/XXXXXXX.XXXXXXX)  \n1 Introduction  \nType systems in programming languages are among the most effective and efficient techniques to discover bugs well before production. While typical type checkers would quickly identify type mismatches between types such as Booleans, numbers, or data types, modern refinement type systems [Freeman and Pfenning 1991] allow programmers to encode additional semantic constraints in types, making type checking play the role of a lightweight program verifier. Notably, the concept of Liquid Types [Rondon et al. 2008] in Haskell [Jhala 2014], TypeScript [Vekris et al. 2016], Java [Gamboa et al. 2023], Rust [Lehmann et al. 2023], and more, shines in reasoning about programs manipulating integers, bit vectors, arrays, algebraic data types, and even Rust traits.  \nHowever, there is one important subset of data types where errors are hardly caught: strings. While strings are ubiquitous in modern software, errors related to malformed or invalid string  \nAuthors’ Contact Information: Fengmin Zhu, [fengmin.zhu@cispa.de](fengmin.zhu@cispa.de), CISPA Helmholtz Center for Information Security, Saarbrücken, Saarland, Germany; Michael Schröder, [michael.schroeder@tuwien.ac.at](michael.schroeder@tuwien.ac.at), TU Wien, Vienna, Austria; Andreas Zeller, [zeller@cispa.de](zeller@cispa.de), CISPA Helmholtz Center for Information Security, Saarbrücken, Saarland, Germany.  \n© 2025 Copyright held by the owner/author(s) . Publication rights licensed to ACM.  \nThis is the author’s version of the work. It is posted here","cbCaigHN8o6jCRA3","https://ap.wps.com/l/cbCaigHN8o6jCRA3","pdf",776326,21,"English","# Introduction\n## Problem: Missing string errors in traditional type systems\n## Approach: FLAT-Checker for regular-language string types\n## Prototype results and evaluation","[{\"question\":\"What limitation of current type systems motivates this paper?\",\"answer\":\"Traditional type systems use a single coarse string type, so they cannot express or check the latent structure of strings. As a result, errors like substring-not-found exceptions are difficult to catch before production.\"},{\"question\":\"How does FLAT-Checker specify string types?\",\"answer\":\"FLAT-Checker lets programmers annotate each string variable, argument, or return value with a regular expression representing the set of allowed strings for that value.\"},{\"question\":\"What guarantees does FLAT-Checker aim to provide?\",\"answer\":\"With regular-language string type annotations and semantic-aware inference, FLAT-Checker can ensure that well-typed programs are free of substring-not-found errors.\"}]","Static Checking of Regular Language Types - Regular language string type checker | PDF",53,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/d2a6c25c9bddfed15f4a23ea4a4d532d.webp",983,1415,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/39497ff50a20e911f34d23a6576248e1.webp",982,1414,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/bd991c74338253c985361c57ea6900f8.webp",981,1412,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/7e876c6ceecc5f14792f75d35249a65e.webp",980,1411,{"list":163,"token":66},[164,171,178,185,192,199,206,213,220,227],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":40,"create_tm":170},85431,"Syntax Repair as Language Intersection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809312218/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=p2nHbRZyuGVTXRZlT0h%2BCodSZ3E%3D","syntax-repair-as-language-intersection",17,1784203475,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},83597,"Kani: A Model Checker for Rust","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808871230/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=QngvEO%2FoDoPpwocW6jd0A%2BZ3xCs%3D","kani-a-model-checker-for-rust",35,1784189102,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=vC3T6RfpjYOvXQP4URQl%2Fg6Mg0M%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=GbWgcvk63RFC%2FyhAnULqCFHltbw%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6933,1776136851,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":40,"create_tm":198},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=VRBB6s1HQPovwOY31k%2FNhE6bEiY%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5866,1788211707,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":40,"create_tm":205},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=5lNbrI0i6nlxA4igSQaNmG80A0w%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=3k4%2BBQD7IrVjKAkPVSh%2BO3zbq5E%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=SeHUeFaGdy%2FRcVRWSgYL3cm3JmY%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":40,"create_tm":226},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=DyFJywoU9eD3xl4Xsuej1sYKhEY%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",886,1786011673,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":232,"category_name":40,"create_tm":233},117724,"The Trading Edge - Vivek Bajaj","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834707110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=O6A9c14lBzSWXExMkbKLTq%2BYSQ0%3D","the-trading-edge-vivek-bajaj",874,1785678693]