-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update submodule references in extern/riddle and extern/semitone
- Loading branch information
1 parent
81bbd94
commit cb4c1be
Showing
15 changed files
with
131 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule riddle
updated
4 files
+4 −4 | src/constructor.cpp | |
+18 −18 | src/declaration.cpp | |
+4 −4 | src/expression.cpp | |
+6 −6 | src/statement.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "smart_type.hpp" | ||
|
||
namespace ratio | ||
{ | ||
class agent final : public smart_type, public timeline | ||
{ | ||
agent(solver &slv); | ||
|
||
private: | ||
std::vector<std::vector<std::pair<utils::lit, double>>> get_current_incs() const noexcept override { return {}; } | ||
|
||
void new_atom(std::shared_ptr<ratio::atom> &atm) noexcept override; | ||
|
||
#ifdef ENABLE_VISUALIZATION | ||
json::json extract() const noexcept override; | ||
#endif | ||
|
||
private: | ||
std::vector<std::reference_wrapper<atom>> atoms; | ||
}; | ||
} // namespace ratio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <cassert> | ||
#include "bool_flaw.hpp" | ||
#include "solver.hpp" | ||
#include "graph.hpp" | ||
|
||
namespace ratio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <cassert> | ||
#include "disj_flaw.hpp" | ||
#include "solver.hpp" | ||
#include "graph.hpp" | ||
|
||
namespace ratio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <cassert> | ||
#include "disjunction_flaw.hpp" | ||
#include "solver.hpp" | ||
#include "graph.hpp" | ||
|
||
namespace ratio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <cassert> | ||
#include "enum_flaw.hpp" | ||
#include "solver.hpp" | ||
#include "graph.hpp" | ||
|
||
namespace ratio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "agent.hpp" | ||
#include "solver.hpp" | ||
|
||
namespace ratio | ||
{ | ||
agent::agent(solver &slv) : smart_type(slv, "agent") {} | ||
|
||
void agent::new_atom(std::shared_ptr<ratio::atom> &atm) noexcept | ||
{ | ||
if (atm->is_fact()) | ||
{ | ||
set_ni(atm->get_sigma()); | ||
if (is_impulse(*atm)) | ||
atm->get_core().get_predicate("Impulse")->get(); | ||
} | ||
atoms.push_back(*atm); | ||
} | ||
} // namespace ratio |