Quick_Overview_of_VDM_Operators

Quick_Overview_of_VDM_Operators - Quick Overview of VDM...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Quick Overview of VDM Operators The Boolean type Operator Name Signature not b Negation bool bool a and b Conjunction bool * bool bool a or b Disjunction bool * bool bool a => b Implication bool * bool bool a <=> b Biimplication bool * bool bool a = b Equality bool * bool bool a <> b Inequality bool * bool bool The numeric types Operator Name Signature -x Unary minus real real abs x Absolute value real real floor x Floor real int x + y Sum real * real real x - y Difference real * real real x * y Product real * real real x / y Division real * real real x div y Integer division int * int int x rem y Remainder int * int int x mod y Modulus int * int int x ** y Power real * real real x < y Less than real * real bool x > y Greater than real * real bool x <= y Less or equal real * real bool x >= y Greater or equal real * real bool x = y Equal real * real bool x <> y Not equal real * real bool The character, quote and token types Operator Name Signature c1 = c2 Equal char * char bool c1 <> c2 Not equal char * char bool Tuple types Operator Name Signature t1 = t2 Equality T * T bool t1 <> t2 Inequality T * T bool Record types Operator Name Signature r.i Field select A * Id Ai r1 = r2
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern