% Template for Exams
%
\input{util/version}
\documentclass{article}

\input{util/packages}
\input{util/math_macros}
\input{util/styling_macros}
\input{util/constants}
\input{util/chapter}
\input{util/tcolorbox}

\pagestyle{fancy}

\fancyfoot[C]{}
\fancyfoot[R]{Page \thepage\ of \pageref{LastPage}}
\fancypagestyle{autoempty}{
  \fancyhf{}
  \fancyfoot[R]{Page \thepage\ of \pageref{LastPage}}
  \renewcommand{\footrulewidth}{.4pt}
  \renewcommand{\headrulewidth}{.4pt}
}
\renewcommand{\footrulewidth}{\headrulewidth}
%\renewcommand{\headrule}{\ifthenelse{\isodd{\thepage}}{\hrule}{}}
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}
\thispagestyle{autoempty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

\newcounter{beforeCounter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\begin{titlepage}
\begin{center}

{\Large {\bf{Questionnaire ``Logic and Computability''}}}

\hspace{3cm}


{\Large {\bf{Summer Term 2023}}}

\tableofcontents

\end{center}
\end{titlepage}

\thispagestyle{empty}

\setcounter{page}{1}

\clearpage


\ifchapterproplogic
  \setsectionnum{0}
  \section{Propositional Logic}
    \input{propositional_logic/propositional_logic.tex}
  \pagebreak
\fi

\ifchaptersatsolver
  \setsectionnum{1}
  \section{SAT Solvers}
  \input{sat_solvers_dpll/sat_solvers_dpll.tex}
  \pagebreak
\fi

\ifchapterbdd
  \setsectionnum{2}
  \section{Binary Decision Diagrams}
  \input{bdds/bdds.tex}
  \pagebreak
\fi


%---------------------------------------------------------


\end{document}
