Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Conversation

issanyo
Copy link

@issanyo issanyo commented Oct 6, 2022

Tested locally:

$ scripts/scan_for_anomalies.sh -t train_sol -d example_repo  -o results_sol -l 5 
$ ll train_sol 
-rw-r--r--  1 admin  staff  1421383 Oct  6 09:38 train_sol

train_sol:

0,AST_expression_TWO:(condition_clause (binary_expression ("!=") (non_terminal_expression) (non_terminal_expression)))
//(allowance[from][msg.sender] != uint(-1))
0,AST_expression_ONE:(condition_clause (binary_expression ("!=") (subscript_expression (subscript_expression (identifier)(identifier))(field_expression (identifier)(field_identifier)))(call_expression (identifier)(argument_list (number_literal)))))
0,AST_expression_TWO:(condition_clause (binary_expression ("!=") (non_terminal_expression) (non_terminal_expression)))
//(blockTimestampLast != blockTimestamp)
0,AST_expression_ONE:(condition_clause (binary_expression ("!=") (identifier)(identifier)))
0,AST_expression_TWO:(condition_clause (binary_expression ("!=") (identifier) (identifier)))
//(leftSide < rightSide)
0,AST_expression_ONE:(condition_clause (binary_expression ("<") (identifier)(identifier)))
0,AST_expression_TWO:(condition_clause (binary_expression ("<") (identifier) (identifier)))
//(amountIn == 0)
0,AST_expression_ONE:(condition_clause (binary_expression ("==") (identifier)(number_literal)))
0,AST_expression_TWO:(condition_clause (binary_expression ("==") (identifier) (number_literal)))
.....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant