Skip to main navigation Skip to search Skip to main content

Condition Synthesis Realizability via Constrained Horn Clauses

  • Bat Chen Rothenberg
  • , Orna Grumberg
  • , Yakir Vizel
  • , Eytan Singher

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Condition synthesis takes a program in which some of the conditions in conditional branches are missing, and a specification, and automatically infers conditions to fill-in the holes such that the program meets the specification. In this paper, we propose CoSyn, an algorithm for determining the realizability of a condition synthesis problem, with an emphasis on proving unrealizability efficiently. We use the novel concept of a doomed initial state, which is an initial state that can reach an error state along every run of the program. For a doomed initial state σ, there is no way to make the program safe by forcing σ (via conditions) to follow one computation or another. CoSyn checks for the existence of a doomed initial state via a reduction to Constrained Horn Clauses (CHC). We implemented CoSyn in SeaHorn using Spacer as the CHC solver and evaluated it on multiple examples. Our evaluation shows that CoSyn outperforms the state-of-the-art syntax-guided tool Cvc5 in proving both realizability and unrealizability. We also show that joining forces of CoSyn and Cvc5 outperforms Cvc5 alone, allowing to solve more instances, faster.

Original languageEnglish
Title of host publicationNASA Formal Methods - 15th International Symposium, NFM 2023, Proceedings
EditorsKristin Yvonne Rozier, Swarat Chaudhuri
PublisherSpringer Science and Business Media Deutschland GmbH
Pages380-396
Number of pages17
ISBN (Print)9783031331695
DOIs
StatePublished - 2023
Event15th International Symposium on NASA Formal Methods, NFM 2023 - Houston, United States
Duration: 16 May 202318 May 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13903 LNCS

Conference

Conference15th International Symposium on NASA Formal Methods, NFM 2023
Country/TerritoryUnited States
CityHouston
Period16/05/2318/05/23

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Condition Synthesis Realizability via Constrained Horn Clauses'. Together they form a unique fingerprint.

Cite this