package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=42196e9a9c5e12839b38cb3da935f10c
sha512=ede2d8c17dcb936c1c8c596f1453bf89370a2f824a190efe74e438d7d7f7f83875c1ecbc18219c6a8a3e98b3ab4da1c3a6cc4e534687dbc90f3dca8230f43f7b

doc/catala.verification/Verification/Conditions/index.html

Module Verification.ConditionsSource

Generates verification conditions from scope definitions

Sourcetype verification_condition_kind =
  1. | NoEmptyError
    (*

    This verification condition checks whether a definition never returns an empty error

    *)
  2. | NoOverlappingExceptions
    (*

    This verification condition checks whether a definition never returns a conflict error

    *)
Sourcetype verification_condition = {
  1. vc_guard : Shared_ast.typed Dcalc.Ast.expr;
    (*

    This expression should have type bool

    *)
  2. vc_kind : verification_condition_kind;
  3. vc_asserts : Shared_ast.typed Dcalc.Ast.expr;
    (*

    A conjunction of all assertions in scope of this VC. * This expression should have type bool

    *)
  4. vc_scope : Shared_ast.ScopeName.t;
  5. vc_variable : Shared_ast.typed Dcalc.Ast.expr Shared_ast.Var.t Catala_utils.Mark.pos;
}
Sourceval generate_verification_conditions : Shared_ast.typed Dcalc.Ast.program -> Shared_ast.ScopeName.t option -> verification_condition list

generate_verification_conditions p None will generate the verification conditions for all the variables of all the scopes of the program p, while generate_verification_conditions p (Some s) will focus only on the variables of scope s.