Spaces:
Running
Running
Commit
·
4fd4805
1
Parent(s):
a238154
Update example
Browse files
main.py
CHANGED
|
@@ -3,10 +3,11 @@ import subprocess
|
|
| 3 |
import tempfile
|
| 4 |
from pathlib import Path
|
| 5 |
|
| 6 |
-
EXAMPLE_CODE = """
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
| 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):
|