-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sspace #61
base: main
Are you sure you want to change the base?
Sspace #61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use clang formatter
- Write tests
- Add documentation
@@ -1,2 +1,4 @@ | |||
add_subdirectory(identifiers-module) | |||
add_subdirectory(sections-module) | |||
add_subdirectory(sspace-search-module) | |||
add_subdirectory(utils-module) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file from PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not copy utils, use it from sc-machine
|
||
#include "sc-core/sc_memory.h" | ||
|
||
//extern sc_addr keynode_question_erase_elements; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code. Check everywhere
|
||
#include "sc-core/sc_helper.h" | ||
#include "sc-core/sc_memory_headers.h" | ||
#include <stdbool.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need it?
|
||
sc_result agent_search_extensional_closure(const sc_event * event, sc_addr arg) | ||
{ | ||
sc_addr question, answer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sc_addr question, answer; | |
sc_addr action, answer; |
question
is deprecated
|
||
if (sc_iterator3_next(it1) == SC_TRUE) { | ||
printf("agent search extensional closure: found element\n"); | ||
if (sc_helper_check_arc(s_default_ctx,back,sc_iterator3_value(it1,2),sc_type_arc_pos_const_temp)!=SC_TRUE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is the first usage of back
, so it is always true. Remove this if
|
||
answer = create_answer_node(); | ||
sc_addr front, back = sc_memory_node_new(s_default_ctx,sc_type_const); | ||
SYSTEM_ELEMENT(back); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to make it system element because you delete this node in the end of this agent. Also I am not sure if we need to make system elements in this agent everywhere
|
||
sc_iterator3_free(it1); | ||
|
||
bool f = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename f
} | ||
sc_iterator3_free(it2); | ||
|
||
it2 = sc_iterator3_a_f_a_new(s_default_ctx, 0, sc_iterator3_value(it1, 2), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sc_iterator3_value(it1, 2)
is node, not connector (?)
No description provided.