copilot-verifier-4.3: System for verifying the correctness of generated Copilot programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Copilot.Verifier.Examples.ShouldPass.Structs

Description

An example showing the usage of the What4 backend in copilot-theorem for structs and arrays. Particular focus is on nested structs. For general usage of structs, refer to the general structs example.

Synopsis

Documentation

data Volts Source #

Definition for Volts.

Constructors

Volts 

Fields

Instances

Instances details
Struct Volts Source #

Struct instance for Volts.

Instance details

Defined in Copilot.Verifier.Examples.ShouldPass.Structs

Typed Volts Source #

Volts instance for Typed.

Instance details

Defined in Copilot.Verifier.Examples.ShouldPass.Structs

data Battery Source #

Constructors

Battery 

Fields

Instances

Instances details
Struct Battery Source #

Battery instance for Struct.

Instance details

Defined in Copilot.Verifier.Examples.ShouldPass.Structs

Typed Battery Source #

Battery instance for Typed. Note that undefined is used as an argument to Field. This argument is never used, so undefined will never throw an error.

Instance details

Defined in Copilot.Verifier.Examples.ShouldPass.Structs