Skip to content

Debug flag#187

Open
cheestree wants to merge 4 commits intoliquid-java:mainfrom
cheestree:debug-flag
Open

Debug flag#187
cheestree wants to merge 4 commits intoliquid-java:mainfrom
cheestree:debug-flag

Conversation

@cheestree
Copy link

Closes #175 . This PR adds support for the --debug flag as well as future implementation of new flags via the use of the picocli library.

Added picocli to extend flag usage, with the implementation of --debug to presentraw expressions, counterexamples and all expressions sent to the SMT solver.
Logging should be improved as it's not incredibly readable.
Arguments are now accessed via an object in the CommandLineLauncher class, so that it's easier in the future to implement new flags.
Copy link
Collaborator

@rcosta358 rcosta358 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you show us example usages of each option?

Comment on lines -42 to +45
} else {
System.out.println("Correct! Passed Verification.");
return;
}

System.out.println("Correct! Passed Verification.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but I think the previous version was easier to read.

@cheestree
Copy link
Author

There are only 2 commands as follows, with --help giving

image

and --debug like so

image

@rcosta358
Copy link
Collaborator

Looks great!

Follows suggested print formatting

Co-authored-by: Ricardo Costa <rcosta.ms358@gmail.com>
@rcosta358 rcosta358 added the enhancement New feature or request label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Debug Flag

2 participants