Skip to content

Global predicates #338

@klausnat

Description

@klausnat

Hello,

This is not an issue, more like a question. I want to add global predicates to Gillian-JS

So Gillian-JS will automatically check for runtime errors, such as:

Division by zero (b === 0).

Type errors (if a or b are non-numeric).

in the code below

function divide(a, b) {
  return a / b;
}

var result = divide(10, 0);

So user do not have to write any annotations (assumes, asserts).

What is the best way/path to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions