Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
- add CMake target 'examples'
- update example name: '_constraints_' -> '_conditions_'
  • Loading branch information
marcofavorito committed Oct 23, 2024
1 parent 3bd4498 commit 32ca124
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ int main(int argc, char ** argv) {
```
More code examples can be found in the `examples/` folder.
To build them, run `make examples`.
## Documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ In this example, we will show how to use the LydiaSyft C++ APIs to solve LTLf sy
## Fairness Assumptions

The code for this example can be found in `examples/06_ltlf_synthesis_with_fairness_conditions/ltlf_synthesis_with_fairness_constraints.cpp`.
To build this example, you can run `make ltlf_synthesis_with_fairness_constraints_example`.
To build this example, you can run `make ltlf_synthesis_with_fairness_conditions_example`.

Follows the full code of the example:
```cpp
Expand Down Expand Up @@ -71,7 +71,7 @@ The declaration of the class `Syft::FairnessLtlfSynthesizer` can be found in the
## Stability Assumptions
The code for this example can be found in `examples/07_ltlf_synthesis_with_stability_conditions/ltlf_synthesis_with_stability_conditions.cpp`.
To build this example, you can run `make ltlf_synthesis_with_stability_constraints_example`.
To build this example, you can run `make ltlf_synthesis_with_stability_conditions_example`.
Follows the full code of the example:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_executable(ltlf_synthesis_with_fairness_constraints_example ltlf_synthesis_with_fairness_constraints.cpp)
add_executable(ltlf_synthesis_with_fairness_conditions_example ltlf_synthesis_with_fairness_constraints.cpp)

target_include_directories(ltlf_synthesis_with_fairness_constraints_example PRIVATE ${UTILS_INCLUDE_PATH} ${PARSER_INCLUDE_PATH} ${SYNTHESIS_INCLUDE_PATH} ${EXT_INCLUDE_PATH})
target_link_libraries(ltlf_synthesis_with_fairness_constraints_example ${PARSER_LIB_NAME} ${SYNTHESIS_LIB_NAME} ${UTILS_LIB_NAME} ${LYDIA_LIBRARIES})
target_include_directories(ltlf_synthesis_with_fairness_conditions_example PRIVATE ${UTILS_INCLUDE_PATH} ${PARSER_INCLUDE_PATH} ${SYNTHESIS_INCLUDE_PATH} ${EXT_INCLUDE_PATH})
target_link_libraries(ltlf_synthesis_with_fairness_conditions_example ${PARSER_LIB_NAME} ${SYNTHESIS_LIB_NAME} ${UTILS_LIB_NAME} ${LYDIA_LIBRARIES})
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_executable(ltlf_synthesis_with_stability_constraints_example ltlf_synthesis_with_stability_conditions.cpp)
add_executable(ltlf_synthesis_with_stability_conditions_example ltlf_synthesis_with_stability_conditions.cpp)

target_include_directories(ltlf_synthesis_with_stability_constraints_example PRIVATE ${UTILS_INCLUDE_PATH} ${PARSER_INCLUDE_PATH} ${SYNTHESIS_INCLUDE_PATH} ${EXT_INCLUDE_PATH})
target_link_libraries(ltlf_synthesis_with_stability_constraints_example ${PARSER_LIB_NAME} ${SYNTHESIS_LIB_NAME} ${UTILS_LIB_NAME} ${LYDIA_LIBRARIES})
target_include_directories(ltlf_synthesis_with_stability_conditions_example PRIVATE ${UTILS_INCLUDE_PATH} ${PARSER_INCLUDE_PATH} ${SYNTHESIS_INCLUDE_PATH} ${EXT_INCLUDE_PATH})
target_link_libraries(ltlf_synthesis_with_stability_conditions_example ${PARSER_LIB_NAME} ${SYNTHESIS_LIB_NAME} ${UTILS_LIB_NAME} ${LYDIA_LIBRARIES})
13 changes: 13 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ add_subdirectory(05_ltlf_synthesis_maximally_permissive)
add_subdirectory(06_ltlf_synthesis_with_fairness_conditions)
add_subdirectory(07_ltlf_synthesis_with_stability_conditions)
add_subdirectory(08_ltlf_synthesis_with_gr1_env_spec)

add_custom_target(examples)

add_dependencies(examples
quickstart_example
dfa_representation_example
dfa_creation_and_manipulation_example
ltlf_synthesis_example
ltlf_synthesis_maximally_permissive_example
ltlf_synthesis_with_fairness_conditions_example
ltlf_synthesis_with_stability_conditions_example
ltlf_synthesis_with_gr1_env_spec_example
)

0 comments on commit 32ca124

Please sign in to comment.