-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompcert.backend.Conventions.html
170 lines (137 loc) · 26 KB
/
compcert.backend.Conventions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="coqdoc.css" rel="stylesheet" type="text/css" />
<title>compcert.backend.Conventions</title>
</head>
<body>
<div id="page">
<div id="header">
</div>
<div id="main">
<h1 class="libtitle">Library compcert.backend.Conventions</h1>
<div class="code">
<br/>
</div>
<div class="doc">
Function calling conventions and other conventions regarding the use of
machine registers and stack slots.
</div>
<div class="code">
<br/>
<span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="compcert.lib.Coqlib.html#"><span class="id" title="library">Coqlib</span></a>.<br/>
<span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="compcert.common.AST.html#"><span class="id" title="library">AST</span></a>.<br/>
<span class="id" title="keyword">Require</span> <span class="id" title="keyword">Import</span> <a class="idref" href="compcert.backend.Locations.html#"><span class="id" title="library">Locations</span></a>.<br/>
<span class="id" title="keyword">Require</span> <span class="id" title="keyword">Export</span> <a class="idref" href="compcert.x86.Conventions1.html#"><span class="id" title="library">Conventions1</span></a>.<br/>
<br/>
</div>
<div class="doc">
The processor-dependent and EABI-dependent definitions are in
<span class="inlinecode"><span class="id" title="var">arch</span>/<span class="id" title="var">abi</span>/<span class="id" title="var">Conventions1.v</span></span>. This file adds various processor-independent
definitions and lemmas.
</div>
<div class="code">
<br/>
<span class="id" title="keyword">Lemma</span> <a name="loc_arguments_acceptable_2"><span class="id" title="lemma">loc_arguments_acceptable_2</span></a>:<br/>
<span class="id" title="keyword">∀</span> <span class="id" title="var">s</span> <span class="id" title="var">l</span>,<br/>
<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#In"><span class="id" title="definition">In</span></a> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a> (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#s"><span class="id" title="variable">s</span></a>)) <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#d43e996736952df71ebeeae74d10a287"><span class="id" title="notation">→</span></a> <a class="idref" href="compcert.x86.Conventions1.html#loc_argument_acceptable"><span class="id" title="definition">loc_argument_acceptable</span></a> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a>.<br/>
<span class="id" title="keyword">Proof</span>.<br/>
<span class="id" title="tactic">intros</span> <span class="id" title="tactic">until</span> <span class="id" title="var">l</span>. <span class="id" title="tactic">generalize</span> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments_acceptable"><span class="id" title="lemma">loc_arguments_acceptable</span></a> <span class="id" title="var">s</span>). <span class="id" title="tactic">generalize</span> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <span class="id" title="var">s</span>).<br/>
<span class="id" title="tactic">induction</span> <span class="id" title="var">l0</span> <span class="id" title="keyword">as</span> [ | <span class="id" title="var">p</span> <span class="id" title="var">pl</span>]; <span class="id" title="tactic">simpl</span>; <span class="id" title="tactic">intros</span>.<br/>
- <span class="id" title="var">contradiction</span>.<br/>
- <span class="id" title="tactic">rewrite</span> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#in_app_iff"><span class="id" title="lemma">in_app_iff</span></a> <span class="id" title="keyword">in</span> <span class="id" title="var">H0</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">H0</span>.<br/>
<span class="id" title="var">exploit</span> <span class="id" title="var">H</span>; <span class="id" title="tactic">eauto</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">p</span>; <span class="id" title="tactic">simpl</span> <span class="id" title="keyword">in</span> *; <span class="id" title="tactic">intuition</span> <span class="id" title="tactic">congruence</span>.<br/>
<span class="id" title="tactic">apply</span> <span class="id" title="var">IHpl</span>; <span class="id" title="tactic">auto</span>.<br/>
<span class="id" title="keyword">Qed</span>.<br/>
<br/>
</div>
<div class="doc">
<a name="lab419"></a><h2 class="section">Location of function parameters</h2>
<div class="paragraph"> </div>
A function finds the values of its parameter in the same locations
where its caller stored them, except that the stack-allocated arguments,
viewed as <span class="inlinecode"><a class="idref" href="compcert.backend.Locations.html#Outgoing"><span class="id" title="constructor">Outgoing</span></a></span> slots by the caller, are accessed via <span class="inlinecode"><a class="idref" href="compcert.backend.Locations.html#Incoming"><span class="id" title="constructor">Incoming</span></a></span>
slots (at the same offsets and types) in the callee.
</div>
<div class="code">
<br/>
<span class="id" title="keyword">Definition</span> <a name="parameter_of_argument"><span class="id" title="definition">parameter_of_argument</span></a> (<span class="id" title="var">l</span>: <a class="idref" href="compcert.backend.Locations.html#loc"><span class="id" title="inductive">loc</span></a>) : <a class="idref" href="compcert.backend.Locations.html#loc"><span class="id" title="inductive">loc</span></a> :=<br/>
<span class="id" title="keyword">match</span> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a> <span class="id" title="keyword">with</span><br/>
| <a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Outgoing"><span class="id" title="constructor">Outgoing</span></a> <span class="id" title="var">n</span> <span class="id" title="var">ty</span> ⇒ <a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Incoming"><span class="id" title="constructor">Incoming</span></a> <span class="id" title="var">n</span> <span class="id" title="var">ty</span><br/>
| <span class="id" title="var">_</span> ⇒ <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a><br/>
<span class="id" title="keyword">end</span>.<br/>
<br/>
<span class="id" title="keyword">Definition</span> <a name="loc_parameters"><span class="id" title="definition">loc_parameters</span></a> (<span class="id" title="var">s</span>: <a class="idref" href="compcert.common.AST.html#signature"><span class="id" title="record">signature</span></a>) : <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Datatypes.html#list"><span class="id" title="inductive">list</span></a> (<a class="idref" href="compcert.common.AST.html#rpair"><span class="id" title="inductive">rpair</span></a> <a class="idref" href="compcert.backend.Locations.html#loc"><span class="id" title="inductive">loc</span></a>) :=<br/>
<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#map"><span class="id" title="definition">List.map</span></a> (<a class="idref" href="compcert.common.AST.html#map_rpair"><span class="id" title="definition">map_rpair</span></a> <a class="idref" href="compcert.backend.Conventions.html#parameter_of_argument"><span class="id" title="definition">parameter_of_argument</span></a>) (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#s"><span class="id" title="variable">s</span></a>).<br/>
<br/>
<span class="id" title="keyword">Lemma</span> <a name="incoming_slot_in_parameters"><span class="id" title="lemma">incoming_slot_in_parameters</span></a>:<br/>
<span class="id" title="keyword">∀</span> <span class="id" title="var">ofs</span> <span class="id" title="var">ty</span> <span class="id" title="var">sg</span>,<br/>
<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#In"><span class="id" title="definition">In</span></a> (<a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Incoming"><span class="id" title="constructor">Incoming</span></a> <a class="idref" href="compcert.backend.Conventions.html#ofs"><span class="id" title="variable">ofs</span></a> <a class="idref" href="compcert.backend.Conventions.html#ty"><span class="id" title="variable">ty</span></a>) (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.backend.Conventions.html#loc_parameters"><span class="id" title="definition">loc_parameters</span></a> <a class="idref" href="compcert.backend.Conventions.html#sg"><span class="id" title="variable">sg</span></a>)) <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#d43e996736952df71ebeeae74d10a287"><span class="id" title="notation">→</span></a><br/>
<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#In"><span class="id" title="definition">In</span></a> (<a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Outgoing"><span class="id" title="constructor">Outgoing</span></a> <a class="idref" href="compcert.backend.Conventions.html#ofs"><span class="id" title="variable">ofs</span></a> <a class="idref" href="compcert.backend.Conventions.html#ty"><span class="id" title="variable">ty</span></a>) (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#sg"><span class="id" title="variable">sg</span></a>)).<br/>
<span class="id" title="keyword">Proof</span>.<br/>
<span class="id" title="tactic">intros</span>.<br/>
<span class="id" title="tactic">replace</span> (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.backend.Conventions.html#loc_parameters"><span class="id" title="definition">loc_parameters</span></a> <span class="id" title="var">sg</span>)) <span class="id" title="keyword">with</span> (<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#map"><span class="id" title="definition">List.map</span></a> <a class="idref" href="compcert.backend.Conventions.html#parameter_of_argument"><span class="id" title="definition">parameter_of_argument</span></a> (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <span class="id" title="var">sg</span>))) <span class="id" title="keyword">in</span> <span class="id" title="var">H</span>.<br/>
<span class="id" title="tactic">change</span> (<a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Incoming"><span class="id" title="constructor">Incoming</span></a> <span class="id" title="var">ofs</span> <span class="id" title="var">ty</span>) <span class="id" title="keyword">with</span> (<a class="idref" href="compcert.backend.Conventions.html#parameter_of_argument"><span class="id" title="definition">parameter_of_argument</span></a> (<a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <a class="idref" href="compcert.backend.Locations.html#Outgoing"><span class="id" title="constructor">Outgoing</span></a> <span class="id" title="var">ofs</span> <span class="id" title="var">ty</span>)) <span class="id" title="keyword">in</span> <span class="id" title="var">H</span>.<br/>
<span class="id" title="var">exploit</span> <a class="idref" href="compcert.lib.Coqlib.html#list_in_map_inv"><span class="id" title="lemma">list_in_map_inv</span></a>. <span class="id" title="tactic">eexact</span> <span class="id" title="var">H</span>. <span class="id" title="tactic">intros</span> [<span class="id" title="var">x</span> [<span class="id" title="var">A</span> <span class="id" title="var">B</span>]]. <span class="id" title="tactic">simpl</span> <span class="id" title="keyword">in</span> <span class="id" title="var">A</span>.<br/>
<span class="id" title="var">exploit</span> <a class="idref" href="compcert.backend.Conventions.html#loc_arguments_acceptable_2"><span class="id" title="lemma">loc_arguments_acceptable_2</span></a>; <span class="id" title="tactic">eauto</span>. <span class="id" title="tactic">unfold</span> <a class="idref" href="compcert.x86.Conventions1.html#loc_argument_acceptable"><span class="id" title="definition">loc_argument_acceptable</span></a>; <span class="id" title="tactic">intros</span>.<br/>
<span class="id" title="tactic">destruct</span> <span class="id" title="var">x</span>; <span class="id" title="tactic">simpl</span> <span class="id" title="keyword">in</span> <span class="id" title="var">A</span>; <span class="id" title="tactic">try</span> <span class="id" title="tactic">discriminate</span>.<br/>
<span class="id" title="tactic">destruct</span> <span class="id" title="var">sl</span>; <span class="id" title="tactic">try</span> <span class="id" title="var">contradiction</span>.<br/>
<span class="id" title="var">inv</span> <span class="id" title="var">A</span>. <span class="id" title="tactic">auto</span>.<br/>
<span class="id" title="tactic">unfold</span> <a class="idref" href="compcert.backend.Conventions.html#loc_parameters"><span class="id" title="definition">loc_parameters</span></a>. <span class="id" title="tactic">generalize</span> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <span class="id" title="var">sg</span>). <span class="id" title="tactic">induction</span> <span class="id" title="var">l</span> <span class="id" title="keyword">as</span> [ | <span class="id" title="var">p</span> <span class="id" title="var">l</span>]; <span class="id" title="tactic">simpl</span>; <span class="id" title="tactic">intros</span>.<br/>
<span class="id" title="tactic">auto</span>.<br/>
<span class="id" title="tactic">rewrite</span> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#map_app"><span class="id" title="lemma">map_app</span></a>. <span class="id" title="tactic">f_equal</span>; <span class="id" title="tactic">auto</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">p</span>; <span class="id" title="tactic">auto</span>.<br/>
<span class="id" title="keyword">Qed</span>.<br/>
<br/>
</div>
<div class="doc">
<a name="lab420"></a><h1 class="section">Tail calls</h1>
<div class="paragraph"> </div>
A tail-call is possible for a signature if the corresponding
arguments are all passed in registers.
<div class="paragraph"> </div>
A tail-call is possible for a signature if the corresponding
arguments are all passed in registers.
</div>
<div class="code">
<br/>
<span class="id" title="keyword">Definition</span> <a name="tailcall_possible"><span class="id" title="definition">tailcall_possible</span></a> (<span class="id" title="var">s</span>: <a class="idref" href="compcert.common.AST.html#signature"><span class="id" title="record">signature</span></a>) : <span class="id" title="keyword">Prop</span> :=<br/>
<span class="id" title="keyword">∀</span> <span class="id" title="var">l</span>, <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#In"><span class="id" title="definition">In</span></a> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a> (<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#s"><span class="id" title="variable">s</span></a>)) <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#d43e996736952df71ebeeae74d10a287"><span class="id" title="notation">→</span></a><br/>
<span class="id" title="keyword">match</span> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a> <span class="id" title="keyword">with</span> <a class="idref" href="compcert.backend.Locations.html#R"><span class="id" title="constructor">R</span></a> <span class="id" title="var">_</span> ⇒ <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#True"><span class="id" title="inductive">True</span></a> | <a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <span class="id" title="var">_</span> <span class="id" title="var">_</span> <span class="id" title="var">_</span> ⇒ <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#False"><span class="id" title="inductive">False</span></a> <span class="id" title="keyword">end</span>.<br/>
<br/>
</div>
<div class="doc">
Decide whether a tailcall is possible.
</div>
<div class="code">
<br/>
<span class="id" title="keyword">Definition</span> <a name="tailcall_is_possible"><span class="id" title="definition">tailcall_is_possible</span></a> (<span class="id" title="var">sg</span>: <a class="idref" href="compcert.common.AST.html#signature"><span class="id" title="record">signature</span></a>) : <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Datatypes.html#bool"><span class="id" title="inductive">bool</span></a> :=<br/>
<a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#forallb"><span class="id" title="definition">List.forallb</span></a><br/>
(<span class="id" title="keyword">fun</span> <span class="id" title="var">l</span> ⇒ <span class="id" title="keyword">match</span> <a class="idref" href="compcert.backend.Conventions.html#l"><span class="id" title="variable">l</span></a> <span class="id" title="keyword">with</span> <a class="idref" href="compcert.backend.Locations.html#R"><span class="id" title="constructor">R</span></a> <span class="id" title="var">_</span> ⇒ <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Datatypes.html#true"><span class="id" title="constructor">true</span></a> | <a class="idref" href="compcert.backend.Locations.html#S"><span class="id" title="constructor">S</span></a> <span class="id" title="var">_</span> <span class="id" title="var">_</span> <span class="id" title="var">_</span> ⇒ <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Datatypes.html#false"><span class="id" title="constructor">false</span></a> <span class="id" title="keyword">end</span>)<br/>
(<a class="idref" href="compcert.common.AST.html#regs_of_rpairs"><span class="id" title="definition">regs_of_rpairs</span></a> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments"><span class="id" title="definition">loc_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#sg"><span class="id" title="variable">sg</span></a>)).<br/>
<br/>
<span class="id" title="keyword">Lemma</span> <a name="tailcall_is_possible_correct"><span class="id" title="lemma">tailcall_is_possible_correct</span></a>:<br/>
<span class="id" title="keyword">∀</span> <span class="id" title="var">s</span>, <a class="idref" href="compcert.backend.Conventions.html#tailcall_is_possible"><span class="id" title="definition">tailcall_is_possible</span></a> <a class="idref" href="compcert.backend.Conventions.html#s"><span class="id" title="variable">s</span></a> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#1c39bf18749e5cc609e83c0a0ba5a372"><span class="id" title="notation">=</span></a> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Datatypes.html#true"><span class="id" title="constructor">true</span></a> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#d43e996736952df71ebeeae74d10a287"><span class="id" title="notation">→</span></a> <a class="idref" href="compcert.backend.Conventions.html#tailcall_possible"><span class="id" title="definition">tailcall_possible</span></a> <a class="idref" href="compcert.backend.Conventions.html#s"><span class="id" title="variable">s</span></a>.<br/>
<span class="id" title="keyword">Proof</span>.<br/>
<span class="id" title="tactic">unfold</span> <a class="idref" href="compcert.backend.Conventions.html#tailcall_is_possible"><span class="id" title="definition">tailcall_is_possible</span></a>; <span class="id" title="tactic">intros</span>. <span class="id" title="tactic">rewrite</span> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Lists.List.html#forallb_forall"><span class="id" title="lemma">forallb_forall</span></a> <span class="id" title="keyword">in</span> <span class="id" title="var">H</span>.<br/>
<span class="id" title="tactic">red</span>; <span class="id" title="tactic">intros</span>. <span class="id" title="tactic">apply</span> <span class="id" title="var">H</span> <span class="id" title="keyword">in</span> <span class="id" title="var">H0</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">l</span>; [<span class="id" title="tactic">auto</span>|<span class="id" title="tactic">discriminate</span>].<br/>
<span class="id" title="keyword">Qed</span>.<br/>
<br/>
<span class="id" title="keyword">Lemma</span> <a name="zero_size_arguments_tailcall_possible"><span class="id" title="lemma">zero_size_arguments_tailcall_possible</span></a>:<br/>
<span class="id" title="keyword">∀</span> <span class="id" title="var">sg</span>, <a class="idref" href="compcert.x86.Conventions1.html#size_arguments"><span class="id" title="definition">size_arguments</span></a> <a class="idref" href="compcert.backend.Conventions.html#sg"><span class="id" title="variable">sg</span></a> <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#1c39bf18749e5cc609e83c0a0ba5a372"><span class="id" title="notation">=</span></a> 0 <a class="idref" href="http://coq.inria.fr/distrib/8.6/stdlib/Coq.Init.Logic.html#d43e996736952df71ebeeae74d10a287"><span class="id" title="notation">→</span></a> <a class="idref" href="compcert.backend.Conventions.html#tailcall_possible"><span class="id" title="definition">tailcall_possible</span></a> <a class="idref" href="compcert.backend.Conventions.html#sg"><span class="id" title="variable">sg</span></a>.<br/>
<span class="id" title="keyword">Proof</span>.<br/>
<span class="id" title="tactic">intros</span>; <span class="id" title="tactic">red</span>; <span class="id" title="tactic">intros</span>. <span class="id" title="var">exploit</span> <a class="idref" href="compcert.backend.Conventions.html#loc_arguments_acceptable_2"><span class="id" title="lemma">loc_arguments_acceptable_2</span></a>; <span class="id" title="tactic">eauto</span>.<br/>
<span class="id" title="tactic">unfold</span> <a class="idref" href="compcert.x86.Conventions1.html#loc_argument_acceptable"><span class="id" title="definition">loc_argument_acceptable</span></a>.<br/>
<span class="id" title="tactic">destruct</span> <span class="id" title="var">l</span>; <span class="id" title="tactic">intros</span>. <span class="id" title="tactic">auto</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">sl</span>; <span class="id" title="tactic">try</span> <span class="id" title="var">contradiction</span>. <span class="id" title="tactic">destruct</span> <span class="id" title="var">H1</span>.<br/>
<span class="id" title="tactic">generalize</span> (<a class="idref" href="compcert.x86.Conventions1.html#loc_arguments_bounded"><span class="id" title="lemma">loc_arguments_bounded</span></a> <span class="id" title="var">_</span> <span class="id" title="var">_</span> <span class="id" title="var">_</span> <span class="id" title="var">H0</span>).<br/>
<span class="id" title="tactic">generalize</span> (<a class="idref" href="compcert.backend.Locations.html#typesize_pos"><span class="id" title="lemma">typesize_pos</span></a> <span class="id" title="var">ty</span>). <span class="id" title="tactic">omega</span>.<br/>
<span class="id" title="keyword">Qed</span>.<br/>
</div>
</div>
<div id="footer">
<hr/><a href="index.html">Index</a><hr/>This page has been generated by <a href="http://coq.inria.fr/">coqdoc</a>
</div>
</div>
</body>
</html>