1+ Require Import CoqOfRust.CoqOfRust.
2+ Require Import CoqOfRust.links.M.
3+ Require Import pinocchio.links.account_info.
4+ Require Import pinocchio.links.pubkey.
5+ Require Import pinocchio.links.lib.
6+ Require Import pinocchio.entrypoint.lazy.
7+ Require Import core.links.result.
8+ Require Import pinocchio.links.program_error.
9+
10+ Module InstructionContext.
11+ Record t : Set := {
12+ buffer : Ref.t Pointer.Kind.Raw U8.t;
13+ remaining: U64.t
14+ }.
15+
16+ Global Instance IsLink : Link t := {
17+ Φ := Ty.path "pinocchio::entrypoint::lazy::InstructionContext";
18+ φ x :=
19+ Value.StructRecord "pinocchio::entrypoint::lazy::InstructionContext" [] [] [
20+ ("buffer", φ x.(buffer));
21+ ("remaining", φ x.(remaining))
22+ ];
23+ }.
24+ End InstructionContext.
25+
26+ Module MaybeAccount.
27+ Inductive t : Set :=
28+ | Account (a : AccountInfo.t)
29+ | Duplicated (i : U8.t).
30+
31+ Global Instance IsLink : Link t := {
32+ Φ := Ty.path "pinocchio::entrypoint::lazy::MaybeAccount";
33+ φ x :=
34+ match x with
35+ | Account a =>
36+ Value.StructTuple
37+ "pinocchio::entrypoint::lazy::MaybeAccount::Account" [] [] [φ a]
38+ | Duplicated i =>
39+ Value.StructTuple
40+ "pinocchio::entrypoint::lazy::MaybeAccount::Duplicated" [] [] [φ i]
41+ end ;
42+ }.
43+ End MaybeAccount.
44+
45+ Module Impl_InstructionContext.
46+ Definition Self : Set := InstructionContext.t.
47+
48+ Instance run_new
49+ (input : Ref.t Pointer.Kind.Raw U8.t) :
50+ Run.Trait
51+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.new
52+ [] [] [φ input] Self.
53+ Proof .
54+ constructor. admit.
55+ Admitted .
56+
57+ Instance run_new_unchecked
58+ (input : Ref.t Pointer.Kind.Raw U8.t) :
59+ Run.Trait
60+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.new_unchecked
61+ [] [] [φ input] Self.
62+ Proof .
63+ constructor. admit.
64+ Admitted .
65+
66+ Instance run_next_account
67+ (self : Ref.t Pointer.Kind.Ref Self) :
68+ Run.Trait
69+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.next_account
70+ [] [] [φ self] (Result.t MaybeAccount.t ProgramError.t).
71+ Proof .
72+ constructor. admit.
73+ Admitted .
74+
75+ Instance run_next_account_unchecked
76+ (self : Ref.t Pointer.Kind.Ref Self) :
77+ Run.Trait
78+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.next_account_unchecked
79+ [] [] [φ self] MaybeAccount.t.
80+ Proof .
81+ constructor. admit.
82+ Admitted .
83+
84+ Instance run_remaining
85+ (self : Ref.t Pointer.Kind.Ref Self) :
86+ Run.Trait
87+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.remaining
88+ [] [] [φ self] U64.t.
89+ Proof .
90+ constructor. admit.
91+ Admitted .
92+
93+ Instance run_instruction_data
94+ (self : Ref.t Pointer.Kind.Ref Self) :
95+ Run.Trait
96+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.instruction_data
97+ [] [] [φ self] (Result.t (list (Integer.t IntegerKind.U8)) ProgramError.t).
98+ Proof .
99+ constructor. admit.
100+ Admitted .
101+
102+ Instance run_instruction_data_unchecked
103+ (self : Ref.t Pointer.Kind.Ref Self) :
104+ Run.Trait
105+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.instruction_data_unchecked
106+ [] [] [φ self] (list (Integer.t IntegerKind.U8)).
107+ Proof .
108+ constructor. admit.
109+ Admitted .
110+
111+ Instance run_program_id
112+ (self : Ref.t Pointer.Kind.Ref Self) :
113+ Run.Trait
114+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.program_id
115+ [] [] [φ self] (Result.t (Ref.t Pointer.Kind.Ref Pubkey.t) ProgramError.t).
116+ Proof .
117+ constructor. admit.
118+ Admitted .
119+
120+ Instance run_program_id_unchecked
121+ (self : Ref.t Pointer.Kind.Ref Self) :
122+ Run.Trait
123+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_InstructionContext.program_id_unchecked
124+ [] [] [φ self] (Ref.t Pointer.Kind.Ref Pubkey.t).
125+ Proof .
126+ constructor. admit.
127+ Admitted .
128+ End Impl_InstructionContext.
129+
130+ Module Impl_MaybeAccount.
131+ Definition Self : Set := MaybeAccount.t.
132+
133+ Instance run_assume_account
134+ (self : Self) :
135+ Run.Trait
136+ pinocchio.entrypoint.lazy.entrypoint.lazy.Impl_pinocchio_entrypoint_lazy_MaybeAccount.assume_account
137+ [] [] [φ self] AccountInfo.t.
138+ Proof .
139+ constructor. admit.
140+ Admitted .
141+ End Impl_MaybeAccount.
0 commit comments