alt-ergo icon indicating copy to clipboard operation
alt-ergo copied to clipboard

Added contex reinitialisation functions

Open hra687261 opened this issue 2 years ago • 1 comments

The purpose of this PR is to add the necessary functions to allow resolution context re-initialization in Alt-Ergo. Since Alt-Ergo internally relies on side effects through references and hash-tables, A user that uses it as a library might want to reset the resolution context to its initial state, aka the state in which the modules are after their initialization. The current version re-initializes some of the refs with hard-coded values which is not ideal but it works.

hra687261 avatar Nov 03 '21 14:11 hra687261

@Stevendeo I'll mark this as a draft for now since I wanted to do the context reinitialisation more dynamically and avoid using literals for the integer ids.

hra687261 avatar Jul 11 '22 09:07 hra687261