Spaces:
Sleeping
Sleeping
Commit ·
36fe8f3
1
Parent(s): b82ea7d
Adjust example to remove header
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def predict(type, input_asm, _c_source):
|
|
| 36 |
# Add a bogus function header if needed.
|
| 37 |
first_line = input_asm.split("\n")[0]
|
| 38 |
if "<" not in first_line or ">" not in first_line:
|
| 39 |
-
print("Adding
|
| 40 |
input_asm = "<func0>:\n" + input_asm
|
| 41 |
|
| 42 |
normalized_asm = normalize(input_asm)
|
|
@@ -85,8 +85,7 @@ def predict(type, input_asm, _c_source):
|
|
| 85 |
|
| 86 |
return output
|
| 87 |
|
| 88 |
-
example = """
|
| 89 |
-
0: f3 0f 1e fa endbr64
|
| 90 |
4: 55 push %rbp
|
| 91 |
5: 48 89 e5 mov %rsp,%rbp
|
| 92 |
8: 89 7d fc mov %edi,-0x4(%rbp)
|
|
|
|
| 36 |
# Add a bogus function header if needed.
|
| 37 |
first_line = input_asm.split("\n")[0]
|
| 38 |
if "<" not in first_line or ">" not in first_line:
|
| 39 |
+
print("Adding synthetic function header")
|
| 40 |
input_asm = "<func0>:\n" + input_asm
|
| 41 |
|
| 42 |
normalized_asm = normalize(input_asm)
|
|
|
|
| 85 |
|
| 86 |
return output
|
| 87 |
|
| 88 |
+
example = """ 0: f3 0f 1e fa endbr64
|
|
|
|
| 89 |
4: 55 push %rbp
|
| 90 |
5: 48 89 e5 mov %rsp,%rbp
|
| 91 |
8: 89 7d fc mov %edi,-0x4(%rbp)
|