[논문 리뷰] Compositional Symbolic Execution for Correctness and Incorrectness Reasoning
이 논문은 '소비(consume)' 및 '생산(produce)' 연산을 위한 타당한 공리적 인터페이스를 통해 정확성과 오류성 추론을 통합하는, 체계적으로 기반을 두고 구성적인 기호 실행(CSE) 엔진을 제시한다. Gillian에 영감을 받아, 분리 논리 기반으로 과도한 근사(정확성)와 과소 근사(오류성) 추론을 모두 지원하며, 만족 가능성 또는 타당성에 기반한 통합된 의미론을 갖추고 있으며, 잘못된 추론을 위한 이중 근거(bi-abduction)를 통해 진정한 버그 탐지 기능을 네이티브로 지원하도록 Gillian-C를 확장하여 접근을 평가한다.
The introduction of separation logic has led to the development of symbolic execution techniques and tools that are (functionally) compositional with function specifications that can be used in broader calling contexts. Many of the compositional symbolic execution tools developed in academia and industry have been grounded on a formal foundation, but either the function specifications are not validated with respect to the underlying separation logic of the theory, or there is a large gulf between the theory and the implementation of the tool. We introduce a formal compositional symbolic execution engine which creates and uses function specifications from an underlying separation logic and provides a sound theoretical foundation for, and indeed was partially inspired by, the Gillian symbolic execution platform. This is achieved by providing an axiomatic interface which describes the properties of the consume and produce operations used in the engine to update compositionally the symbolic state, for example when calling function specifications. This consume-produce technique is used by VeriFast, Viper, and Gillian, but has not been previously characterised independently of the tool. As part of our result, we give consume and produce operations inspired by the Gillian implementation that satisfy the properties described by our axiomatic interface. A surprising property is that our engine semantics provides a common foundation for both correctness and incorrectness reasoning, with the difference in the underlying engine only amounting to the choice to use satisfiability or validity. We use this property to extend the Gillian platform, which previously only supported correctness reasoning, with incorrectness reasoning and automatic true bug-finding using incorrectness bi-abduction. We evaluate our new Gillian platform by using the Gillian instantiation to C. This instantiation is the first tool grounded on a common formal compositional symbolic execution engine to support both correctness and incorrectness reasoning.
연구 동기 및 목표
- 구성적인 기호 실행 도구와 형식적 분리 논리 간 격차를 해소하기 위해 구성적인 기호 실행에 대한 타당한 이론적 기반을 제공함으로써.
- 정확성과 오류성 추론을 동일한 형식적 의미론 아래 통합하여, 만족 가능성 또는 타당성의 사용만으로 차이를 두는 것.
- 함수 사양을 형식적 분리 논리에 기반시켜 도구 간 사양 상호운용성을 가능하게 하기 위해.
- Gillian 플랫폼에 오류성 추론과 자동 진짜 버그 탐지 기능을 추가하기 위해 이중 근거를 사용한 오류성 추론을 확장함으로써.
- Gillian-C를 통해 C 언어에 대한 CSE 엔진의 형식적 인스턴스를 만들고, 이로써 정확성과 오류성 추론 모두를 지원하는 바를 입증함으로써 접근을 평가함.
제안 방법
- 함수 사양을 업데이트하는 데 사용되는 '소비' 및 '생산' 연산을 사용하여 구성적인 기호 실행 의미론을 정의함.
- 특정 도구에 종속되지 않는, 소비 및 생산 연산이 가져야 할 필수 성질을 명시하는 공리적 인터페이스를 도입함.
- 일반적인 타당성 결과를 증명함: 공리적 성질이 만족되고 함수 사양이 분리 논리에서 타당하다면, CSE 엔진은 타당함.
- Gillian에 영감을 받은 연산으로 공리적 인터페이스를 인스턴스화하고, 이들이 요구 조건을 충족함을 증명함.
- 기반 논리에서 타당성에서 만족 가능성으로 전환함으로써, Gillian 플랫폼에 오류성 추론을 지원하도록 확장함.
- Gillian-C에서 접근을 구현하고 평가하여, C 코드에 대해 정확한 및 오류 있는 함수 사양을 생성하기 위해 이중 근거를 사용함.
실험 결과
연구 질문
- RQ1정확성과 오류성 추론을 모두 지원하는 통합된 의미론 기반의 형식적 구성적인 기호 실행 엔진을 설계할 수 있는가?
- RQ2과도한 근사 및 과소 근사 추론 모두에서 타당성을 보장하기 위해 '소비' 및 '생산' 연산이 만족해야 할 공리적 성질은 무엇인가?
- RQ3함수 사양을 다양한 도구 간에 상호운용 가능하게 하면서도 분리 논리에 기반한 형식적 기반을 유지할 수 있는가?
- RQ4Gillian 플랫폼은 타당성을 손상시키지 않고 오류성 추론과 자동 진짜 버그 탐지 기능을 확장할 수 있는가?
- RQ5Gillian-C를 통해 C 언어에 대한 CSE 엔진의 인스턴스화가 실제 프로그램 분석에 대해 실용적인 타당성을 얼마나 잘 입증하는가?
주요 결과
- CSE 엔진은 정확성과 오류성 추론을 위한 통합된 의미론 기반을 제공하며, 유일한 차이점은 정확성에서는 타당성, 오류성에서는 만족 가능성의 사용 뿐이다.
- 소비 및 생산 연산을 위한 공리적 인터페이스는 체계적으로 특징지어지고, Gillian에 영감을 받은 연산으로 인스턴스화되어 요구 조건을 충족함을 입증함.
- 엔진은 사양 상호운용성을 가능하게 하여, 다양한 출처에서 온 함수 사양이 도구 간에 타당하게 사용될 수 있도록 함.
- 평가 결과, 확장된 Gillian-C는 단일 C 함수에 대해 9개의 서로 다른 사양을 생성하였으며, 이 중 4개는 정확하고 5개는 오류 있는 사례로, 두 가지 추론 모드 모두를 지원함을 입증함.
- 현재 Gillian-C의 구현은 인코딩 제약으로 인해 사양 폭발 문제를 겪고 있으나, 이는 실용적 제약일 뿐 이론적 프레임워크의 결함은 아님.
- 이 접근은 잘못된 추론을 위한 이중 근거를 통해 자동으로 진짜 버그 탐지 기능을 성공적으로 구현하였으며, 주요 예시로 세그멘테이션 폭주를 유발할 수 있는 NULL 참조를 탐지함.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.