Skip to content

Commit

Permalink
expose direct transition so it is really direct
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horstink committed Aug 14, 2023
1 parent fc0414b commit da4d6b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(BUILD_TESTING)
elseif(TSAN_BUILD AND NOT ASAN_BUILD)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=thread -fno-omit-frame-pointer -O0")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto=auto -O3")
endif()
endif()

Expand Down
3 changes: 3 additions & 0 deletions symmetri/include/symmetri/polytransition.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

struct DirectMutation {};

bool isDirect(const DirectMutation &);
symmetri::Result fire(const DirectMutation &);

/**
* @brief Checks if the transition-function can be invoked.
*
Expand Down
3 changes: 0 additions & 3 deletions symmetri/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#include "symmetri/tasks.h"
#include "symmetri/types.h"

bool isDirect(const DirectMutation &);
symmetri::Result fire(const DirectMutation &);

namespace symmetri {

using SmallVector = gch::small_vector<size_t, 4>;
Expand Down
2 changes: 1 addition & 1 deletion symmetri/tests/test_priorities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using namespace symmetri;
using namespace moodycamel;

void t(){};
void t(){}

TEST_CASE(
"Run a transition with a higher priority over one with a lower priority") {
Expand Down

0 comments on commit da4d6b1

Please sign in to comment.