// File: dtsaras[P]GCW/GCW.cpp
// Function: count_change_strat(Graph&, Locations*, int)
int count_change_strat(Graph & g, Locations * usersLocations, int p){
	int changedSeedsets = 0;
	for (int seed : g.seedSets[p]){
		// Did not find it in the previous seedset
		if (g.seedSets_before[p].find(seed) == g.seedSets_before[p].end()){
			bool not_same_location = true;
			for (int old_seed : g.seedSets_before[p]){
				if (usersLocations->same_location(seed, old_seed)){
					not_same_location = false;
					break;	
				}
			}
			if (not_same_location)
				++changedSeedsets;
		}
	}		
	if(changedSeedsets > 0){
		g.seedSets_before[p].clear();
		for (int seed : g.seedSets[p])
			g.seedSets_before[p].insert(seed);
	}
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movl %edx, 0x94(%rsp)
movl $0x0, 0x90(%rsp)
movq 0xa0(%rsp), %rax
movq 0xad0(%rax), %rax
movslq 0x94(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rdi
callq 0xf1c0
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rdi
callq 0xf1f0
movq %rax, 0x78(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xf220
testb $0x1, %al
jne 0x7f21
jmp 0x806a
leaq 0x80(%rsp), %rdi
callq 0xf240
movl (%rax), %eax
movl %eax, 0x74(%rsp)
movq 0xa0(%rsp), %rax
movq 0xad8(%rax), %rdi
movslq 0x94(%rsp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq 0x74(%rsp), %rsi
callq 0xf290
movq %rax, 0x68(%rsp)
movq 0xa0(%rsp), %rax
movq 0xad8(%rax), %rdi
movslq 0x94(%rsp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
callq 0xf1f0
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xf270
testb $0x1, %al
jne 0x7fa1
jmp 0x8056
movb $0x1, 0x5f(%rsp)
movq 0xa0(%rsp), %rax
movq 0xad8(%rax), %rax
movslq 0x94(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0xf1c0
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rdi
callq 0xf1f0
movq %rax, 0x40(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xf220
testb $0x1, %al
jne 0x7ffc
jmp 0x803c
leaq 0x48(%rsp), %rdi
callq 0xf240
movl (%rax), %eax
movl %eax, 0x3c(%rsp)
movq 0x98(%rsp), %rdi
movl 0x74(%rsp), %esi
movl 0x3c(%rsp), %edx
callq 0x1af00
testb $0x1, %al
jne 0x8027
jmp 0x802e
movb $0x0, 0x5f(%rsp)
jmp 0x803c
jmp 0x8030
leaq 0x48(%rsp), %rdi
callq 0xf2d0
jmp 0x7fe7
testb $0x1, 0x5f(%rsp)
je 0x8054
movl 0x90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x90(%rsp)
jmp 0x8056
jmp 0x8058
leaq 0x80(%rsp), %rdi
callq 0xf2d0
jmp 0x7f06
cmpl $0x0, 0x90(%rsp)
jle 0x8140
movq 0xa0(%rsp), %rax
movq 0xad8(%rax), %rdi
movslq 0x94(%rsp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
callq 0xf300
movq 0xa0(%rsp), %rax
movq 0xad0(%rax), %rax
movslq 0x94(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0xf1c0
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
callq 0xf1f0
movq %rax, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xf220
testb $0x1, %al
jne 0x80f1
jmp 0x813e
leaq 0x28(%rsp), %rdi
callq 0xf240
movl (%rax), %eax
movl %eax, 0x1c(%rsp)
movq 0xa0(%rsp), %rax
movq 0xad8(%rax), %rdi
movslq 0x94(%rsp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq 0x1c(%rsp), %rsi
callq 0xf310
movq %rax, 0x8(%rsp)
movb %dl, 0x10(%rsp)
leaq 0x28(%rsp), %rdi
callq 0xf2d0
jmp 0x80dc
jmp 0x8140
ud2
nopw %cs:(%rax,%rax)