Skip to content

Commit 95a2bdc

Browse files
committed
Demo
1 parent e46fe66 commit 95a2bdc

File tree

12 files changed

+217
-246
lines changed

12 files changed

+217
-246
lines changed

poetry.lock

Lines changed: 194 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ python-tool-competition-2024 = "^0.2.0"
1313
utbot-executor = "1.9.16"
1414
utbot-mypy-runner = "0.2.16"
1515
utbot_dist = [
16-
{ url = "https://github.com/UnitTestBot/UTBotPythonSBFT2024/releases/download/v19/utbot_dist-0.1.0-py3-none-manylinux_2_31_x86_64.whl", platform = "linux" }
16+
{ url = "https://github.com/UnitTestBot/UTBotPythonSBFT2024/releases/download/v20/utbot_dist-0.1.0-py3-none-manylinux_2_31_x86_64.whl", platform = "linux" }
1717
]
1818

1919
[build-system]

python_tool_competition_2024_utbot_python/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class UTBotPythonConfig:
1616
JAR_FILE = SITE_DIR / "utbot_dist" / "utbot-cli-python.jar"
1717
USVM_PATH = SITE_DIR / "utbot_dist" / "usvm-python"
1818
PYTHON_PATH = sys.executable
19-
INCLUDE_MYPY_RUN_IN_TIMEOUT = True
20-
TIMEOUT = 180_000
19+
INCLUDE_MYPY_RUN_IN_TIMEOUT = False
20+
TIMEOUT = 8_000
2121
MODE = Mode.SYMBOLIC

python_tool_competition_2024_utbot_python/generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ def _run_utbot(
113113
f" --java-cmd {java_cmd}"
114114
f" --usvm-dir {usvm_dir}"
115115
f" --runtime-exception-behaviour PASS"
116-
f" --prohibited-exceptions -"
116+
f" --prohibited-exceptions builtins.TypeError,builtins.AttributeError"
117117
f" --do-not-generate-state-assertions"
118118
f" --mode {mode.value}"
119+
f" --only-toplevel"
119120
)
120121
if check_usvm:
121122
command += " --check-usvm"

targets/__init__.py

Whitespace-only changes.

targets/example1.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

targets/example2.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

targets/sub_example/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

targets/sub_example/example3.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

targets/sub_example/example4.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

targets/sum_array.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def sum_(a_and_n):
2+
(a, n) = a_and_n
3+
result = 0
4+
for i in range(n):
5+
result += a[i]
6+
return result

targets/unsafe.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class RawCommand:
2+
def __init__(self, cmd):
3+
self.cmd = cmd
4+
5+
def run(self):
6+
eval(self.cmd)
7+
8+
9+
def run(commands):
10+
for cmd in commands:
11+
cmd.run()
12+
return "Success"

0 commit comments

Comments
 (0)