Feature request: more ways to conditionalize a ProofScript #1195
Labels
needs design
Technical design work is needed for issue to progress
type: feature request
Issues requesting a new feature or capability
Milestone
The experimental functions
goal_num_when
andgoal_num_ite
are really useful for pulling out goals that need compicated scripts. Most of the time, for me, that's just the final goal(s) in a proof, dealing with the postcondition(s) or anypoints_to
assertions. For that purpose, the interface is a bit awkward; I know this will be the last in the numbered list of goals, but do not know before running the proof what its number will be.A few different things might make this more convenient and make proof scripts more robust:
goal_reverse_num_ite
command that numbers the goals in reverse.goal_type_ite
command to match the different types of generated goals (precondition of called routine, postcondition, points_to condition, ...)llvm_named_precond "Input_is_nonnegative" (llvm_term {{ x >= 0 }}
.goal_when
that looks at the goal itself. There are usually function names appearing in my postconditions that do not appear in other goals. This might be a bit fragile, though.I'm sure you can think of more ideas. Anything like this might make the scripts more readable, more robust, and easier to write.
The text was updated successfully, but these errors were encountered: