diff --git a/.github/workflows/2pdf.yml b/.github/workflows/2pdf.yml index 8fb2038..6aed863 100644 --- a/.github/workflows/2pdf.yml +++ b/.github/workflows/2pdf.yml @@ -6,7 +6,7 @@ on: - main # Paths can be used only to trigger actions when you have edited certain files, such as a file within the /docs directory paths: - - 'rendu/presentation.tex' + - 'rendu/**' # - 'images/**' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/rendu/graphs/ex_propagation.dot b/rendu/graphs/ex_propagation.dot new file mode 100644 index 0000000..407c4ef --- /dev/null +++ b/rendu/graphs/ex_propagation.dot @@ -0,0 +1,17 @@ +digraph cfg { +node [shape = "box"] +_test_prologue[label = ".test.prologue:\l"] +_test_prologue -> _test_BB0 +_test_BB0[label = ".test.BB0:\l_3 := 42\l_2 := _3\l"] +_test_BB0 -> _test_BB1 [label = "_1"] +_test_BB0 -> _test_BB2 [label = "not _1"] +_test_BB1[label = ".test.BB1:\l_5 := 3\l_4 := _5\l"] +_test_BB1 -> _test_BB3 +_test_BB2[label = ".test.BB2:\l_6 := 2\l_4 := _6\l"] +_test_BB2 -> _test_BB3 +_test_BB3[label = ".test.BB3:\l_7 := _2 + _4\l_0 := _7\l"] +_test_BB3 -> _test_epilogue +_test_BB4[label = ".test.BB4:\l"] +_test_BB4 -> _test_epilogue +_test_epilogue[label = ".test.epilogue:\l"] +} diff --git a/rendu/graphs/ex_propagation.dot.png b/rendu/graphs/ex_propagation.dot.png new file mode 100644 index 0000000..a9c0fb3 Binary files /dev/null and b/rendu/graphs/ex_propagation.dot.png differ diff --git a/rendu/graphs/ex_propagation_after.dot b/rendu/graphs/ex_propagation_after.dot new file mode 100644 index 0000000..d543b71 --- /dev/null +++ b/rendu/graphs/ex_propagation_after.dot @@ -0,0 +1,17 @@ +digraph cfg { +node [shape = "box"] +_test_prologue[label = ".test.prologue:\l"] +_test_prologue -> _test_BB0 +_test_BB0[label = ".test.BB0:\l_3 := 42\l_2 := 42\l"] +_test_BB0 -> _test_BB1 [label = "_1"] +_test_BB0 -> _test_BB2 [label = "not _1"] +_test_BB1[label = ".test.BB1:\l_5 := 3\l_4 := 3\l"] +_test_BB1 -> _test_BB3 +_test_BB2[label = ".test.BB2:\l_6 := 2\l_4 := 2\l"] +_test_BB2 -> _test_BB3 +_test_BB3[label = ".test.BB3:\l_7 := 42 + _4\l_0 := _7\l"] +_test_BB3 -> _test_epilogue +_test_BB4[label = ".test.BB4:\l"] +_test_BB4 -> _test_epilogue +_test_epilogue[label = ".test.epilogue:\l"] +} diff --git a/rendu/graphs/ex_propagation_after.dot.png b/rendu/graphs/ex_propagation_after.dot.png new file mode 100644 index 0000000..7bff7ac Binary files /dev/null and b/rendu/graphs/ex_propagation_after.dot.png differ diff --git a/rendu/graphs/fact_no_opti.dot b/rendu/graphs/fact_no_opti.dot new file mode 100644 index 0000000..b062e53 --- /dev/null +++ b/rendu/graphs/fact_no_opti.dot @@ -0,0 +1,17 @@ +digraph cfg { +node [shape = "box"] +_main_prologue[label = ".main.prologue:\l"] +_main_prologue -> _main_BB0 +_main_BB0[label = ".main.BB0:\l_2 := 10\l_1 := _2\l_4 := 1\l_3 := _4\l"] +_main_BB0 -> _main_BB1 +_main_BB1[label = ".main.BB1:\l_5 := 0\l_6 := _1 > _5\l"] +_main_BB1 -> _main_BB2 [label = "_6"] +_main_BB1 -> _main_BB3 [label = "not _6"] +_main_BB2[label = ".main.BB2:\l_7 := _3 * _1\l_3 := _7\l_8 := 1\l_9 := _1 - _8\l_1 := _9\l"] +_main_BB2 -> _main_BB1 +_main_BB3[label = ".main.BB3:\l_0 := _3\l"] +_main_BB3 -> _main_epilogue +_main_BB4[label = ".main.BB4:\l"] +_main_BB4 -> _main_epilogue +_main_epilogue[label = ".main.epilogue:\l"] +} diff --git a/rendu/graphs/fact_no_opti.dot.png b/rendu/graphs/fact_no_opti.dot.png new file mode 100644 index 0000000..57917dd Binary files /dev/null and b/rendu/graphs/fact_no_opti.dot.png differ diff --git a/rendu/graphs/fact_no_opti.svg b/rendu/graphs/fact_no_opti.svg new file mode 100644 index 0000000..95f683c --- /dev/null +++ b/rendu/graphs/fact_no_opti.svg @@ -0,0 +1,107 @@ + + + + + + +cfg + + + +_fact_prologue + +.fact.prologue: + + + +_fact_BB0 + +.fact.BB0: +_3 := 1 +_2 := _3 + + + +_fact_prologue->_fact_BB0 + + + + + +_fact_BB1 + +.fact.BB1: +_4 := _1 +_1 := _1 - 1 +_5 := 1 +_6 := _4 > _5 + + + +_fact_BB0->_fact_BB1 + + + + + +_fact_BB2 + +.fact.BB2: +_2 := _2 * _1 + + + +_fact_BB1->_fact_BB2 + + +_6 + + + +_fact_BB3 + +.fact.BB3: +_0 := _2 + + + +_fact_BB1->_fact_BB3 + + +not _6 + + + +_fact_BB2->_fact_BB1 + + + + + +_fact_epilogue + +.fact.epilogue: + + + +_fact_BB3->_fact_epilogue + + + + + +_fact_BB4 + +.fact.BB4: + + + +_fact_BB4->_fact_epilogue + + + + + diff --git a/rendu/logo.png b/rendu/logo.png new file mode 100644 index 0000000..a09a384 Binary files /dev/null and b/rendu/logo.png differ