Skip to content

Implement logging of applied equations as JSON in Kore #3818

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

Closed
wants to merge 19 commits into from

Conversation

geo2a
Copy link
Contributor

@geo2a geo2a commented Apr 17, 2024

Fixes #3817
Fixes #3815

Changes to Kore:

  • change the Kore.JsonRpc.ServerState type to contain an optional handle to write the simplification logs into
  • change the Kore.Simplify.SimplifyEnv type to hold an optional handle as well, instead of a boolean flag.
  • in Kore.Equation.Application.applyEquation, if the simplified contains the handle, output the trace as JSON into it. Include only the unique ID, not the terms

Changes to Proxy.hs and dev-tools/kore-rpc-dev/Server.hs:

  • if -l SimplifyJson is set, thread the handle to stderr/log file through to Kore's ServerState
  • in Proxy.hs, do not modify the request parameters when falling back to Kore or making internal simplify requests. Do not output logs received form Kore at -l SimplifJson anymore: Kore will now do it itself

Note that the behavior of kore-rpc-booster -l SimplifyJson is tested by the booster/test/rpc-intergration/test-log-simplify-json integration test, which compares the log to a golden file. The changes in this PR do not break this test.

@geo2a geo2a force-pushed the georgy/simplify-json-kore branch from fdb2a3a to b1a3c39 Compare April 17, 2024 10:22
@geo2a geo2a force-pushed the georgy/simplify-json-kore branch from b1a3c39 to f05f39d Compare April 17, 2024 10:23
@geo2a geo2a force-pushed the georgy/simplify-json-kore branch from 9fcf9cb to 25fd8bd Compare April 19, 2024 12:38
@geo2a
Copy link
Contributor Author

geo2a commented Apr 23, 2024

Subsumed by #3824

@geo2a geo2a closed this Apr 23, 2024
@jberthold jberthold deleted the georgy/simplify-json-kore branch March 6, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant