程序设计语言
查看 近期 文章
显示 2026年11月26日 星期四 的新公告
- [1] arXiv:2611.33817 [中文pdf(下批处理), 原文pdf, 其他]
-
标题: SentryWard: Formal Verification of Warp-Specialized GPU KernelsMengdi Wu, Sreeram Vennam, Stephen Mell, Ziwei Zhou, Advay Kadam, Xinhao Cheng, Francois Costa, Alex Aiken, Oded Padon, Zhihao Jia主题: 程序设计语言 (cs.PL)
Modern GPU kernels overlap asynchronous data movement, computation on general-purpose cores (e.g., CUDA cores), and computation on specialized cores (e.g., tensor cores) using warp specialization. These asynchronous-overlap optimizations introduce complex synchronization requirements, where incorrect ordering of asynchronous operations can lead to data races, premature resource reuse, and incorrect results. Testing alone cannot guarantee correctness because such errors are nondeterministic and may only manifest in rare execution schedules, and existing GPU formal verification techniques have limited support for warp-specialized kernels. We present SentryWard, a framework for formally verifying warp-specialized GPU kernels. SentryWard integrates synchronization verification, data-race and resource-lifetime analysis, and functional equivalence checking. The key idea is to establish that synchronization induces the same ordering constraints across all possible execution schedules. SentryWard extends this well-synchronization analysis to modern GPU barriers with asynchronous transaction tracking and derives a schedule-independent happens-before graph. It then uses this graph to verify memory safety and construct symbolic output expressions for functional equivalence checking. While SentryWard generally assumes tensor shapes and kernel launch configurations are given and unrolls loops, it uses compact representations of repeated structures across threads and tensor computations to improve scalability. SentryWard is publicly available at https://github.com/gpu-verifier/sentryward.
- [2] arXiv:2611.34372 [中文pdf(下批处理), 原文pdf, 其他]
-
标题: An Efficient and Uniform CSP Solution Generator Generator评论: Extended version of a paper accepted at CP 2025. Includes additional material and expanded discussions主题: 程序设计语言 (cs.PL)
Constraint-based random testing is a powerful technique which aims at generating random test cases to verify functional properties of a program. Its objective is to determine whether a function satisfies a given property for every possible input. This approach requires firstly defining the property to satisfy, then secondly to provide a generator of inputs able to feed the program with the inputs generated. Besides, function inputs often need to satisfy certain constraints to ensure the function operates correctly, which makes the crafting of such a generator a hard task. In this paper, we are interested in the problem of manufacturing a uniform and efficient generator for the solutions of a CSP. In order to do that, we propose a specialized solving method that produces a well-suited representation for random sampling. Our solving method employs a dedicated propagation scheme based on the hypergraph representation of a CSP, and a custom split heuristic called birdge-first that emphasizes the interests of our propagation scheme. The generators we build are general enough to handle a wide range of use-cases. They are moreover uniform by construction, iterative and self-improving. We present a prototype built upon the AbSolute constraint solving library and demonstrate its performances on several realistic examples.
新提交(显示 2 条)
- [3] arXiv:2611.33490 (交叉列表自 cs.PF) [中文pdf(下批处理), 原文pdf, 其他]
-
标题: Cross-Layer Characterization and AI-Assisted Diagnosis of C-to-Rust Performance主题: 性能 (cs.PF); 程序设计语言 (cs.PL); 软件工程 (cs.SE)
Migrating C code to Rust can significantly improve software security, but understanding the performance implications of such migrations remains challenging. While Rust is often claimed to match C's performance, runtime safety checks, compiler optimizations, and hardware microarchitecture interact in ways that complicate performance diagnosis. We first conduct a systematic cross-layer characterization of 12 benchmarks comprising C implementations and their Rust counterparts. Our study reveals that runtime safety checks do not necessarily dominate performance overhead, as compiler and microarchitectural optimizations often mitigate their costs. Across 8 of the 12 benchmarks, at least one Rust implementation performs within 10% of its C counterpart or outperforms it. Motivated by these findings, we introduce FerroScope, an AI-assisted performance debugger that integrates source-level analysis, compiler optimization remarks, dynamic instruction traces, and hardware performance counters to diagnose performance differences between C and Rust. FerroScope reproduces our manual findings while providing more precise explanations in several cases, including identifying compiler optimizations inhibited by redundant bounds checks. Guided by these diagnoses, we develop an LLVM compiler pass that hoists redundant bounds checks through guarded loop versioning while preserving Rust's panic behavior. The pass enables downstream compiler optimizations, including loop unrolling and conditional-move conversion, reducing Selection Sort's overhead from 2.95x to 1.00x and improving Merge Sort from 1.43x to 0.91x relative to C. Together, our results demonstrate how cross-layer performance characterization and AI-assisted diagnosis can guide safety-preserving compiler optimizations for efficient C-to-Rust migration.
交叉列表(显示 1 条)
- [4] arXiv:2603.22463 (已替换) [中文pdf, 原文pdf, 其他]
-
标题: Parallelizable Feynman-Kac Models for Universal Probabilistic Programming评论: arXiv admin note: substantial text overlap with arXiv:2509.14092主题: 程序设计语言 (cs.PL)
We study provably correct and efficient instantiations of Sequential Monte Carlo (SMC) inference in the context of formal operational semantics of Probabilistic Programs (PPs). We focus on universal PPs featuring sampling from arbitrary measures and conditioning/reweighting in unbounded loops. We first equip Probabilistic Program Graphs (PPGs), an automata-theoretic description format of PPs, with an expectation-based semantics over infinite execution traces, which also incorporates trace weights. We then prove a finite approximation theorem that provides bounds to this semantics based on expectations taken over finite, fixed-length traces. This enables us to frame our semantics within a Feynman-Kac (FK) model, and ensures the consistency of the Particle Filtering (PF) algorithm, an instance of SMC, with respect to our semantics. Building on these results, we introduce VPF, a vectorized version of the PF algorithm tailored to PPGs and our semantics. Experiments conducted with a proof-of-concept implementation of VPF show very promising results compared to state-of-the-art PP inference tools.
- [5] arXiv:2607.18821 (已替换) [中文pdf(下批处理), 原文pdf, 其他]
-
标题: VirtualSet: Receiver-Indexed Authority Compilation for Query-to-Action Continuity in Executable Ontologies评论: 72 pages, 2 figures, 15 tables, 2 algorithms, and 2 code listings. Supplementary material: 60 pages主题: 程序设计语言 (cs.PL)
An ontology edit can preserve a query answer while replacing the evidence that justified an action on it. We study when the original approval remains valid. VirtualSet compiles the evaluated query and a trusted grant into a single-use capability. The query result fixes the approved objects; policy grants actions on their type. Each field or link is recorded under its owning receiver type. For conjunctive filters over stable, single-valued relations, preserving the observed paths and target rows suffices for current target membership at batch entry. In 32 Java cases requiring recorded evidence, finite paths admitted 24 continuations versus 16 for a type-level closure. We then issued approvals before controlled changes in procurement and laboratory ontologies and presented the original credentials afterward. In all 40 scenarios, the post-change selections returned the same object identifiers as at issuance. With the same Java authorization layer, typed navigation and SQL over a stable view each retained 22 original approvals and blocked 18. Retargeting the second relation invalidated approvals that traversed it while preserving those based only on the first. By tracing the receiver type at each access in a validated query, VirtualSet distinguishes approvals for the same objects according to the evidence each approval depends on.
- [6] arXiv:2607.19693 (已替换) [中文pdf(下批处理), 原文pdf, 其他]
-
标题: Generic Constraints Projection: An Exact Criterion for Preserving Type Comparison Reports under Record Width Extension评论: 51 pages, 3 figures, 27 tables, 1 algorithm主题: 程序设计语言 (cs.PL)
A release can preserve a program's type and output while changing a comparison cited in an approved report. A publisher needs to know whether the original approval covers the new release's report under the same identifier and which source comparisons yield different reports. Reconstruction answers these questions after projection. We study them in Generic Constraints Projection for a pure record language whose comparison stops at type equality. For a fixed source export over ground types built from immutable records, primitives, top and bottom, we prove an exact criterion under record width extension. Two independently projected valid certificates yield the same report up to session renaming exactly when their read bindings agree and the actual type at each old stopping position is unchanged. With read bindings fixed, we trace these positions to input paths. If each old record admits a fresh field name, the resulting subtree equalities form the unique irredundant conjunction on old input-record paths for whole-report preservation. For completed mixed edits, a separate criterion uses the new valid certificate to check required types, old leaf endpoints and the surplus fields that keep old branches open. Across two consecutive API Extractor release windows, one published member addition changed an interface yet preserved both comparisons in our mapper. Given the old export, input types and fixed read bindings, occurrence-specific paths identify, before reprojection, exactly which source comparisons would yield different reports after proposed field additions.
- [7] arXiv:2610.35999 (已替换,交叉列表自 cs.OS) [中文pdf(下批处理), 原文pdf, 其他]
-
标题: safeL4: Rethinking Safe-Language-Based Single Address Space MicrokernelsZheyuan Xu, Xiaobei Zhang, Zihan Li, Zekai Nie, Guangtao Zhu, Zhuang Lu, Qianying Zhang, Shijun Zhao, Haibo Chen, Rui Hou评论: Accepted to the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2027)期刊参考: In Proceedings of the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1 (ASPLOS '27), Pages 821 - 838, 2027主题: 操作系统 (cs.OS); 密码学与安全 (cs.CR); 程序设计语言 (cs.PL)
Microkernels provide good features such as high security, safety, and flexibility, but their reliance on hardware-based isolation leads to heavy performance overhead, limiting their widespread adoption. Although constructing single-address-space microkernels based on safe language-based isolation is a promising approach to addressing the performance issue, this approach still faces challenges in maintaining the principle of minimality and enforcing capability-based, fine-grained access control over system resources. We propose safeL4, an approach to constructing microkernels based on safe languages. It guarantees minimality through low-level abstractions for unsafe operations, and implements a capability system based on the safe language's object capabilities to achieve fine-grained access control over all operations on system resources. We implement a prototype system in Rust, and our evaluation results show that the primitives provided by safeL4 are, on average, 1.9$\times$ faster than those of seL4.
- [8] arXiv:2611.31724 (已替换) [中文pdf(下批处理), 原文pdf, 其他]
-
标题: Denotational Results in Compiler Correctness and Comparisons with Operational Approaches评论: 51 pages, 7 figures主题: 程序设计语言 (cs.PL)
Anyone setting out to prove a compiler correct must choose a style of semantics. The CakeML and CompCert projects, among others, show that operational semantics such as abstract machines and interpreters are viable choices. In this paper we explore whether denotational semantics can also be used in proofs of compiler correctness and evaluate the tradeoffs. We focus on a compiler from FPC, a language with lexically scoped functions and recursive types, to a first-order low-level intermediate language. This compiler includes closure conversion, but no prior proof of correctness with respect to denotational semantics covers closure conversion for a Turing-complete language. Compiler correctness requires that the denotation of a program be both preserved and reflected by the compiler. For closure conversion, reflection is the hard direction. We present the first denotational proofs of semantic reflection for closure conversion applied to a Turing-complete language, one proof with respect to a graph model and one with respect to Scott domains. For the graph-model proof we develop a new logical relation, the approximant logical relation, and for the Scott-domain proof we adapt a logical relation of Reynolds. As a first step in evaluating the tradeoffs, we compare mechanized correctness proofs of an eight-pass compiler, from FPC down to a typed low-level intermediate language, in five semantic styles. Two of the styles are denotational and three are operational. We find that no one semantics yields the shortest proofs for every compiler pass. We identify two factors that influence proof size. For operational semantics, proof size tends to grow with how much the runs of the source and target differ. For denotational semantics, the proofs are succinct when the correctness of a pass is an equation between meanings, and lengthy when a pass needs a logical relation.
- [9] arXiv:2611.32920 (已替换) [中文pdf, 原文pdf, 其他]
-
标题: Increasing the Precision of IR Mapping for Incremental Data Flow Analysis主题: 程序设计语言 (cs.PL)
Static analysis tools operate on an Intermediate Representation (IR) --- an internal model of the program on which dataflow analysis computes and stores facts against IR object identifiers. Incremental dataflow analysis reuses these cached facts across consecutive program versions, but requires an accurate mapping between IR objects in the old and new versions. When this mapping is imprecise, the consequence is not merely a missed optimization: unmapped IR objects inflate the change set, increasing the number of program points that the analyzer must recompute and forcing it to redo work that a more precise mapping would have avoided. This cost is not specific to any one kind of IR object; it arises wherever IR-level identity is unstable across versions. Any IR that decomposes nested source expressions generates temporary variables which are assigned names by a method-local counter that shifts whenever a statement is inserted or deleted earlier in the method, breaking any name- or attribute-based mapping. We present a systematic algorithm that establishes a sound, oneto-one mapping of these temporary variables across consecutive versions, and formalize and prove the soundness of the mapping, guaranteeing that every produced mapping is semantically correct. The resulting precise mapping shrinks the change set, reducing the number of program points the incremental analysis must recompute. Implemented within the Soot framework for Jimple IR and evaluated on 8 real-world Java projects with genuine edits from the BUGSWARM dataset, our approach reduces the IR change set by over 82% on average compared to Reviser's graph-differencing algorithm, while completing the full pipeline within 250 ms per project---directly countering the common assumption that a more precise change set necessarily costs more time to compute.