mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-07-31 16:16:26 +00:00
Update bounds.ads
This commit is contained in:
parent
0c2d9a0c2d
commit
649865e254
@ -2,12 +2,12 @@
|
|||||||
package bounds is
|
package bounds is
|
||||||
|
|
||||||
-- Exact molecular weight of the vereiner token levels. No unbounded integers.
|
-- Exact molecular weight of the vereiner token levels. No unbounded integers.
|
||||||
type Token_Value is range 0 .. 1024
|
type Token_Value is range 0 .. 512
|
||||||
|
|
||||||
-- Strict state topologies. The system holds exactly one.
|
-- Strict state topologies. The system holds exactly one.
|
||||||
type AuthState is (Offline, Booting, Synced, Executing_Payload, Fault_Halt);
|
type AuthState is (Offline, Booting, Synced, Executing_Payload, Fault_Halt);
|
||||||
|
|
||||||
-- Ravenscar protected object. Concurrent memory safety, no races.
|
-- JORVIK protected object. Concurrent memory safety, no races.
|
||||||
protected BoundState is
|
protected BoundState is
|
||||||
pragma InterruptPriority;
|
pragma InterruptPriority;
|
||||||
|
|
||||||
@ -20,10 +20,6 @@ package bounds is
|
|||||||
Current_State : AuthState := Offline;
|
Current_State : AuthState := Offline;
|
||||||
end Core_State;
|
end Core_State;
|
||||||
|
|
||||||
-- Clout capital with SPARK proofs attached.
|
-- not a thing
|
||||||
procedure Process_Transaction (Sender_Balance : in out TokenValue;
|
|
||||||
Amount : in TokenValue)
|
|
||||||
with Pre => Sender_Balance >= Amount,
|
|
||||||
Post => Sender_Balance = Sender_Balance;
|
|
||||||
|
|
||||||
end Bounds;
|
end Bounds;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user