Skip to content

Engine: encapsulate termination in the correctness proofs#28

Open
shilangyu wants to merge 1 commit intomainfrom
mw/fuel-free
Open

Engine: encapsulate termination in the correctness proofs#28
shilangyu wants to merge 1 commit intomainfrom
mw/fuel-free

Conversation

@shilangyu
Copy link
Copy Markdown
Member

Removed matchres and instead I am just returning a bogus result for an unfinished match. But since the fuel is always enough, we know we terminated with a correct result. This small change makes using functional versions more convenient.

Previously the correctness theorem for the functional version said "if the match terminates, then the result is correct". But the match always terminates, so this removes this precondition.

I modified the complexity proofs to remove the precondition of being a pike_regex. For those that are not a pike regex, the engine immediately exits. This change is not strictly needed, if preferred, I can revert it and put a pike_regex requirement on the correctness of the functional engines.

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.

1 participant