Slashdot Mirror


Is Code Verification Finally Good Enough?

Jonathan asks: "As someone who has been following the development of software verification technology, a recent trend has intrigued me. It seems that the formal method people have finally come down off their high horse and are offering code verification as just another tool. This approach shows up in recent Java and C# based code verification tools that aren't aimed at 'proving correctness' so much as finding potential errors. Now it seems that such an approach is beginning to find its way into XP methods[pdf] as another verification tool to supplement unit tests. Given the current speed and effectiveness of tools like the Spec# verifier, is code verification via automated theorem proving finally going to make its way into the mainstream?"

5 of 87 comments (clear)

  1. Re:a chain of crutches by chroot_james · · Score: 4, Funny
    they already do! I came across this the other day:
    private getThis() { return this; }
    --
    Reality is nothing but a collective hunch.
  2. Re:a chain of crutches by kirun · · Score: 3, Funny

    Seems like sensible future-proofing to me. Sure, the variable this is called this right now, but who knows what tomorrow will bring?

    --
    I'm scared of numbers that can't be written as a fraction. It's an irrational fear.
  3. To quote Knuth by dargaud · · Score: 2, Funny
    "Beware of bugs in the above code; I have only proved it correct, not tried it." —Donald E. Knuth.
    --
    Non-Linux Penguins ?
  4. Re:Not possible by l33td00d42 · · Score: 2, Funny
    Alice: "Try to get this concept through your thick skull: the software can do whatever I design it to do"
    (pause)
    user: "Can you design it to tell you my requirements?"
    boy, that's easy:

    print "This software is required to print this statement.";
  5. logic bug by hey · · Score: 2, Funny

    How could a program ever find this bug:

    if (vote == "democrat")
    {
            republican++;
    }