|
1039 | 1039 | },
|
1040 | 1040 | {
|
1041 | 1041 | "cell_type": "code",
|
1042 |
| - "execution_count": 22, |
| 1042 | + "execution_count": 33, |
1043 | 1043 | "id": "93f8e8d3-839a-4fbb-b209-da6425fcb5cf",
|
1044 | 1044 | "metadata": {},
|
1045 | 1045 | "outputs": [],
|
|
1049 | 1049 | " while c < 10:\n",
|
1050 | 1050 | " c += 3\n",
|
1051 | 1051 | " if c > a:\n",
|
1052 |
| - " return c\n", |
| 1052 | + " return c + 1\n", |
1053 | 1053 | " return c"
|
1054 | 1054 | ]
|
1055 | 1055 | },
|
1056 | 1056 | {
|
1057 | 1057 | "cell_type": "code",
|
1058 |
| - "execution_count": 23, |
| 1058 | + "execution_count": 34, |
1059 | 1059 | "id": "4dbf537f-b67d-4203-947f-9ba669eb8edb",
|
1060 | 1060 | "metadata": {},
|
1061 | 1061 | "outputs": [],
|
|
1065 | 1065 | },
|
1066 | 1066 | {
|
1067 | 1067 | "cell_type": "code",
|
1068 |
| - "execution_count": 24, |
| 1068 | + "execution_count": 35, |
1069 | 1069 | "id": "8e3bd9f6-0b15-402f-b7d2-7233bcf881dc",
|
1070 | 1070 | "metadata": {},
|
1071 | 1071 | "outputs": [
|
|
1148 | 1148 | "<title>5</title>\n",
|
1149 | 1149 | "<polygon fill=\"none\" stroke=\"black\" points=\"116,-100 15,-100 15,0 116,0 116,-100\"/>\n",
|
1150 | 1150 | "<text text-anchor=\"middle\" x=\"65.5\" y=\"-84.8\" font-family=\"Times,serif\" font-size=\"14.00\">5</text>\n",
|
1151 |
| - "<text text-anchor=\"start\" x=\"23\" y=\"-53.8\" font-family=\"Times,serif\" font-size=\"14.00\">return c</text>\n", |
| 1151 | + "<text text-anchor=\"start\" x=\"23\" y=\"-53.8\" font-family=\"Times,serif\" font-size=\"14.00\">return c + 1</text>\n", |
1152 | 1152 | "<text text-anchor=\"start\" x=\"23\" y=\"-22.8\" font-family=\"Times,serif\" font-size=\"14.00\">jump targets: ()</text>\n",
|
1153 | 1153 | "<text text-anchor=\"middle\" x=\"65.5\" y=\"-7.8\" font-family=\"Times,serif\" font-size=\"14.00\">back edges: ()</text>\n",
|
1154 | 1154 | "</g>\n",
|
|
1162 | 1162 | "</svg>\n"
|
1163 | 1163 | ],
|
1164 | 1164 | "text/plain": [
|
1165 |
| - "<graphviz.graphs.Digraph at 0x107ea94f0>" |
| 1165 | + "<graphviz.graphs.Digraph at 0x107e82a80>" |
1166 | 1166 | ]
|
1167 | 1167 | },
|
1168 |
| - "execution_count": 24, |
| 1168 | + "execution_count": 35, |
1169 | 1169 | "metadata": {},
|
1170 | 1170 | "output_type": "execute_result"
|
1171 | 1171 | }
|
|
1176 | 1176 | },
|
1177 | 1177 | {
|
1178 | 1178 | "cell_type": "code",
|
1179 |
| - "execution_count": 25, |
| 1179 | + "execution_count": 36, |
1180 | 1180 | "id": "1fce9b69-084c-4b52-94fc-699cb28f3549",
|
1181 | 1181 | "metadata": {},
|
1182 | 1182 | "outputs": [],
|
|
1186 | 1186 | },
|
1187 | 1187 | {
|
1188 | 1188 | "cell_type": "code",
|
1189 |
| - "execution_count": 26, |
| 1189 | + "execution_count": 37, |
1190 | 1190 | "id": "0446d173-eafd-448e-a163-ec6ba7c55784",
|
1191 |
| - "metadata": {}, |
| 1191 | + "metadata": { |
| 1192 | + "scrolled": true |
| 1193 | + }, |
1192 | 1194 | "outputs": [
|
1193 | 1195 | {
|
1194 | 1196 | "data": {
|
|
1468 | 1470 | "<title>5</title>\n",
|
1469 | 1471 | "<polygon fill=\"none\" stroke=\"black\" points=\"604,-262 422,-262 422,-162 604,-162 604,-262\"/>\n",
|
1470 | 1472 | "<text text-anchor=\"middle\" x=\"513\" y=\"-246.8\" font-family=\"Times,serif\" font-size=\"14.00\">5</text>\n",
|
1471 |
| - "<text text-anchor=\"start\" x=\"430\" y=\"-215.8\" font-family=\"Times,serif\" font-size=\"14.00\">return c</text>\n", |
| 1473 | + "<text text-anchor=\"start\" x=\"430\" y=\"-215.8\" font-family=\"Times,serif\" font-size=\"14.00\">return c + 1</text>\n", |
1472 | 1474 | "<text text-anchor=\"start\" x=\"430\" y=\"-184.8\" font-family=\"Times,serif\" font-size=\"14.00\">jump targets: ('tail_region_0',)</text>\n",
|
1473 | 1475 | "<text text-anchor=\"middle\" x=\"513\" y=\"-169.8\" font-family=\"Times,serif\" font-size=\"14.00\">back edges: ()</text>\n",
|
1474 | 1476 | "</g>\n",
|
|
1502 | 1504 | "</svg>\n"
|
1503 | 1505 | ],
|
1504 | 1506 | "text/plain": [
|
1505 |
| - "<graphviz.graphs.Digraph at 0x107ea9400>" |
| 1507 | + "<graphviz.graphs.Digraph at 0x107ea9880>" |
1506 | 1508 | ]
|
1507 | 1509 | },
|
1508 |
| - "execution_count": 26, |
| 1510 | + "execution_count": 37, |
1509 | 1511 | "metadata": {},
|
1510 | 1512 | "output_type": "execute_result"
|
1511 | 1513 | }
|
|
0 commit comments