Skip to content

Commit

Permalink
added a testpad for generated grasshopper predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
septract committed Aug 4, 2016
1 parent 8535461 commit 436a98a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions grasshopper/lclist-testpad.spl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
include "./lclist-module.spl";

// deleteVal_C000_001: fail
// deleteVal_C000_001:
// Command:
// (= (after prev) (before head))
//
// W/Prec:
// (and
// %{isListG(head,ub,#1) }((before v))
// (=>
// (not (= (goal 177 v) (before v)))
// %{isListG(head,ub,#1) }((goal 177 v))
// )
// )
//
// Goal:
// %{isListG(head,ub,#1) }((goal 177 v))

procedure deleteVal_C000_001 (head: Node, a_prev: Node, ub: Int, b_v: Int, g177_v: Int)
requires isListG(head,ub,b_v);
requires (g177_v != b_v) ==> isListG(head,ub,b_v);
ensures isListG(head,ub,g177_v);
{
a_prev := head;
}

0 comments on commit 436a98a

Please sign in to comment.