[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655838-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-655838-en":130,"doc-similar-655838":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","using-datalog-with-binary-decision-diagrams-for-program-analysis-paper","Using Datalog with Binary Decision Diagrams for Program Analysis - Paper","","Many program analyses can be expressed in Datalog, enabling concise declarative specifications and easier reuse or composition of analysis components. Prior declarative implementations often lag behind traditional approaches and face scaling challenges on large programs. This paper presents bddbddb, a BDD-based deductive database that supports Datalog with stratiﬁed negation, totally-ordered finite domains, and comparison operators. Relations are efficiently represented with BDDs, yielding fast execution where runtime depends on structure size rather than tuple count. Results include a context-insensitive points-to analysis running about twice as fast as a carefully hand-tuned baseline, and the ability to address previously unsolved problems such as context-sensitive pointer analysis for large programs.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/using-datalog-with-binary-decision-diagrams-for-program-analysis-paper/655838/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/using-datalog-with-binary-decision-diagrams-for-program-analysis-paper/655838.png","ImageObject",300,407,{"name":42,"@type":43},"supergirl","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is bddbddb and what does it implement?","Question",{"text":62,"@type":63},"bddbddb is a BDD-Based Deductive DataBase that implements the declarative language Datalog with stratiﬁed negation, totally-ordered finite domains, and comparison operators.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Why are binary decision diagrams important for performance in bddbddb?",{"text":67,"@type":63},"BDDs represent large relations compactly, and BDD operations take time proportional to the data-structure size rather than the number of tuples, enabling fast execution.",{"name":69,"@type":60,"acceptedAnswer":70},"What program-analysis results does the paper report?",{"text":71,"@type":63},"A context-insensitive points-to analysis implemented with bddbddb runs about twice as fast as a carefully hand-tuned version, and the approach enables solving context-sensitive pointer analysis for large programs.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},655838,1792964176,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},962088121634,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Using Datalog with Binary Decision Diagrams for Program Analysis  \nJohn Whaley, Dzintars Avots, Michael Carbin, and Monica S. Lam  \nComputer Science Department  \nStanford University  \nStanford, CA 94305, USA  \nfjwhaley; dzin ; mcarbin ; lamg@cs:stanford:edu  \nAbstract. Many problems in program analysis can be expressed naturally and concisely in a declarative language like Datalog. This makes it easy to specify new analyses or extend or compose existing analyses. However, previous implementations of declarative languages perform poorly compared with traditional implementations. This paper describes bddbddb, a BDD-Based Deductive DataBase, which implements the declarative language Datalog with stratiﬁed negation, totally-ordered ﬁnite domains and comparison operators. bddbddb uses binary decision diagrams (BDDs) to efﬁciently represent large relations. BDD operations take time proportional to the size of the data structure, not the number of tuples in a relation, which leads to fast execution times. bddbddb is an effective tool for implementing a large class of program analyses. We show that a context-insensitive points-to analysis implemented with bddbddb is about twice as fast as a carefully hand-tuned version. The use of BDDs also allows us to solve heretofore unsolved problems, like context-sensitive pointer analysis for large programs.  \n1 Introduction  \nMany program analyses can be expressed naturally and easily in logic programming languages, such as Prolog and Datalog [14, 29, 36] . Expressing a program analysis declaratively in a logic programming language has a number of advantages. First, analysis implementation is greatly simpliﬁed. Analyses expressed in a few lines of Datalog can take hundreds to thousands of lines of code in a traditional language. By automatically deriving the implementation from a Datalog speciﬁcation, we introduce fewer errors. Second, because all analysis information is expressed in a uniform manner, it is easy to use analysis results or to combine analyses. Finally, optimizations of Datalog can be applied to all analyses expressed in the language.  \nHowever, implementations using logic programming systems are often slower than traditional implementations and can have difﬁculty scaling to large programs. Reps reported an experiment using Corel, a general-purpose logic programming system, to implement on-demand interprocedural reaching deﬁnitions analysis [29] . It was found that the logic programming approach was six times slower than a native C implementation. Dawson et al. used Prolog to perform groundness analysis on logic programs and strictness analysis on functional programs [14] . Using the XSB system, which has better efﬁciency than Corel [31], they were able to analyze a number of programs efﬁciently. However, the programs they analyzed were small—under 600 lines of code.  \nOther recent work by Liu and Stoller on efﬁcient Datalog appears to have promise, but they do not present any performance results [21] .  \nOur system for specifying program analyses using Datalog has successfully analyzed programs with tens of thousands of lines of source code, and has regularly performed faster than handcoded analyses. We will discuss our experience developing points-to analyses for C and for Java, which we compare with earlier handcoded versions. We will also discuss the results of using a security analysis and an external lock analysis which were speciﬁed using the same system.  \n1.1 Datalog using BDDs  \nWe have developed a system called bddbddb, which stands for BDD-Based Deductive DataBase. bddbddb is a solver for Datalog with stratiﬁed negation, totally-ordered ﬁnite domains and comparison operators. bddbddb represents relations using binary decision diagrams, or BDDs. BDDs are a novel data structure that were traditionally used for hardware veriﬁcation and model checking, but have since spread to other areas. The original paper on BDDs is one of the most cited papers in computer science [8] ","cbCaijcbm03eR7fK","https://ap.wps.com/l/cbCaijcbm03eR7fK","pdf",202717,22,"English","# Introduction\n## Datalog using BDDs","[{\"question\":\"What is bddbddb and what does it implement?\",\"answer\":\"bddbddb is a BDD-Based Deductive DataBase that implements the declarative language Datalog with stratiﬁed negation, totally-ordered finite domains, and comparison operators.\"},{\"question\":\"Why are binary decision diagrams important for performance in bddbddb?\",\"answer\":\"BDDs represent large relations compactly, and BDD operations take time proportional to the data-structure size rather than the number of tuples, enabling fast execution.\"},{\"question\":\"What program-analysis results does the paper report?\",\"answer\":\"A context-insensitive points-to analysis implemented with bddbddb runs about twice as fast as a carefully hand-tuned version, and the approach enables solving context-sensitive pointer analysis for large programs.\"}]","Using Datalog with Binary Decision Diagrams for Program Analysis - Paper | PDF",55,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/605fb3b8b0c2d2329985a565b12258ec.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6d12931b7bbf2fe83e7402e90dfa42aa.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9c6fb03e33cb30c8babeb6ee44938a9e.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/da0ad4771a5962c2f1509341e80f5845.webp",980,1268,{"list":163,"token":11},[164,171,178,185,191,198,204,210,217,224],{"doc_id":165,"doc_title":166,"file_type":167,"home_preview_img_url":168,"slug":169,"view_count":106,"category_name":29,"create_tm":170},135038,"MultiLabeled Depression English 57000 Tweet negation words","xlsx","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229861422849/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=Jtn6X1O360EmU3HMoUGZBRCKVag%3D","multilabeled-depression-english-57000-tweet-negation-words",1787303591,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},179349,"BDD-A23398","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876541801/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=YVmuJAhyWo8ar%2FCIlt4ZbP9%2Bcqk%3D","bdd-a23398",18,1788336494,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":29,"create_tm":184},505126,"Extending Structured Declarative Language with Constraint Programming via MiniZinc","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932251602/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=QO2BphiA5e5ZvtI79HeWA3qJQCA%3D","extending-structured-declarative-language-with-constraint-programming-via-minizinc",13,1791091095,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":30,"category_name":29,"create_tm":190},687348,"Heap Abstraction via Early-Confluent Object Merging for Pointer Analysis - Research Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001258266/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=T3DlRDgVGMZhtfy3ARf56jfAroM%3D","heap-abstraction-via-early-confluent-object-merging-for-pointer-analysis-research-paper",1794083044,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":29,"create_tm":197},83538,"Petrify: Petri-net Based Analysis of Concurrency Properties in Java Bytecode","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808986446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=4wmgovtlNBPBHCCjOVCdYos%2FcKM%3D","petrify-petri-net-based-analysis-of-concurrency-properties-in-java-bytecode",17,1784188695,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":101,"category_name":29,"create_tm":203},336610,"PD-1/LAG-3 co-signaling proﬁling uncovers CBL ubiquitin ligases as key immunotherapy targets","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910153607/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=n05%2BdXX6aJUMAZ2wuaUlFgFgtAg%3D","pd-1lag-3-co-signaling-proling-uncovers-cbl-ubiquitin-ligases-as-key-immunotherapy-targets",1790015848,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":30,"category_name":29,"create_tm":209},680691,"Probabilistic Analysis of an Ancient Undeciphered Script","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997740644/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=e2%2Fy8wY%2B3P0YTxAFEn62BkaU0F4%3D","probabilistic-analysis-of-an-ancient-undeciphered-script",1793919299,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},86317,"Paradoxes of Game Theoretic Equilibria and Price of Anarchy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809517827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=AXHGFmuvm66lSTGTZkfsGkstfg0%3D","paradoxes-of-game-theoretic-equilibria-and-price-of-anarchy",33,1784210449,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":29,"create_tm":223},31910,"LLM-Driven Automated Penetration Testing Architectures Benchmarks and Safety Considerations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229753083182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=SU1JHzOWAn12h7LwPcNQU7JdM1s%3D","llm-driven-automated-penetration-testing-architectures-benchmarks-and-safety-considerations",49,1780434152,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":29,"create_tm":230},268915,"Biliteracy Trajectories: Supporting literacy development in two languages - Whitepaper Final","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229898239046/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=eaCig6NqoOlgjxZIR0gZ%2BLVZIBE%3D","biliteracy-trajectories-supporting-literacy-development-in-two-languages-whitepaper-final",21,1789438969]