~/talk

Could a Machine ever write tests for our code

Talkat RubyConf 2012 · 2012-11-01..11-03· [ruby, large-language-models]
slides:none on file

Prototype RubyCorrect applies extended static checking via RubyESC (translating Ruby to Boogie and using Z3) and generates tests with symbolic execution via RubyCasGen (Myra → KSYM/KSAN). The system proves simple contracts, finds violations (Fibonacci example breaks when FIB(n-3) violates preconditions), and auto-generates concrete test inputs up to loop/recursion bounds (~3–4 levels), producing cases for n=0,2,3,4 while skipping redundant n=1. Major limits: heavy type annotations, incomplete stdlib specs, eval/dynamic code, and gaps in string/multiple-signature support.

AI-written summary · about

  1. 0:00Introduction to verification
  2. 1:26Formal verification overview
  3. 2:52Extended static checking
  4. 7:22Under the hood of Ruby ESC
  5. 11:01Ruby to Boogie translation
  6. 16:11Limitations of Ruby ESC
  7. 18:40Symbolic execution
  8. 24:11Ruby Case Gen implementation
  9. 29:11Future improvements and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.