Lune

ISSTA2021Top-tier venue

Type and interval aware array constraint solving for symbolic execution

Ziqi Shuai, Zhenbang Chen, Yufeng Zhang, Jun Sun, Ji Wang

Abstract

Array constraints are prevalent in analyzing a program with symbolic execution. Solving array constraints is challenging due to the complexity of the precise encoding for arrays. In this work, we propose to synergize symbolic execution and array constraint solving. Our method addresses the difficulties in solving array constraints with novel ideas. First, we propose a lightweight method for prechecking the unsatisfiability of array constraints based on integer linear programming. Second, observing that encoding arrays at the byte-level introduces many redundant axioms that reduce the effectiveness of constraint solving, we propose type and interval aware axiom generation. Note that the type information of array variables is inferred by symbolic execution, whereas interval information is calculated through the above pre-checking step. We have implemented our methods based on KLEE and its underlying constraint solver STP and conducted large-scale experiments on 75 real-world programs. The experimental results show that our method effectively improves the efficiency of symbolic execution. Our method solves 182.56% more constraints and explores 277.56% more paths on average under the same time threshold.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Partial Solution Based Constraint Solving Cache in Symbolic Execution cites Multiplex Symbolic Execution: Exploring Multiple Paths by Solving Once
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Verifying Data Constraint Equivalence in FinTech SystemsChengpeng Wang, Gang Fan, Peisen Yao, Fuxiong Pan et al.ICSE 2023 · 4 citations
  2. Partial Solution Based Constraint Solving Cache in Symbolic ExecutionZiqi Shuai, Zhenbang Chen, Kelin Ma, Kunlin Liu et al.FSE 2024 · 3 citations
  3. Precise Compositional Buffer Overflow Detection via Heap DisjointnessYiyuan Guo, Peisen Yao, Charles ZhangISSTA 2024 · 1 citation

Builds on2

  1. Multiplex Symbolic Execution: Exploring Multiple Paths by Solving OnceYufeng Zhang, Zhenbang Chen, Ziqi Shuai, Tianqi Zhang et al.ASE 2020 · 17 citations
  2. Fast bit-vector satisfiabilityPeisen Yao, Qingkai Shi, Heqing Huang, Charles ZhangISSTA 2020 · 13 citations

Related papers

  1. Concrete Constraint Guided Symbolic ExecutionYue Sun, Guowei Yang, Shichao Lv, Zhi Li et al.ICSE 2024 · 3 citations
  2. Neuro-Symbolic Execution: Augmenting Symbolic Execution with Neural ConstraintsShiqi Shen, Shweta Shinde, Soundarya Ramesh, Abhik Roychoudhury et al.NDSS 2019 · 43 citations
  3. Learning to Explore Paths for Symbolic ExecutionJingxuan He, Gishor Sivanrupan, Petar Tsankov, Martin T. VechevCCS 2021 · 39 citations
  4. Array-Carrying Symbolic Execution for Function Contract GenerationWeijie Lu, Jingyu Ke, Hongfei Fu, Zhouyue Sun et al.FM 2026
  5. Obtaining Information Leakage Bounds via Approximate Model CountingSeemanta Saha, Surendra Ghentiyala, Shihua Lu, Lucas Bang et al.PLDI 2023 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines