ejschwartz commited on
Commit
4fd4805
·
1 Parent(s): a238154

Update example

Browse files
Files changed (1) hide show
  1. main.py +5 -4
main.py CHANGED
@@ -3,10 +3,11 @@ import subprocess
3
  import tempfile
4
  from pathlib import Path
5
 
6
- EXAMPLE_CODE = """int main() {
7
- x = 10;
8
- y = foo(x);
9
- return y;
 
10
  }"""
11
 
12
  def run_psychec(c_code: str):
 
3
  import tempfile
4
  from pathlib import Path
5
 
6
+ EXAMPLE_CODE = """void f()
7
+ {
8
+ T v = 0;
9
+ v->value = 42;
10
+ v->next = v;
11
  }"""
12
 
13
  def run_psychec(c_code: str):