2021-03-26 09:31:58 +00:00
|
|
|
{"auxiliaryInputRequested":{"smtlib2queries":{"0x5b495b644553a6db05060d953261651dcccfab8892863609bb80f6fa816225f1":"(set-option :produce-models true)
|
2021-01-19 11:56:22 +00:00
|
|
|
(set-logic ALL)
|
|
|
|
(declare-fun |error_0| () Int)
|
|
|
|
(declare-fun |this_0| () Int)
|
|
|
|
(declare-datatypes ((|state_type| 0)) (((|state_type| (|balances| (Array Int Int))))))
|
|
|
|
(declare-fun |state_0| () |state_type|)
|
|
|
|
(declare-datatypes ((|bytes_tuple| 0)) (((|bytes_tuple| (|bytes_tuple_accessor_array| (Array Int Int)) (|bytes_tuple_accessor_length| Int)))))
|
|
|
|
(declare-datatypes ((|tx_type| 0)) (((|tx_type| (|block.chainid| Int) (|block.coinbase| Int) (|block.difficulty| Int) (|block.gaslimit| Int) (|block.number| Int) (|block.timestamp| Int) (|blockhash| (Array Int Int)) (|msg.data| |bytes_tuple|) (|msg.sender| Int) (|msg.sig| Int) (|msg.value| Int) (|tx.gasprice| Int) (|tx.origin| Int)))))
|
|
|
|
(declare-fun |tx_0| () |tx_type|)
|
|
|
|
(declare-datatypes ((|ecrecover_input_type| 0)) (((|ecrecover_input_type| (|hash| Int) (|v| Int) (|r| Int) (|s| Int)))))
|
|
|
|
(declare-datatypes ((|crypto_type| 0)) (((|crypto_type| (|ecrecover| (Array |ecrecover_input_type| Int)) (|keccak256| (Array |bytes_tuple| Int)) (|ripemd160| (Array |bytes_tuple| Int)) (|sha256| (Array |bytes_tuple| Int))))))
|
|
|
|
(declare-fun |crypto_0| () |crypto_type|)
|
|
|
|
(declare-datatypes ((|abi_type| 0)) (((|abi_type|))))
|
|
|
|
(declare-fun |abi_0| () |abi_type|)
|
|
|
|
(declare-datatypes ((|uint[]_tuple| 0)) (((|uint[]_tuple| (|uint[]_tuple_accessor_array| (Array Int Int)) (|uint[]_tuple_accessor_length| Int)))))
|
|
|
|
(declare-fun |arr_5_length_pair_0| () |uint[]_tuple|)
|
|
|
|
(declare-fun |a_7_0| () Int)
|
|
|
|
(declare-fun |x_9_0| () Int)
|
|
|
|
(declare-fun |arr_5_length_pair_1| () |uint[]_tuple|)
|
|
|
|
(declare-fun |expr_13_0| () Int)
|
|
|
|
(declare-fun |expr_14_0| () Int)
|
|
|
|
(declare-fun |expr_15_1| () Bool)
|
|
|
|
(declare-fun |expr_18_0| () Int)
|
|
|
|
(declare-fun |expr_19_1| () Int)
|
|
|
|
(declare-fun |x_9_1| () Int)
|
|
|
|
(declare-fun |expr_21_0| () Int)
|
|
|
|
(declare-fun |expr_26_1| () Int)
|
|
|
|
(declare-fun |expr_27_1| () Int)
|
|
|
|
(declare-fun |expr_29_0| () Int)
|
|
|
|
(declare-fun |expr_30_0| () Int)
|
|
|
|
(declare-fun |d_div_mod_0_0| () Int)
|
|
|
|
(declare-fun |r_div_mod_0_0| () Int)
|
|
|
|
(declare-fun |expr_31_1| () Int)
|
|
|
|
(declare-fun |expr_33_0| () Int)
|
|
|
|
(declare-fun |expr_36_0| () Int)
|
|
|
|
(declare-fun |state_1| () |state_type|)
|
|
|
|
(declare-fun |state_2| () |state_type|)
|
|
|
|
(declare-fun |state_3| () |state_type|)
|
|
|
|
(declare-fun |expr_40_0| () Int)
|
|
|
|
(declare-fun |expr_41_0| () Int)
|
|
|
|
(declare-fun |expr_42_1| () Bool)
|
|
|
|
(declare-fun |expr_45_length_pair_0| () |uint[]_tuple|)
|
|
|
|
(declare-fun |expr_45_length_pair_1| () |uint[]_tuple|)
|
|
|
|
(declare-fun |arr_5_length_pair_2| () |uint[]_tuple|)
|
2021-03-23 18:15:14 +00:00
|
|
|
(declare-fun |expr_50_length_pair_0| () |uint[]_tuple|)
|
|
|
|
(declare-fun |expr_51_0| () Int)
|
|
|
|
(declare-fun |expr_52_1| () Int)
|
2021-01-19 11:56:22 +00:00
|
|
|
|
2021-03-26 09:31:58 +00:00
|
|
|
(assert (and (and (and true true) (and (= expr_42_1 (> expr_40_0 expr_41_0)) (and (implies (and true true) true) (and (= expr_41_0 0) (and (implies (and true true) (and (>= expr_40_0 0) (<= expr_40_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_40_0 x_9_1) (and (= state_3 (ite (= this_0 expr_33_0) state_0 state_2)) (and (= state_2 (|state_type| (store (|balances| state_1) expr_33_0 (+ (select (|balances| state_1) expr_33_0) expr_36_0)))) (and (= state_1 (|state_type| (store (|balances| state_0) this_0 (+ (select (|balances| state_0) this_0) (- 0 expr_36_0))))) (and (and (>= (select (|balances| state_0) this_0) 0) (<= (select (|balances| state_0) this_0) 115792089237316195423570985008687907853269984665640564039457584007913129639935)) (and (implies (and true true) (and (>= expr_36_0 0) (<= expr_36_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_36_0 x_9_1) (and (implies (and true true) (and (>= expr_33_0 0) (<= expr_33_0 1461501637330902918203684832716283019655932542975))) (and (= expr_33_0 a_7_0) (and (implies (and true true) (and (>= expr_31_1 0) (<= expr_31_1 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_31_1 (ite (= expr_30_0 0) 0 d_div_mod_0_0)) (and (and (<= 0 r_div_mod_0_0) (or (= expr_30_0 0) (< r_div_mod_0_0 expr_30_0))) (and (= (+ (* d_div_mod_0_0 expr_30_0) r_div_mod_0_0) expr_29_0) (and (implies (and true true) (and (>= expr_30_0 0) (<= expr_30_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_30_0 x_9_1) (and (implies (and true true) true) (and (= expr_29_0 2) (and (implies (and true true) (and (>= expr_27_1 0) (<= expr_27_1 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_27_1 (+ expr_21_0 expr_26_1)) (and (implies (and true true) (and (>= expr_26_1 0) (<= expr_26_1 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_26_1 115792089237316195423570985008687907853269984665640564039457584007913129639935) (and (implies (and true true) (and (>= expr_21_0 0) (<= expr_21_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_21_0 x_9_1) (and (ite (and true true) (= x_9_1 (- expr_18_0 1)) (= x_9_1 x_9_0)) (and (implies (and true true) (and (>= expr_19_1 0) (<= expr_19_1 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_19_1 (- expr_18_0 1)) (and (implies (and true true) (and (>= expr_18_0 0) (<= expr_18_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_18_0 x_9_0) (and (implies (and true true) expr_15_1) (and (= expr_15_1 (>= expr_13_0 expr_14_0)) (and (implies (and true true) true) (and (= expr_14_0 0) (and (implies (and true true) (and (>= expr_13_0 0) (<= expr_13_0 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (= expr_13_0 x_9_0) (and (and (>= x_9_0 0) (<= x_9_0 115792089237316195423570985008687907853269984665640564039457584007913129639935)) (and (and (>= a_7_0 0) (<= a_7_0 1461501637330902918203684832716283019655932542975)) (and (>= (|uint[]_tuple_accessor_length| arr_5_length_pair_1) 0) (and (and (and (and (and (and (and (and (and (and (and (and (>= (|block.chainid| tx_0) 0) (<= (|block.chainid| tx_0) 115792089237316195423570985008687907853269984665640564039457584007913129639935)) (and (>= (|block.coinbase| tx_0) 0) (<= (|block.coinbase| tx_0) 1461501637330902918203684832716283019655932542975))) (and (>= (|block.difficulty| tx_0) 0) (<= (|block.difficulty| tx_0) 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (>= (|block.gaslimit| tx_0) 0) (<= (|block.gaslimit| tx_0) 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (>= (|block.number| tx_0) 0) (<= (|block.number| tx_0) 115792089237316195423570985008687907853269984665640564039457584007913129639935))) (and (>= (|block.timestamp| tx_0) 0)
|
2021-01-19 11:56:22 +00:00
|
|
|
(declare-const |EVALEXPR_0| Int)
|
|
|
|
(assert (= |EVALEXPR_0| a_7_0))
|
|
|
|
(declare-const |EVALEXPR_1| Int)
|
|
|
|
(assert (= |EVALEXPR_1| x_9_1))
|
|
|
|
(check-sat)
|
|
|
|
(get-value (|EVALEXPR_0| |EVALEXPR_1| ))
|
|
|
|
"}},"errors":[{"component":"general","errorCode":"4661","formattedMessage":"Warning: BMC: Assertion violation happens here.
|
|
|
|
--> A:12:7:
|
|
|
|
|
|
|
|
|
12 | \t\t\t\t\t\tassert(x > 0);
|
|
|
|
| \t\t\t\t\t\t^^^^^^^^^^^^^
|
|
|
|
Note: Counterexample:
|
|
|
|
a = 0
|
|
|
|
x = 0
|
|
|
|
|
|
|
|
Note: Callstack:
|
|
|
|
Note:
|
|
|
|
|
|
|
|
","message":"BMC: Assertion violation happens here.","secondarySourceLocations":[{"message":"Counterexample:
|
|
|
|
a = 0
|
|
|
|
x = 0
|
|
|
|
"},{"message":"Callstack:"},{"message":""}],"severity":"warning","sourceLocation":{"end":289,"file":"A","start":276},"type":"Warning"}],"sources":{"A":{"id":0}}}
|