Theory jiraver345

(*
 * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
 * Copyright (c) 2022 Apple Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 *)

theory jiraver345
  imports "AutoCorres2.CTranslation"
begin

install_C_file "jiraver345.c"

context jiraver345_simpl
begin

thm good_body_def
thm bad_body_def
end

lemma (in good_impl) "Γ   ´p = Ptr 0  ´ret' :== CALL good(´p)  ´ret' = 0 "
apply vcg
apply simp
done

lemma (in bad_impl) "Γ   True  ´ret' :== CALL bad(Ptr 0)  ´ret' = 0 "
apply vcg
apply simp
done

end