Skip to content

Commit 449010b

Browse files
authored
refactor: make the backend implementation more generic (#596)
* merge implementation of backend and theory backend * make step transitions explicit in backend interface * add aspif parsing tests
1 parent 6a1db7d commit 449010b

File tree

13 files changed

+749
-242
lines changed

13 files changed

+749
-242
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
/.vs
1111
/CMakeSettings.json
1212
/build
13+
/_codeql_build_dir
14+
/_codeql_detected_source_root
1315
/dist
1416
/doc/html
1517
/doc/latex

lib/control/include/clingo/control/solver.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ class Solver : public BaseView {
795795
void accept(Ground::ProfileNode::Visitor const &visit) const { grd_.accept(visit); }
796796

797797
private:
798-
class ProgramBackendAdapter;
798+
class AspifBackend;
799799

800800
//! States for step transitions.
801801
//!

lib/control/src/grounder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ auto Grounder::ground(Input::ProgramParamVec const &params, Ground::ScriptCallba
405405
impl_->project();
406406
impl_->clear();
407407
}
408-
impl_->out->end_step();
408+
impl_->out->end_ground();
409409
if (p != Input::ProfileFlags::off && !params.empty()) {
410410
impl_->profile.end_step();
411411
}

0 commit comments

Comments
 (0)