# Partial Compilation of ASP Programs

**Authors:** Bernardo Cuteri, Carmine Dodaro, Francesco Ricca, Peter Sch\"uller

arXiv: 1907.10469 · 2020-02-19

## TL;DR

This paper introduces a partial compilation approach for ASP programs that enhances efficiency by compiling sub-programs into specific evaluation algorithms, reducing grounding issues and improving performance on benchmarks.

## Contribution

It proposes a novel partial compilation technique for ASP, allowing parts of the program to be compiled into ad-hoc algorithms, improving efficiency over traditional ground	extless{}&gt{}solve methods.

## Key findings

- Improves ASP performance on stratified programs.
- Reduces grounding blow-up in complex programs.
- Enhances evaluation efficiency in benchmark tests.

## Abstract

Answer Set Programming (ASP) is a well-known declarative formalism in logic programming. Efficient implementations made it possible to apply ASP in many scenarios, ranging from deductive databases applications to the solution of hard combinatorial problems. State-of-the-art ASP systems are based on the traditional ground\&solve approach and are general-purpose implementations, i.e., they are essentially built once for any kind of input program. In this paper, we propose an extended architecture for ASP systems, in which parts of the input program are compiled into an ad-hoc evaluation algorithm (i.e., we obtain a specific binary for a given program), and might not be subject to the grounding step. To this end, we identify a condition that allows the compilation of a sub-program, and present the related partial compilation technique. Importantly, we have implemented the new approach on top of a well-known ASP solver and conducted an experimental analysis on publicly-available benchmarks. Results show that our compilation-based approach improves on the state of the art in various scenarios, including cases in which the input program is stratified or the grounding blow-up makes the evaluation unpractical with traditional ASP systems.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1907.10469/full.md

## Figures

10 figures with captions in the complete paper: https://tomesphere.com/paper/1907.10469/full.md

## References

34 references — full list in the complete paper: https://tomesphere.com/paper/1907.10469/full.md

---
Source: https://tomesphere.com/paper/1907.10469