Skip to content

Commit

Permalink
small bug fix in the heap relation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
amblafont committed Nov 25, 2021
1 parent dcf2cf8 commit e67a01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-refinement/Heap_Relation_Generation.thy
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun mk_heap_rel ctxt (uvals:uval list) other prims =
val rhs'' = mk_conjcts (ty_nm_Cs @ other)
(* FIXME later: hey, Yutaka. rhs is a bit stupid.*)
val rhs= if (rhs' = []) orelse (rhs'' = []) then @{term "True"} else rhs'' @ rhs' |>mk_HOL_conjs ;
val rhs= if (rhs' = []) andalso (rhs'' = []) then @{term "True"} else rhs'' @ rhs' |>mk_HOL_conjs ;
val heap_rel = Free ("heap_rel", dummyT);
val lhs = strip_atype @{term "\<lambda> heap_rel . heap_rel \<sigma> h"} $ heap_rel |> strip_atype;
in
Expand Down

0 comments on commit e67a01e

Please sign in to comment.