Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/abi/Types.idr
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ programStateSizeBytes = 40 -- Aligned to 8 bytes

||| Prove ProgramState has correct size
public export
programStateSize : HasSize ProgramState programStateSizeBytes
programStateSize : HasSize ProgramState 40
programStateSize = SizeProof

||| Prove ProgramState has 8-byte alignment
Expand All @@ -276,7 +276,7 @@ instructionSizeBytes = 16

||| Prove Instruction has correct size
public export
instructionSize : HasSize Instruction instructionSizeBytes
instructionSize : HasSize Instruction 16
instructionSize = SizeProof

||| Prove Instruction has 4-byte alignment
Expand Down Expand Up @@ -318,7 +318,11 @@ ptrSize WASM = 32
||| Pointer type for platform
public export
CPtr : Platform -> Type -> Type
CPtr p _ = Bits (ptrSize p)
CPtr Linux _ = Bits64
CPtr Windows _ = Bits64
CPtr MacOS _ = Bits64
CPtr BSD _ = Bits64
CPtr WASM _ = Bits32

--------------------------------------------------------------------------------
-- Verification Types
Expand Down
Loading