Presburger Arithmetic and Its Use in Verification
Presburger Arithmetic and Its Use in Verification
Presburger Arithmetic and Its Use in Verification
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
APPENDIX B. SOURCE CODE OF EXPERIMENTS<br />
B.3 Formula.fs<br />
module Formula<br />
open Microsoft.FSharp.Collections<br />
open Utilities<br />
open Term<br />
type CompType =<br />
| EQ<br />
| UEQ<br />
| GT<br />
type Formula =<br />
| TT<br />
| FF<br />
| C of Term ∗ CompType<br />
| D of <strong>in</strong>t ∗ Term<br />
| Not of Formula<br />
| And of Formula list<br />
| Or of Formula list<br />
| SAnd of Formula ∗(str<strong>in</strong>g ∗ <strong>in</strong>t) list<br />
| SOr of Formula ∗(str<strong>in</strong>g ∗ <strong>in</strong>t) list (∗ Avoid exp<strong>and</strong><strong>in</strong>g formula by <strong>in</strong>troduc<strong>in</strong>g<br />
variable <strong>and</strong> its range of value ∗)<br />
| E of str<strong>in</strong>g list ∗ Formula<br />
| A of str<strong>in</strong>g list ∗ Formula<br />
76