Skip to content

Benchmarks

ton single (graphical LD twin)

suite id g_ton_single
domain hvac
language LD-graphical
difficulty easy
validation status candidate
origin authored
license CC-BY-4.0
syntax pair of ld_ton_single

Graphical PLCopen XML twin of the K-LD textual benchmark; PT is a duration literal resolved against the task interval

What is proved

From benchmarks/hvac/g_ton_single/props.yaml. What each kind claims, and what it becomes on either route, is on The properties we prove.

id kind claim requirement
P1 invariant !Light || Btn The on-delay light can be on only while the button is (or was recently) pressed.

Variants

file expected verdict violates method
program.xml SAFE none expert

Files

file what it is size sha256
benchmark.yml benchmark metadata 0.7 KB 3371bf0663fc
program.xml ladder program, PLCopen XML 2.8 KB 50944a2342fa
props.yaml property file 0.2 KB 11304a121ae8

Structured text, derived

Read off the ladder graph by runner/ld_to_st.py: every rung's contacts and coils rewritten as IEC 61131-3 assignments, in the same series/parallel logic the PLCopen XML encodes. This is a reading aid, not a second source of expected verdicts; ESBMC verifies the ladder program shown above, never this rendering.

PROGRAM g_ton_single
VAR_INPUT
    Btn : BOOL;
END_VAR

VAR_OUTPUT
    Light : BOOL;
END_VAR

VAR
    TON0 : TON;
END_VAR


TON0(IN:=Btn, PT:=T#30ms);
Light := TON0.Q;

END_PROGRAM

Recorded runs

A task can carry two routes. ld is ESBMC's ladder front end reading the program directly. via C is the same solver reached through Beremiz and MatIEC, which is the only route that reaches ST, IL, FBD and SFC; see How ESBMC-PLC works.

  • ton_single (props.yaml, expected SAFE): master SAFE