+/* automaton - representation of büchi automaton */
+
+/* Copyright (c) 2011. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include "xbt/automaton.h"
xbt_automaton_t xbt_automaton_new_automaton(){
}
-int propositional_symbols_compare_value(const void *s1, const void *s2){
+int propositional_symbols_compare_value(xbt_dynar_t s1, xbt_dynar_t s2){
- return (!((int)s1 == (int)s2));
+ int *iptr1, *iptr2;
+ unsigned int cursor;
+ unsigned int nb_elem = xbt_dynar_length(s1);
+ for(cursor=0;cursor<nb_elem;cursor++){
+ iptr1 = xbt_dynar_get_ptr(s1, cursor);
+ iptr2 = xbt_dynar_get_ptr(s2, cursor);
+ if(*iptr1 != *iptr2)
+ return 1;
+ }
+
+ return 0;
}