SFS Lab1
SFS Lab1
Formal
Specificati
Eng/TA Maiada Alaa
What is SFS
Provides a mathematical description of a system's behavior, structure, and
constraints.
It serves as a foundation for ensuring the correctness, consistency, and
completeness of software requirements before implementation.
init
• mk would create an IncubatorMonitor object using t as
input.
init mk-IncubatorMonitor(t) Δ t = 5
temperature.
● the post condition is not an assignment.
temperature.
● the post condition is not an assignment.
state BankAccount of
Balance : R
inv mk_BankAccount(b) △ b ≥ MinBalance
init mk_BankAccount(b) △ b = 20
end
withdraw (amount)
ext wr balance : R
pre amount > 0 and amount <= balance
post balance = balance - amount;
Assignment 1