Skip to content
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

Compilation of Model and Robot Code #55

Closed
jchen-cs opened this issue Aug 25, 2022 · 2 comments
Closed

Compilation of Model and Robot Code #55

jchen-cs opened this issue Aug 25, 2022 · 2 comments
Assignees
Labels
FTSCS 2022 Implementation needed for FTSCS 2022 paper

Comments

@jchen-cs
Copy link
Collaborator

Formally verifying a robot program often requires a model of the hardware and its connections to its environment. However, such models are no longer necessary when compiling code for execution on real hardware. We therefore need a way to distinguish places in code that are modeled for verification purposes, but will receive real data from physical sensors when executing on actual hardware.

To minimize impact on the other compiler components, the proposed solution is as follows:

  • Introduce a new construct, modeled(x, y) where x is the model of a sensor and y is the actual implementation. For instance, x could be the kinematic model of a robot that simulates the position of an actuator, while y is the driver code necessary for obtaining the actual value from the robot's sensors.
  • To the verifier, modeled(x, y) is equivalent to x (y is ignored)
  • When in --robot mode, modeled(x, y) gets compiled to y in the executable.
@jchen-cs jchen-cs self-assigned this Aug 25, 2022
@jchen-cs jchen-cs added the FTSCS 2022 Implementation needed for FTSCS 2022 paper label Aug 26, 2022
@jchen-cs
Copy link
Collaborator Author

jchen-cs commented Sep 4, 2022

#59

@jchen-cs
Copy link
Collaborator Author

#57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FTSCS 2022 Implementation needed for FTSCS 2022 paper
Projects
None yet
Development

No branches or pull requests

1 participant