Skip to content

Conversation

@jlvargasme
Copy link
Collaborator

  • Function application is implemented for functions that do not have tuples as arguments
  • Fixed parsing to accept refinement functions with refinement tuples
  • Implementing refinement function declaration that has refinement tuples as arguments
  • Implement refinement function application check for function with refinement tuples as arguments
  • Fixed function input satisfiability check

@jlvargasme jlvargasme added the enhancement New feature or request label Oct 23, 2023
@jlvargasme jlvargasme requested a review from jchen-cs October 23, 2023 00:24
Copy link
Collaborator

@jchen-cs jchen-cs left a comment

Choose a reason for hiding this comment

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

Reviewed code together, spotted an issue on line 1060 in z3refinement.ml. Everything else looks good and will approve once that is fixed.

let node main () =
let z = add (1.,2.) in
()

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove empty lines at end of file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed empty lines

let check_env = { exp_env = ref (checks @ !(local_env.exp_env)); var_env = Hashtbl.create 0} in
check_validity ctx constraint_env check_env;
let check_env = checks @ !(local_env.exp_env) @ !(ref_fun.creation_env.exp_env) in
check_validity ctx checks;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We noticed a bug here during our code review. check_validity returns true even if constraints are not satisfied due to the use of an implication statement. Quick fix is to replace the original implication x -> x with T -> x (just true in the antecedent) to keep with the original function interface with minimal changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed with the latest commit

@jlvargasme jlvargasme requested a review from jchen-cs October 23, 2023 18:51
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.

3 participants