Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
concordium
smart-contract-interactions
Commits
e8b14a30
Commit
e8b14a30
authored
May 31, 2019
by
Jakob Botsch Nielsen
Browse files
Rename unpacked exploit example
parent
0ae4f4a7
Pipeline
#12593
passed with stage
in 6 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
theories/Congress_Buggy.v
View file @
e8b14a30
...
...
@@ -476,8 +476,8 @@ Section Theories.
do
chain
<-
builder_add_block
chain
baker
acts
(
next_num
chain
)
0
;
Some
(
congress
,
chain
).
Definition
final
:=
(
unpack_option
exploit_example
)
<:
(
@
Address
LocalChainBase
)
*
LocalChainBuilderDepthFirst
.
Definition
unpacked_exploit_example
:
Address
*
LocalChainBuilderDepthFirst
:=
unpack_option
exploit_example
.
(
*
Now
we
prove
that
this
version
of
the
contract
is
buggy
,
i
.
e
.
it
does
not
satisfy
the
property
we
proved
for
the
other
version
of
the
Congress
.
We
filter
out
transactions
...
...
@@ -489,10 +489,10 @@ Section Theories.
length
(
filter
(
fun
tx
=>
negb
(
tx_to
tx
=?
addr
)
%
address
)
(
outgoing_txs
state
addr
))
>
num_acts_created_in_proposals
state
addr
.
Proof
.
exists
(
build_chain_state
(
snd
final
)
[]).
exists
(
fst
final
).
exists
(
build_chain_state
(
snd
unpacked_exploit_example
)
[]).
exists
(
fst
unpacked_exploit_example
).
split
;
[
|
split
].
-
destruct
(
snd
final
);
auto
.
-
destruct
(
snd
unpacked_exploit_example
);
auto
.
-
reflexivity
.
-
vm_compute
.
lia
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment