Partial Compilation of ASP Programs

被引:3
|
作者
Cuteri, Bernardo [1 ]
Dodaro, Carmine [1 ]
Ricca, Francesco [1 ]
Schueller, Peter [2 ]
机构
[1] Univ Calabria, DeMaCS, Commenda Di Rende, Italy
[2] TU Wien, Knowledge Based Syst Grp, Vienna, Austria
基金
欧盟地平线“2020”;
关键词
Answer set programming; Grounding bottleneck; Compilation; ANSWER; DLV;
D O I
10.1017/S1471068419000231
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:857 / 873
页数:17
相关论文
共 50 条
  • [1] Compilation of Aggregates in ASP Systems
    Mazzotta, Giuseppe
    Ricca, Francesco
    Dodaro, Carmine
    [J]. THIRTY-SIXTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FOURTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE / THE TWELVETH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2022, : 5834 - 5841
  • [2] Debugging ASP programs by means of ASP
    Brain, Martin
    Gebser, Martin
    Puehrer, Jorg
    Schaub, Torsten
    Tompits, Hans
    Woltran, Stefan
    [J]. LOGIC PROGRAMMING AND NONMONOTONIC REASONING, PROCEEDINGS, 2007, 4483 : 31 - +
  • [3] PARTIAL COMPILATION OF REXX
    PINTER, RY
    VORTMAN, P
    WEISS, Z
    [J]. IBM SYSTEMS JOURNAL, 1991, 30 (03) : 312 - 321
  • [4] Security of Multithreaded Programs by Compilation
    Barthe, Gilles
    Rezk, Tamara
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. ACM TRANSACTIONS ON INFORMATION AND SYSTEM SECURITY, 2010, 13 (03)
  • [5] Security of multithreaded programs by compilation
    Barthe, Gilles
    Rezk, Tamara
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. COMPUTER SECURITY - ESORICS 2007, PROCEEDINGS, 2007, 4734 : 2 - +
  • [6] Modular compilation of synchronous programs
    Schneider, Klaus
    Brandt, Jens
    Vecchie, Eric
    [J]. FROM MODEL-DRIVEN DESIGN TO RESOURCE MANAGEMENT FOR DISTRIBUTED EMBEDDED SYSTEMS, 2006, 225 : 75 - +
  • [7] Realistic compilation by partial evaluation
    Sperber, M
    Thiemann, P
    [J]. ACM SIGPLAN NOTICES, 1996, 31 (05) : 206 - 214
  • [8] Partial evaluation and separate compilation
    Heldal, R
    Hughes, J
    [J]. ACM SIGPLAN NOTICES, 1997, 32 (12) : 1 - 11
  • [9] Secure Compilation of Constant -Resource Programs
    Barthe, Gilles
    Blazy, Sandrine
    Hutin, Remi
    Pichardie, David
    [J]. 2021 IEEE 34TH COMPUTER SECURITY FOUNDATIONS SYMPOSIUM (CSF 2021), 2021, : 237 - 248
  • [10] THE INTENSIONAL COMPILATION OF LOGIC-PROGRAMS
    DEROUGEMONT, M
    [J]. JOURNAL OF SYMBOLIC LOGIC, 1987, 52 (04) : 1081 - 1082