Skip to content
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

Make eject return the executed command or NULL #125

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

jefft0
Copy link
Collaborator

@jefft0 jefft0 commented Oct 19, 2020

This pull request addresses issue #123. We update the eject method to return either the given command object, a new command object with a different command that was actually executed, or NULL if no command was executed. Likewise, we update the override of the eject method in TestMem to return the requested command on success, or to return NULL if it cannot execute the command. (The use case in TestMem does not require a different command, so this is not shown at the moment.)

Finally, we update the program controller to check the executedCommand returned from eject. If not NULL, it injects the efferent copy. If it is NULL, it places an AntiFact of the requested command in the program reduction which can be examined by other programs.

@thorisson
Copy link

Agreed.

@jefft0 jefft0 force-pushed the issue-123-efferent-copy-of-eject branch from 26874ba to a8495f2 Compare April 14, 2021 08:26
@jefft0 jefft0 merged commit 8862781 into master Apr 14, 2021
@jefft0 jefft0 deleted the issue-123-efferent-copy-of-eject branch April 14, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants